All Projects → ksindi → Flask Sqlacodegen

ksindi / Flask Sqlacodegen

Licence: other
🍶 Automatic model code generator for SQLAlchemy with Flask support

Programming Languages

python
139335 projects - #7 most used programming language

Projects that are alternatives of or similar to Flask Sqlacodegen

Flask Graphene Sqlalchemy
⚗️Project template to build a GraphQL API in Python
Stars: ✭ 109 (-61.48%)
Mutual labels:  sqlalchemy, flask
Flask Msearch
Full text search for flask.
Stars: ✭ 164 (-42.05%)
Mutual labels:  sqlalchemy, flask
Flask Graphene Sqlalchemy
A demo project for Flask + GraphQL (With Graphene & SQLAlchemy)
Stars: ✭ 117 (-58.66%)
Mutual labels:  sqlalchemy, flask
Flask movie site
用Flask构建一个微电影视频网站
Stars: ✭ 97 (-65.72%)
Mutual labels:  sqlalchemy, flask
The Flask Mega Tutorial
📖《The Flask Mega-Tutorial》中文2018最新版📗
Stars: ✭ 221 (-21.91%)
Mutual labels:  sqlalchemy, flask
Booklibrary
📚Simple Book library application written on flask with SQLite database.
Stars: ✭ 98 (-65.37%)
Mutual labels:  sqlalchemy, flask
Flask Restless Security
Concise skeleton for development of Flask, Flask-Restless, SQLAlchemy, JWT based REST APIs.
Stars: ✭ 159 (-43.82%)
Mutual labels:  sqlalchemy, flask
Indico
Indico - A feature-rich event management system, made @ CERN, the place where the Web was born.
Stars: ✭ 1,160 (+309.89%)
Mutual labels:  sqlalchemy, flask
Eve Sqlalchemy
SQLAlchemy data layer for Eve-powered RESTful APIs
Stars: ✭ 215 (-24.03%)
Mutual labels:  sqlalchemy, flask
Pytest Flask Sqlalchemy
A pytest plugin for preserving test isolation in Flask-SQLAlchemy using database transactions.
Stars: ✭ 168 (-40.64%)
Mutual labels:  sqlalchemy, flask
Safrs
SqlAlchemy Flask-Restful Swagger Json:API OpenAPI
Stars: ✭ 255 (-9.89%)
Mutual labels:  sqlalchemy, flask
Flask Base
A simple Flask boilerplate app with SQLAlchemy, Redis, User Authentication, and more.
Stars: ✭ 2,680 (+847%)
Mutual labels:  sqlalchemy, flask
Markbj
一个开放的知识社区
Stars: ✭ 94 (-66.78%)
Mutual labels:  sqlalchemy, flask
Weeklyreport
基于Flask的开源周报系统,快速docker部署
Stars: ✭ 102 (-63.96%)
Mutual labels:  sqlalchemy, flask
Flask Tutorial
这个项目已经很久很久了, 不推荐看, 不过倒是可以进群叨逼叨一下. 🚗 交流群:630398887
Stars: ✭ 91 (-67.84%)
Mutual labels:  sqlalchemy, flask
Tedivms Flask
Flask starter app with celery, bootstrap, and docker environment
Stars: ✭ 142 (-49.82%)
Mutual labels:  sqlalchemy, flask
Flask Whooshee
Customizable Flask - SQLAlchemy - Whoosh integration
Stars: ✭ 66 (-76.68%)
Mutual labels:  sqlalchemy, flask
Ziggurat foundations
Framework agnostic set of sqlalchemy classes that make building applications that require permissions an easy task.
Stars: ✭ 67 (-76.33%)
Mutual labels:  sqlalchemy, flask
Flusk
Boilerplate API on how to structure big Flask applications (includes SQLAlchemy, Docker, nginx)
Stars: ✭ 165 (-41.7%)
Mutual labels:  sqlalchemy, flask
Autoline
建议你使用更新的AutoLink平台
Stars: ✭ 227 (-19.79%)
Mutual labels:  sqlalchemy, flask

Flask sqlacodegen

Fork of sqlacodegen by Alex Gronholm. Based off of version 1.1.6.

What's different:

  • Support for Flask-SQLAlchemy syntax using --flask option.
  • Defaults to generating backrefs in relationships. --nobackref still included as option in case backrefs are not wanted.
  • Naming of backrefs is class name in snake_case (as opposed to CamelCase) and is pluralized if it's Many-to-One or Many-to-Many using inflect.
  • Primary joins are explicit.
  • If column has a server_default set it to FetchValue() instead of trying to determine what that value is. Original code did not set the right server defaults in my setup.
  • --ignore-cols ignores special columns when generating association tables. Original code requires all columns to be foreign keys in order to generate association table. Example: --ignore-cols id,inserted,updated.
  • Uses the command flask-sqlacodegen instead of sqlacodegen.
  • Added support for --notables to only generate model classes, even for association tables

Install

With pip:

pip install flask-sqlacodegen

Without pip:

git clone https://github.com/ksindi/flask-sqlacodegen.git
cd flask-sqlacodegen/
python setup.py install

For contributing:

git clone https://github.com/ksindi/flask-sqlacodegen.git
python -m venv env
pip install -r requirements.txt
python -m sqlacodegen.main --flask --outfile models.py mysql+pymysql://<username>:<password>@<database-ip>:<port>/<database-name> [--tables <tablenames>] [--notables]
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].