The purpose of this project is to expose the Covid-19 data provided by owid in the form of a REST API.
The data source of the API is the CSV file which is being constantly updated by the owid team in their covid-19-data github repository: owid-covid-data.csv .
This project is built on top of a custom fork of the fastapi-csv Python package.
Create a Python Virtual environment and install the dependencies:
$ python3 -m venv venv
$ source venv/bin/activate
$ (venv) pip install -r requirements.txt
Start the FastAPI instance:
uvicorn owid_covid19_data_api.main:app
Build the image:
docker build -t owid-covid-data-api .
Run a container from the image:
docker run --name owid-covid-data-api -p 8000:8000 owid-covid-data-api