collect sqlalchemy models to one file(eg. __init__.py)
Project description
collect db models
collect sqlalchemy models to one file
使用
collect-db-models your_project > your_project/models/__init__.py2
如果没有报错,就可以把文件更名为__init__.py
Flask项目需要符合下面的结构
your_project/
│
├──core/
│ └── __init__.py
├──models/
│ └── __init__.py
your_project/core/__init__.py
from flask_sqlalchemy import SQLAlchemy
db = SQLAlchemy()
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Close
Hashes for collect_db_models-0.0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | efa8e40b9b45d51fc07fd84981a9eb37fb9153fa32056154afdfe6e235e80ff8 |
|
MD5 | 74924266a091e321e0148adb6f413ff9 |
|
BLAKE2b-256 | cff9093698380d5f26eb5e785e2e366831b9363dcbb50b5e21b8bcbc2919995f |