flask-sqlalchemy

Adds SQLAlchemy support to Flask (by pallets-eco)

Flask-sqlalchemy Alternatives

Similar projects and alternatives to flask-sqlalchemy

NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a better flask-sqlalchemy alternative or higher similarity.

flask-sqlalchemy reviews and mentions

Posts with mentions or reviews of flask-sqlalchemy. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2023-07-08.
  • Voting webapp saves votes locally, but not on server
    2 projects | /r/flask | 8 Jul 2023
    You should probably use a database for this, using something like sqlite a single file "database" is probably the quickest way to get started, I recommend you use it with Flask-SQLAlchemy which makes working with the db easy as pie.
  • How to build an API using Flask
    4 projects | dev.to | 27 Mar 2023
    Flask-SQLAlchemy: An extension that integrates SQLAlchemy with Flask. You can install it using pip install flask-sqlalchemy.
  • How to dynamically generate graphics and PDFs using Python an jinja
    6 projects | dev.to | 8 Jan 2023
    flask-sqlalchemy: ORM for database access
  • pagination in flask
    1 project | /r/flask | 25 Dec 2022
    I've made several runs at stripping the essential paginating functionality of flask-sqlalchemy for use with things like lists. That's where I'd start.
  • Connect Flask APP to Two Already Existing Tables in two distinct databases
    2 projects | /r/flask | 10 Nov 2022
    You can either use an ORM, which might be sqlalchemy, possibly wrapped up as a flask plugin https://flask-sqlalchemy.palletsprojects.com/ or more directly: https://www.sqlalchemy.org/
  • Methods for dynamically loading test db data
    1 project | /r/flask | 4 Nov 2022
    You can learn more about this approach and see an example is this Flask-SQLAlchemy PR.
  • Usage of Restful API + Database with Flask
    1 project | /r/flask | 28 Oct 2022
    Flask SQL Alchemy
  • I built an Image Search Engine using OpenAI CLIP and Images from Wikimedia
    2 projects | /r/Python | 30 Nov 2021
    I used for this project Flask and OpenAI CLIP. For the vector search I used approximate nearest neighbors provided by spotify/annoy. I used Flask-SQLAlchemy with GeoAlchemy2 to query GPS coordinates. The embedding was done using UMAP using the CLIP image vectors.
  • I uninstalled an reinstalled sqalalchemy to get the latest version. Now my flask app won't work.
    1 project | /r/flask | 3 Oct 2021
    This appears to be this: https://github.com/pallets/flask-sqlalchemy/issues/910
  • Problem with circular imports and app context
    1 project | /r/flask | 29 Aug 2021
    from sqlalchemy.engine.reflection import Inspector from sqlalchemy.schema import DropConstraint, DropTable, MetaData, Table from extensions import db # from dotmap import DotMap def try_add(object): """ Try to add the column 'object' to its table in the database and return it. """ try: db.session.add(object) db.session.commit() return object except Exception: db.session.rollback() raise def drop_all_cascade(): """(On a live db) drops all foreign key constraints before dropping all tables. Workaround for SQLAlchemy not doing DROP ## CASCADE for drop_all() (https://github.com/pallets/flask-sqlalchemy/issues/722) """ con = db.engine.connect() trans = con.begin() inspector = Inspector.from_engine(db.engine) # We need to re-create a minimal metadata with only the required things to # successfully emit drop constraints and tables commands for postgres # (based on the actual schema of the running instance) meta = MetaData() tables = [] all_fkeys = [] for table_name in inspector.get_table_names(): fkeys = [] for fkey in inspector.get_foreign_keys(table_name): if not fkey["name"]: continue fkeys.append(db.ForeignKeyConstraint((), (), name=fkey["name"])) tables.append(Table(table_name, meta, *fkeys)) all_fkeys.extend(fkeys) for fkey in all_fkeys: con.execute(DropConstraint(fkey)) for table in tables: con.execute(DropTable(table)) trans.commit()
  • A note from our sponsor - SaaSHub
    www.saashub.com | 26 Apr 2024
    SaaSHub helps you find the best software and product alternatives Learn more →

Stats

Basic flask-sqlalchemy repo stats
11
4,149
8.1
14 days ago

Sponsored
SaaSHub - Software Alternatives and Reviews
SaaSHub helps you find the best software and product alternatives
www.saashub.com