-
Notifications
You must be signed in to change notification settings - Fork 69
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1197 from cmu-delphi/release/delphi-epidata-4.1.3
Release Delphi Epidata 4.1.3
- Loading branch information
Showing
14 changed files
with
131 additions
and
47 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
[bumpversion] | ||
current_version = 4.1.2 | ||
current_version = 4.1.3 | ||
commit = False | ||
tag = False | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
[metadata] | ||
name = Delphi Development | ||
version = 4.1.2 | ||
version = 4.1.3 | ||
|
||
[options] | ||
packages = | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,9 +4,17 @@ parent: Other Endpoints (COVID-19 and Other Diseases) | |
nav_order: 1 | ||
--- | ||
|
||
# Epidata API Client Libraries. | ||
# Epidata API Client Libraries | ||
|
||
Epidata clients are available for | ||
For anyone looking for COVIDCast data, please visit our [COVIDCast Libraries](covidcast_clients.md). | ||
|
||
We are currently working on fully-featured Epidata clients for R and Python. They are not ready | ||
for release yet, but you can track our development progress and help us test them out at: | ||
|
||
* [epidatr](https://github.com/cmu-delphi/epidatr) | ||
* [epidatpy](https://github.com/cmu-delphi/epidatpy) | ||
|
||
In the meantime, minimalist Epidata clients remain available for | ||
[JavaScript](https://github.com/cmu-delphi/delphi-epidata/blob/master/src/client/delphi_epidata.js), | ||
[Python](https://github.com/cmu-delphi/delphi-epidata/blob/master/src/client/delphi_epidata.py), | ||
and | ||
|
@@ -15,10 +23,10 @@ The following samples show how to import the library and fetch Delphi's COVID-19 | |
Surveillance Streams from Facebook Survey CLI for county 06001 and days | ||
`20200401` and `20200405-20200414` (11 days total). | ||
|
||
For anyone looking for COVIDCast data, please visit our [COVIDCast Libraries](covidcast_clients.md). | ||
|
||
### JavaScript (in a web browser) | ||
|
||
The minimalist JavaScript client does not currently support API keys. If you need API key support in JavaScript, contact [email protected]. | ||
|
||
````html | ||
<!-- Imports --> | ||
<script src="delphi_epidata.js"></script> | ||
|
@@ -45,6 +53,8 @@ in the same directory as your Python script. | |
````python | ||
# Import | ||
from delphi_epidata import Epidata | ||
# [Optional] configure your API key, if desired | ||
#Epidata.auth = ('epidata', <your API key>) | ||
# Fetch data | ||
res = Epidata.covidcast('fb-survey', 'smoothed_cli', 'day', 'county', [20200401, Epidata.range(20200405, 20200414)], '06001') | ||
print(res['result'], res['message'], len(res['epidata'])) | ||
|
@@ -54,6 +64,8 @@ print(res['result'], res['message'], len(res['epidata'])) | |
|
||
|
||
````R | ||
# [Optional] configure your API key, if desired | ||
#option('epidata.auth', <your API key>) | ||
# Import | ||
source('delphi_epidata.R') | ||
# Fetch data | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
from .delphi_epidata import Epidata | ||
|
||
name = 'delphi_epidata' | ||
__version__ = '4.1.2' | ||
__version__ = '4.1.3' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,7 +5,7 @@ | |
|
||
setuptools.setup( | ||
name="delphi_epidata", | ||
version="4.1.2", | ||
version="4.1.3", | ||
author="David Farrow", | ||
author_email="[email protected]", | ||
description="A programmatic interface to Delphi's Epidata API.", | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters