Skip to content

Latest commit

 

History

History
42 lines (31 loc) · 648 Bytes

README.md

File metadata and controls

42 lines (31 loc) · 648 Bytes

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