PyOpenFec
A Python wrapper for the OpenFEC API. Documentation for this API can be found here
Installation
pip install pyopenfec
Examples
Candidates
Candidate
The Candidate class holds fields for each candidate in the OpenFEC API.
A number of class and instance methods are available.
count
The Candidate.count() method will return the number of Candidate objects available for a given query. Note: This method returns an integer representing the number of items available in the OpenFEC API. It does not return a list of objects.
from pyopenfec import Candidate
candidate_count = Candidate.count(cycle=2016, office="P", candidate_status="C")
fetch
The Candidate.fetch() method will return a list of Candidate objects available for a given query. This method will automatically page through the results and return all objects available in the OpenFEC API.
from pyopenfec import Candidate
candidate_count = Candidate.count(cycle=2016, office="P", candidate_status="C")
candidates = Candidate.fetch(cycle=2016, office="P", candidate_status="C")
for candidate in candidates:
print("{name}, {party}".format(name=candidate.name, party=candidate.party))
Committees
tktk
Reports
tktk
Metadata
Release files for pyopenfec 0.2.5
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| pyopenfec-0.2.5.tar.gz | 9.3 kB | Without provenance | Details for pyopenfec-0.2.5.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| pyopenfec-0.2.5-py3-none-any.whl | Python 3 | none | any | Details for pyopenfec-0.2.5-py3-none-any.whl |
Total release size: 21.4 kB
Release files / pyopenfec-0.2.5.tar.gz
| Download URL | pyopenfec-0.2.5.tar.gz |
|---|---|
| Size | 9.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
ec4d76451b4314203c1981777197e820e32296fec5aa34a7d8e610929f3dbb9d
|
|
BLAKE2b-256 checksum How to use checksums |
acdfe470ed7fbc8fb375926199b80c1565232c326d1e33ffb4f504b4427301dd
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/0.12.17 CPython/3.7.2 Linux/5.3.0-19-generic
|
Release files / pyopenfec-0.2.5-py3-none-any.whl
| Download URL | pyopenfec-0.2.5-py3-none-any.whl |
|---|---|
| Size | 12.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
5c9818e2f915f88b7a4854ee4239a3c85bcb2cd806dfa51ba52fb2a671107e5f
|
|
BLAKE2b-256 checksum How to use checksums |
9c0bde74a09f597ea04c53d1915d6635c8f70842cd076255d58624bc8be2aded
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/0.12.17 CPython/3.7.2 Linux/5.3.0-19-generic
|
Security for pyopenfec 0.2.5
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.