Skip to main content

this package provides a streamlined way to download covid data by state

Project description

covid19-us

https://img.shields.io/pypi/v/covid19_us.svg https://img.shields.io/travis/HaigangLiu/covid19-us.svg
  • This package aims to provide a streamlined way to download covid data. We support the historical data sliced by state and county. We also support zip code as valid input type, but the covid counts is from the county where the zip code area is in.

  • Free software: MIT license

Features

  1. Download data by state in the United States

    get_daily_data() is a function to download daily data from a given state. An example is illustrated as follows. Note that the following functions typically can accept both list type or string type. In other words, [‘SC’] and ‘SC’ can be both understood as South Carolina correctly.

from covid19_us.download import get_daily_data
sc_xmas = get_daily_data('SC', dates=['2020-12-31', '2021-01-01'])
  1. Download data by county in the United States

    get_daily_data_by_county() is a function to download daily data from a given county or counties. An example is illustrated as follows. We support both county name and county FIPS, a unique identifier.

from covid19_us.download import get_daily_data_by_county
sc_new_year = get_daily_data_by_county('SC', counties='Richland', dates=['2020-12-31']))
  1. Download data by zip code in the United States

    get_daily_data_by_zipcode() is function to download daily data from a given zip code. Again, this is not exactly count by zip code, but the county total where the zip code resides in.

from covid19_us.download import get_daily_data_by_zip_code
tn_new_year = get_daily_data_by_zip_code('TN', zip_codes=['38120'] dates=['2021-01-01'])

History

0.1.0 (2021-03-22)

  • First release on PyPI.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

covid19_us-0.1.7.tar.gz (11.5 kB view hashes)

Uploaded Source

Built Distribution

covid19_us-0.1.7-py2.py3-none-any.whl (5.7 kB view hashes)

Uploaded Python 2 Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page