A Python Flask API is code-first and using native Flask
MrMat :: Python :: API :: Flask
Boilerplate code for a Python Flask API
Features
- Code-first
- Pluggable APIs and multiple API versions
- Database schema migration using Flask-Migrate
- API body serialisation using Flask-Marshmallow
- OIDC Authentication using Flask-OIDC
- No TLS, because this is intended to run behind a reverse proxy
- Healthz
How to build this
Use the standard python ./setup.py install
to build. By default, the version built will be 0.0.0.dev0
,
unless the MRMAT_VERSION
environment variable is set by the build orchestrator (e.g. GitHub Actions). The
version and whether a release is built is consequently controlled exlusively by the build orchestrator.
How to run this
You have the choice of running this
- as a CLI app
- as a WSGI app
- as a container image.
To run as a CLI