This is a simple Python API boilderplate using Flask and Flask-RESTPlus. It uses Pyenv and Pipenv for runtime and package management. It also uses pytest and pytest-flask for unit testing.
You can find detailed documentation on this boilerplate's set-up here.
Install Pyenv following the official installation instructions.
Download the proper python version:
# Installs the version from ".python-version" if not installed
# Can take some time.
pyenv installInstall pipenv:
pip install --user pipenvInstall all dependencies
pipenv install# If you haven't already, then start a pipenv shell
pipenv shell
PYTHON_ENV=development python src/main.pyVisit Swagger UI on http://localhost:5000/api/swagger.
# If you haven't already, then start a pipenv shell
pipenv shell
python -m pytest