Alembic template, with auto-generated revision and migrations.
Each database schema are separated into folders (Ex: model/
) and revised/migrated independently for isolation.
Name | Version |
---|---|
Python | 3.8 |
pipenv(Python module) | 2018.11.26 or up |
- Initialize environment variable
cp sample.env .env
- Initialize Python environment
make init
- Enter the environment and start developing
pipenv shell
- Start related components of API service
make service_up
- (Optional) Create revision
make model_revision
- (Optional)Migrate to latest revision
make model_migrate
This project uses black
and isort
for formatting
make reformat
This project uses pylint
and flake8
for linting
make lint
- Darkborderman/Divik([email protected])