Skip to content

Commit

Permalink
Merge pull request #626 from cmu-delphi/krivard/covidcast-python-release
Browse files Browse the repository at this point in the history
Prepare covidcast-py v0.2.0 for release
  • Loading branch information
krivard committed May 23, 2023
2 parents 5900ee6 + 89444e7 commit 072e317
Show file tree
Hide file tree
Showing 73 changed files with 1,321 additions and 12,064 deletions.
5 changes: 3 additions & 2 deletions Python-packages/covidcast-py/Makefile
Expand Up @@ -16,8 +16,9 @@ install: venv
pip install -r requirements_dev.txt; \
pip install -e .

build:
python3 setup.py clean
build: venv
. env/bin/activate; \
python3 setup.py clean && \
python3 setup.py sdist bdist_wheel

sphinx: venv
Expand Down
4 changes: 2 additions & 2 deletions Python-packages/covidcast-py/docs/changelog.rst
@@ -1,8 +1,8 @@
Changelog
=========

v0.1.6, May _, 2023
-------------------
v0.2.0, May 23, 2023
--------------------

- New feature: This package now supports queries that require an API key. Call
:py:func:`covidcast.use_api_key` before running fetch functions to
Expand Down
4 changes: 2 additions & 2 deletions Python-packages/covidcast-py/docs/conf.py
Expand Up @@ -17,11 +17,11 @@
# -- Project information -----------------------------------------------------

project = 'COVIDcast API client'
copyright = '2021, Delphi research group'
copyright = '2023, Delphi research group'
author = 'Delphi research group'

# The full version, including alpha/beta/rc tags
release = '0.1.5'
release = '0.2.0'


# -- General configuration ---------------------------------------------------
Expand Down
2 changes: 1 addition & 1 deletion Python-packages/covidcast-py/setup.py
Expand Up @@ -5,7 +5,7 @@

setuptools.setup(
name="covidcast",
version="0.1.5", # also update in docs/conf.py
version="0.2.0", # also update in docs/conf.py
author="Alex Reinhart",
author_email="areinhar@stat.cmu.edu",
description="Access COVID-19 data through the Delphi COVIDcast API",
Expand Down
Binary file modified docs/covidcast-py/doctrees/changelog.doctree
Binary file not shown.
Binary file modified docs/covidcast-py/doctrees/environment.pickle
Binary file not shown.
Binary file modified docs/covidcast-py/doctrees/getting_started.doctree
Binary file not shown.
Binary file modified docs/covidcast-py/doctrees/index.doctree
Binary file not shown.
Binary file modified docs/covidcast-py/doctrees/plot_examples.doctree
Binary file not shown.
Binary file modified docs/covidcast-py/doctrees/plotting.doctree
Binary file not shown.
Binary file modified docs/covidcast-py/doctrees/signals.doctree
Binary file not shown.
2 changes: 1 addition & 1 deletion docs/covidcast-py/html/.buildinfo
@@ -1,4 +1,4 @@
# Sphinx build info version 1
# This file hashes the configuration used when building these files. When it is not found, a full rebuild will be done.
config: 8cf3e1c49da6be7468f46c8184fca677
config: 2369533cf5779109d35a10647f334044
tags: 645f666f9bcd5a90fca523b33c5a78b7
File renamed without changes
File renamed without changes
File renamed without changes.
File renamed without changes
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes
File renamed without changes
File renamed without changes.
File renamed without changes.
File renamed without changes
File renamed without changes.
File renamed without changes.
File renamed without changes
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
7 changes: 7 additions & 0 deletions docs/covidcast-py/html/_sources/changelog.rst.txt
@@ -1,6 +1,13 @@
Changelog
=========

v0.2.0, May 23, 2023
--------------------

- New feature: This package now supports queries that require an API key. Call
:py:func:`covidcast.use_api_key` before running fetch functions to
authenticate your requests.

v0.1.5, May 11, 2021
--------------------

Expand Down
12 changes: 12 additions & 0 deletions docs/covidcast-py/html/_sources/getting_started.rst.txt
Expand Up @@ -104,6 +104,18 @@ May 1st were updated on May 23rd based on new data, giving a ``lag`` of 22 days.
See the :py:func:`covidcast.signal` documentation for details on the returned
data frame.

.. _api-key-usage:
.. note ::
By default, this package submits queries to the API anonymously. If you have an
API key, you can use it with this package by calling
:py:func:`covidcast.use_api_key`, then call fetch functions as normal:
>>> covidcast.use_api_key("your_api_key")
>>> data = covidcast.signal("fb-survey", "smoothed_cli",
... date(2020, 5, 1), date(2020, 5, 7),
... "county")
The API documentation lists each available signal and provides technical details
on how it is estimated and how its standard error is calculated. In this case,
for example, the `symptom surveys documentation page
Expand Down
21 changes: 17 additions & 4 deletions docs/covidcast-py/html/_sources/index.rst.txt
Expand Up @@ -31,10 +31,23 @@ To get started, check out :ref:`getting started <getting-started>`.
notified of package updates, new data sources, corrections, and other
updates.
.. warning :: If you use data from the COVIDcast Epidata API to power a public
product, dashboard, app, or other service, please download the data you need
and store it centrally rather than making API requests for every user. Our
server resources are limited and cannot support high-volume interactive use.
.. warning :: By default, this package submits queries to the API
anonymously. All the examples in the package documentation are compatible
with anonymous use of the API, but `there are some limits on anonymous
queries <https://cmu-delphi.github.io/delphi-epidata/api/api_keys.html>`_
which do not apply if you use an API key to authenticate your queries. If you
regularly or frequently use our system, please consider `registering for a
free API key <https://forms.gle/hkBr5SfQgxguAfEt7>`_ even if your usage falls
within the anonymous usage limits. API key usage helps us understand who and
how others are using our Delphi Epidata API, which may in turn inform our
future research, data partnerships, and funding. For usage instructions, see
:py:func:`covidcast.use_api_key`.
As we are a research group, our server resources are limited and cannot
support high-volume interactive use (with or without an API key). If you use
data from the COVIDcast Epidata API to power a public product, dashboard,
app, or other service, please download the data you need and store it
centrally rather than making API requests for every user.
See also the `COVIDcast Terms of Use
<https://covidcast.cmu.edu/terms-of-use.html>`_, noting that the data is a
Expand Down
5 changes: 5 additions & 0 deletions docs/covidcast-py/html/_sources/signals.rst.txt
@@ -1,6 +1,11 @@
Fetching Data
=============

API keys
--------

.. autofunction:: covidcast.use_api_key

Signals
-------

Expand Down
4 changes: 3 additions & 1 deletion docs/covidcast-py/html/_static/alabaster.css
Expand Up @@ -419,7 +419,9 @@ table.footnote td {
}

dl {
margin: 0;
margin-left: 0;
margin-right: 0;
margin-top: 0;
padding: 0;
}

Expand Down

0 comments on commit 072e317

Please sign in to comment.