Skip to content

PyPI version 0.0.9

Compare
Choose a tag to compare
@undefx undefx released this 22 Dec 16:53
· 2442 commits to main since this release
64f96f8

This is an update to the PyPI package delphi-epidata, which can be found at https://pypi.org/project/delphi-epidata/.

It can be installed like this:

pip install delphi-epidata

Sample usage:

# import
from delphi_epidata import Epidata
import json

# query
print(json.dumps(Epidata.covid_hosp_facility_lookup(city='scranton'), indent=2))

Sample output:

{
  "result": 1,
  "epidata": [
    {
      "hospital_pk": "390001",
      "state": "PA",
      "ccn": "390001",
      "hospital_name": "GEISINGER-COMMUNITY MEDICAL CENTER",
      "address": "1822 MULBERRY STREET",
      "city": "SCRANTON",
      "zip": "18510",
      "hospital_subtype": "Short Term",
      "fips_code": "42069",
      "is_metro_micro": 1
    },
    {
      "hospital_pk": "390119",
      "state": "PA",
      "ccn": "390119",
      "hospital_name": "MOSES TAYLOR HOSPITAL",
      "address": "700 QUINCY AVENUE",
      "city": "SCRANTON",
      "zip": "18510",
      "hospital_subtype": "Short Term",
      "fips_code": "42069",
      "is_metro_micro": 1
    },
    {
      "hospital_pk": "390237",
      "state": "PA",
      "ccn": "390237",
      "hospital_name": "REGIONAL HOSPITAL OF SCRANTON",
      "address": "746 JEFFERSON AVENUE",
      "city": "SCRANTON",
      "zip": "18501",
      "hospital_subtype": "Short Term",
      "fips_code": "42069",
      "is_metro_micro": 1
    }
  ],
  "message": "success"
}