API to help make public data easier to access. Idea started with need for King County, WA COVID-19 data in API format while only having an excel file for source data.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
prasket 812de9cad9 added first filtering feature of API, and made the testing data look like what the data in DB will once that is completed. 4 months ago
.gitignore README setup with development instructions, using postgresql for datastore, info on setting that up. Script to create first king county zip table. 4 months ago
LICENSE Initial commit 4 months ago
Pipfile created initial api.py and modified initial table creation and load to have primary key id and date loaded fields. 4 months ago
Pipfile.lock created initial api.py and modified initial table creation and load to have primary key id and date loaded fields. 4 months ago
README.md README setup with development instructions, using postgresql for datastore, info on setting that up. Script to create first king county zip table. 4 months ago
api.py added first filtering feature of API, and made the testing data look like what the data in DB will once that is completed. 4 months ago
create_covid-19_zip.py created initial api.py and modified initial table creation and load to have primary key id and date loaded fields. 4 months ago
load_db.py created initial api.py and modified initial table creation and load to have primary key id and date loaded fields. 4 months ago

README.md

api.seattlematrix.org

API to help make public data easier to access. Idea started with need for King County, WA COVID-19 data in API format while only having an excel file for source data.

Development Setup

Datastore

I am using Postgresql for the datastore due to what I read about concurrancy over mysql, figured that would be good for an API. During development using a container on my machine.

docker run --rm   --name pg-docker -e POSTGRES_PASSWORD=postgres -d -p 5432:5432 -v $HOME/docker/volumes/postgres:/var/lib/postgresql/data  postgres:11

You can use this command to connect to the postgresql instance in the container.

docker ps # to find the CONTAINER ID
docker exec -it 05b3a3471f6f bash

Development Env.

I am using Python 3.7

I use pipenv when I develop with Python.

pipenv install && pipenv shell