Skip to content

Alembic template, with auto-generated revision and migrations.

License

Notifications You must be signed in to change notification settings

DarkbordermanTemplate/alembic

Repository files navigation

Alembic

Alembic template, with auto-generated revision and migrations.

Each database schema are separated into folders (Ex: model/) and revised/migrated independently for isolation.

Integration

Development

Prerequisitive

Name Version
Python 3.8
pipenv(Python module) 2018.11.26 or up

Environment setup

  1. Initialize environment variable
cp sample.env .env
  1. Initialize Python environment
make init
  1. Enter the environment and start developing
pipenv shell
  1. Start related components of API service
make service_up
  1. (Optional) Create revision
make model_revision
  1. (Optional)Migrate to latest revision
make model_migrate

Formatting

This project uses black and isort for formatting

make reformat

Linting

This project uses pylint and flake8 for linting

make lint

Contribution

About

Alembic template, with auto-generated revision and migrations.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published