Awesome Open Source
Awesome Open Source

Molten-Boilerplate

What's included?

  • SQLAlchemy
  • alembic
  • camelCase API
  • py.test (with coverage)
  • invoke (CLI)

Usage

  1. Install requirements
virtualenv -p python3.6 venv
source venv/bin/activate
pip install -r requirements.txt
  1. Adjust settings.toml with your DATABASE_URL on common and test.

For now, common represents both production and dev.

Finally, run:

alembic upgrade head

If you make changes to your model, you'll need to adjust migrations/env to import any new models.

Then, run:

alembic revision -m "New thing did" --autogenerate

Dev

$ invoke start

Test

$ invoke test --cov --verbose

TODO

  • [ ] Integrate pre-commit linting

Get A Weekly Email With Trending Projects For These Topics
No Spam. Unsubscribe easily at any time.
python (54,525
python3 (1,645
swagger (375
backend (228
openapi (216
restful-api (183
api-documentation (57
api-rest (51