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.
- Create a new repository named "my-pyflask-project" using this template repository *+
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 cover- Run
git add .
andgit 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
- Stargaze this repository
- Fork this repository
- Add this project as
upstream
- Commit your changes
- Create pull request to
upstream/development
branch
- Swagger support
- Introduction of testing tools
- Code coverage
- Version handling by tbump
- Personalization script
- Docker support
- uwsgi server
- Add CoC, Contribution guidelines, PR and issue templates
- Update linting documentation
- Testing tools documentation