Skip to main content

Python-Cicero

Python-Cicero provides a Pythonic “wrapper” to Azavea’s Cicero API for address-based legislative and non-legislative district matching, lookup of elected official contact information, and election events.

Note: Be sure to take a look at the project page on Github.

Installation / Setup

Use pip to install the library:

pip install python-cicero

If you anticipate making improvements/extensions and would like to document them, use the extras_require convention to also install the Pycco documentation generator as a dependency (see Documentation section below):

pip install python-cicero[‘docs’]

To make requests to the Cicero API, you will need a Cicero account. A free trial of the API is available by registering here. The process for purchasing additional API credits is described on the Cicero website.

Testing

There are a few ways to run the unit tests.

One option is to use the shell script in the root of the repository called test.example.sh. Copy it using cp test.example.sh test.sh. Edit test.sh to include your Cicero API username and password. Then, run the tests using ./test.sh.

Another option is to edit the test/tests.py file directly, adding your Cicero API credentials where indicated. Doing so will allow you to execute tests using nosetests (if you have the nose package installed), or using python setup.py test, or invoking the tests.py file itself.

Documentation

Documentation, generated with Pycco, is available in the “docs” folder as HTML files. The filenames correspond to the appropriate module being documented.

For examples of the wrapper in use, see the cicero_examples.py file.

Help!

All of us at Azavea would be happy to help you get the most out of your Cicero API account. For questions about this wrapper, contact cicero@azavea.com

License

python-cicero is licensed under the Apache 2.0 license. See LICENSE.txt for more details.

Contribute

See a bug? Want to improve the docs or provide more examples? Thank you! Please open a pull-request with your improvements and we’ll work to respond to it in a timely manner.

Metadata

Release files for python-cicero 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for python-cicero 0.1.0
File Size Uploaded Provenance Actions
python-cicero-0.1.0.tar.gz 304.1 kB Without provenance Details for python-cicero-0.1.0.tar.gz

Release files / python-cicero-0.1.0.tar.gz

Download URL python-cicero-0.1.0.tar.gz
Size 304.1 kB
Tags Source
SHA-256 checksum
How to use checksums
47f969811b40d2e7fda0a70f13697d0ae8fa5351440f269f3fa7b0be495dd989
BLAKE2b-256 checksum
How to use checksums
7015bf02eb6aefa69ec5ceceb1129438d939b9a55601dab4efb4f4927bd77805
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Security for python-cicero 0.1.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.1.0 This release

1 release file No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page