Skip to content
/ python-api Public template

Basic template for a Python API

Notifications You must be signed in to change notification settings

td-Lamoureux/python-api

Repository files navigation

Python API

Setup

# Create a virtual environment
python -m venv .venv
source .venv/bin/activate
pip install -r requirements.txt

Running the API

Running the API - Python

source .venv/bin/activate
FLASK_APP=main.py flask run

Running the API - Docker

docker build -t python-api .
docker run -p 5000 --name python-api -d --rm python-api

# Find the given port
docker port python-api

Tests

pip install tox
tox

About

Basic template for a Python API

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages