mentorship-backend
flask-sqlalchemy
Our great sponsors
mentorship-backend | flask-sqlalchemy | |
---|---|---|
3 | 11 | |
192 | 4,149 | |
2.1% | 0.4% | |
0.0 | 8.1 | |
8 months ago | 17 days ago | |
Python | Python | |
GNU General Public License v3.0 only | BSD 3-clause "New" or "Revised" License |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
mentorship-backend
-
I’ve been a contributor, mentor, and admin in Google Open Source programs
In this program, I proposed a new project called Mentorship System, for women in the community to mentor each other via 1:1 relations. For this project, I developed both the backend REST API with Python - anitab-org/mentorship-backend - and Android application with Kotlin - anitab-org/mentorship-android.
-
Contributing to Open Source with Quality Assurance
Test manually a pull request code before it gets accepted to be merged, to confirm the code is working as expected. Be creative! Try to come up with test cases for the feature being implemented that perhaps the author of the pull request did not think of. Examples: testing REST API, testing bottom navigation bug in android app.
-
Ficheiros base num projeto Open Source
Se quiseres um exemplo de modelos de issues, um dos projectos que mantenho tem diferentes tipos de modelos para issues e exemplo de modelo de descrição de PRs. Também podes encontrar diferentes modelos neste repositorio - devspace/awesome-github-templates.
flask-sqlalchemy
-
Voting webapp saves votes locally, but not on server
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
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
flask-sqlalchemy: ORM for database access
-
pagination in flask
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
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
You can learn more about this approach and see an example is this Flask-SQLAlchemy PR.
-
Usage of Restful API + Database with Flask
Flask SQL Alchemy
-
I built an Image Search Engine using OpenAI CLIP and Images from Wikimedia
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.
This appears to be this: https://github.com/pallets/flask-sqlalchemy/issues/910
-
Problem with circular imports and app context
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()
What are some alternatives?
pycon
flask-sqlacodegen - :sake: Automatic model code generator for SQLAlchemy with Flask support
apispec - A pluggable API specification generator. Currently supports the OpenAPI Specification (f.k.a. the Swagger specification)..
sqlalchemy-hana - SQLAlchemy Dialect for SAP HANA
documentation - Documentation writing at AnitaB.org Open Source organization level.
sqlalchemy-filters-plus - Lightweight library for providing filtering mechanism for your APIs using SQLAlchemy
NexusDashboard - Dashboard for Complete Management of a DLU game server
geoalchemy2 - Geospatial extension to SQLAlchemy
awesome-python - An opinionated list of awesome Python frameworks, libraries, software and resources.
flask-file-upload - Easy file uploads for Flask.
graphql-sqlalchemy - Generate GraphQL Schemas from your SQLAlchemy models
safrs - SqlAlchemy Flask-Restful Swagger Json:API OpenAPI