Public API for fetching pseudonyms of users confirmed infected
- Python 3.8+
- MongoDB database
Quick start Python 3.8 (Debian based Linux)
sudo apt install python3.8 python3.8-pip
sudo update-alternatives --config python3
Then select the correct Python version.
Install and initialize Poetry. Run
poetry install
Quick start Poetry (UNIX)
curl -sSL https://raw.githubusercontent.com/python-poetry/poetry/master/get-poetry.py | python
source ~/.poetry/env
Copy the config.py.example
to config.py
and adjust the database connection URI.
Run the local Flask development server using
export POETRY_ENV="development"
poetry run flask run
Then browse to http://localhost:5000/v0/cases?uuid=af7af6b6-eb02-4d12-b554-f5cb089afc5d for example.