Skip to content

Commit b316ba9

Browse files
authored
Merge pull request #1197 from cmu-delphi/release/delphi-epidata-4.1.3
Release Delphi Epidata 4.1.3
2 parents 193c5b2 + 04d6316 commit b316ba9

File tree

14 files changed

+131
-47
lines changed

14 files changed

+131
-47
lines changed

.bumpversion.cfg

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
[bumpversion]
2-
current_version = 4.1.2
2+
current_version = 4.1.3
33
commit = False
44
tag = False
55

dev/local/setup.cfg

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[metadata]
22
name = Delphi Development
3-
version = 4.1.2
3+
version = 4.1.3
44

55
[options]
66
packages =

docs/api/api_keys.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,14 @@ If you choose to
4040
[register for an API key](https://api.delphi.cmu.edu/epidata/admin/registration_form),
4141
there are several ways to use your key to authenticate your requests:
4242

43+
### Using a client
44+
45+
* covidcast
46+
* [R client](https://cmu-delphi.github.io/covidcast/covidcastR/reference/covidcast_signal.html#api-keys-1)
47+
* [Python client](https://cmu-delphi.github.io/covidcast/covidcast-py/html/signals.html#covidcast.use_api_key)
48+
* [epidatr](https://github.com/cmu-delphi/epidatr#api-keys)
49+
* [delphi-epidata](https://cmu-delphi.github.io/delphi-epidata/api/client_libraries.html)
50+
4351
### Via request parameter
4452

4553
The request parameter “api_key” can be used to pass the API key to the server.

docs/api/client_libraries.md

Lines changed: 16 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,17 @@ parent: Other Endpoints (COVID-19 and Other Diseases)
44
nav_order: 1
55
---
66

7-
# Epidata API Client Libraries.
7+
# Epidata API Client Libraries
88

9-
Epidata clients are available for
9+
For anyone looking for COVIDCast data, please visit our [COVIDCast Libraries](covidcast_clients.md).
10+
11+
We are currently working on fully-featured Epidata clients for R and Python. They are not ready
12+
for release yet, but you can track our development progress and help us test them out at:
13+
14+
* [epidatr](https://github.com/cmu-delphi/epidatr)
15+
* [epidatpy](https://github.com/cmu-delphi/epidatpy)
16+
17+
In the meantime, minimalist Epidata clients remain available for
1018
[JavaScript](https://github.com/cmu-delphi/delphi-epidata/blob/master/src/client/delphi_epidata.js),
1119
[Python](https://github.com/cmu-delphi/delphi-epidata/blob/master/src/client/delphi_epidata.py),
1220
and
@@ -15,10 +23,10 @@ The following samples show how to import the library and fetch Delphi's COVID-19
1523
Surveillance Streams from Facebook Survey CLI for county 06001 and days
1624
`20200401` and `20200405-20200414` (11 days total).
1725

18-
For anyone looking for COVIDCast data, please visit our [COVIDCast Libraries](covidcast_clients.md).
19-
2026
### JavaScript (in a web browser)
2127

28+
The minimalist JavaScript client does not currently support API keys. If you need API key support in JavaScript, contact [email protected].
29+
2230
````html
2331
<!-- Imports -->
2432
<script src="delphi_epidata.js"></script>
@@ -45,6 +53,8 @@ in the same directory as your Python script.
4553
````python
4654
# Import
4755
from delphi_epidata import Epidata
56+
# [Optional] configure your API key, if desired
57+
#Epidata.auth = ('epidata', <your API key>)
4858
# Fetch data
4959
res = Epidata.covidcast('fb-survey', 'smoothed_cli', 'day', 'county', [20200401, Epidata.range(20200405, 20200414)], '06001')
5060
print(res['result'], res['message'], len(res['epidata']))
@@ -54,6 +64,8 @@ print(res['result'], res['message'], len(res['epidata']))
5464

5565

5666
````R
67+
# [Optional] configure your API key, if desired
68+
#option('epidata.auth', <your API key>)
5769
# Import
5870
source('delphi_epidata.R')
5971
# Fetch data

docs/symptom-survey/publications.md

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,15 +26,20 @@ Pandemic"](https://www.pnas.org/topic/548) in *PNAS*:
2626

2727
Research publications using the survey data include:
2828

29+
- GK Charles, SP Braunstein, JL Barker, et al (2023). [How do psychobehavioural
30+
variables shed light on heterogeneity in COVID-19 vaccine acceptance? Evidence
31+
from United States general population surveys on a probability panel and
32+
social media](https://doi.org/10.1136/bmjopen-2022-066897). *BMJ Open*
33+
13:e066897.
2934
- S. Soorapanth, R. Cheung, X. Zhang, A. H. Mokdad, G. A. Mensah (2023).
3035
[Rural–Urban Differences in Vaccination and Hesitancy Rates and Trust: US
3136
COVID-19 Trends and Impact Survey on a Social Media Platform, May 2021–April
3237
2022](https://doi.org/10.2105/AJPH.2023.307274). *American Journal of Public
33-
Health*.
38+
Health* 113 (6), 680-688.
3439
- See also the associated editorial: T. Callaghan (2023). [Vaccine Uptake and
3540
Hesitancy in Rural America in the Wake of the COVID-19
3641
Pandemic](https://doi.org/10.2105/AJPH.2023.307305). *American Journal of
37-
Public Health*.
42+
Public Health* 113 (6), 615-617.
3843
- M. Rubinstein, A. Haviland, and J. Breslau (2023). [The effect of COVID-19
3944
vaccinations on self-reported depression and anxiety during February
4045
2021](https://doi.org/10.1080/2330443X.2023.2190008). *Statistics and Public

src/client/delphi_epidata.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ Epidata <- (function() {
1515
# API base url
1616
BASE_URL <- getOption('epidata.url', default = 'https://api.delphi.cmu.edu/epidata/')
1717

18-
client_version <- '4.1.2'
18+
client_version <- '4.1.3'
1919

2020
auth <- getOption("epidata.auth", default = NA)
2121

src/client/delphi_epidata.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
}
2323
})(this, function (exports, fetchImpl, jQuery) {
2424
const BASE_URL = "https://api.delphi.cmu.edu/epidata/";
25-
const client_version = "4.1.2";
25+
const client_version = "4.1.3";
2626

2727
// Helper function to cast values and/or ranges to strings
2828
function _listitem(value) {

src/client/packaging/npm/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "delphi_epidata",
33
"description": "Delphi Epidata API Client",
44
"authors": "Delphi Group",
5-
"version": "4.1.2",
5+
"version": "4.1.3",
66
"license": "MIT",
77
"homepage": "https://github.com/cmu-delphi/delphi-epidata",
88
"bugs": {
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
from .delphi_epidata import Epidata
22

33
name = 'delphi_epidata'
4-
__version__ = '4.1.2'
4+
__version__ = '4.1.3'

src/client/packaging/pypi/setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
setuptools.setup(
77
name="delphi_epidata",
8-
version="4.1.2",
8+
version="4.1.3",
99
author="David Farrow",
1010
author_email="[email protected]",
1111
description="A programmatic interface to Delphi's Epidata API.",

0 commit comments

Comments
 (0)