A quite incomplete client for the GovDelivery Communications Cloud API v1.
Currently, you can subscribe a user; manage their topics, categories, and question responses; and get the list of available topics.
The GovDelivery Communications Cloud API is described here: https://developer.govdelivery.com/api/comm_cloud_v1/Default.htm
Officially supports both Python 2.7 and Python 3.6.
pip install govdelivery
To lint the code and execute the unit tests, we recommend using tox.
-
Install tox in a virtualenv or in your global Python environment by running
pip install tox
.Alternately, we also like using pipx for installing and running system-wide tools like tox.
-
Run all the tests in one go with
tox
. -
If you want to run just the linting tools (flake8 and isort), you can run
tox -e lint
. -
If you want to run tests in just Python 2 or just Python 3, you can run
tox -e py27
ortox -e py36
.
- Add Python 3 support
- Improve test coverage and add tox support for easy test running
- Fix a few assorted bugs
- Support updating a subscriber's response to a select question (as opposed to a free response question)
- Allow SMS subscriptions
- Allow notifications to be enabled on certain method calls
Initial public release.