Skip to main content

A python wrapper for the Covid Tracking Project API

Project description

covid-tracking-project


A python wrapper for the Covid Tracking Project API.

Installation

pip3 install covid-tracking-project

Importing

import ctp

Functions

  • Class: us()
    • Function: history()
      • Description: Get US historical data
      • Parameters:
        • day (description: Get data on a specific day, type: string/int, requirement: optional, defaults: all days, example: 20200501)
    • Function: current()
      • Description: Get current US data
  • Class: states()
    • Function: metadata()
      • Description: Get state metadata
      • Parameters:
        • state (description: Get data on a specific state, type: string, requirement: optional, default: all states, example: ca)
    • Function: history()
      • Description: Get state historical data
      • Parameters:
        • day (description: Get data on a specific day, type: string/int, requirement: optional, defaults: all days, example: 20200501)
        • state (description: Get data on a specific state, type: string, requirement: optional, default: all states, example: ca)
    • Function: current()
      • Description: Get state current data
      • Parameters:
        • state (description: Get data on a specific state, type: string, requirement: optional, default: all states, example: ca)

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

covid-tracking-project-0.2.tar.gz (1.8 kB view hashes)

Uploaded Source

Built Distribution

covid_tracking_project-0.2-py3-none-any.whl (3.0 kB view hashes)

Uploaded 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