An "optionally opinionated and structured" flask boilerplate microservice for jump-starting development
This is a template project hosted on GitHub which can be used to create new repositories.
git clone https://www.github.com/username/my-pyflask-project.git
cd my-pyflask-project
make init
: Initialize and personalize projectmake setup
: Use pip-tools, pip-compile, pip install to set up python packagesmake upgrade
: Upgrade dependencies to latest versionmake pre-commit
: Run format, lint, test and covergit add .
and git commit -m "Personalize service"
+ GitHub Guide: Creating a repository from a template
^ Guide to Conda environment
Type make help
for available commands
Type make pre-commit
before committing your changes to run formatters, linters, tests and code coverage collectors
make format
: Format and fix python code with black, isort, autoflake and pre-commit hooks
make lint
: Run static analysis with flake8, radon, mypy and bandit
Flasgger docs can be found at http://0.0.0.0:8420/api/v1/pyflask-microservice/swagger
API specs can be found at http://0.0.0.0:8420/api/v1/pyflask-microservice/swagger_spec
Flasgger UI version: v2 | OpenAPI version: 2
upstream
upstream/development
branch