FEC Data Reader
A quick way to retrieve FEC bulk data from https://www.fec.gov:
>>> import fec_reader as fec
>>> reader = fec.DataReader(data_dir='/raw') # pick a target directory
>>> reader.get_pac_summary(2010, 2018)
Each reader function allows you to specify year ranges for the data downloads. For example, the code below retrieves 3 data files:
reader.get_pac_summary(2014, 2018)
This is because the data in each file spans two calendar years.
This package is a demonstration of ETL skills for Alexus Wong. However, it is also important that we as a society can efficiently consume the inordinate amount of information available today. If we can process it, we can take steps in the right direction.
There is a 5 second delay between files to respect FEC.gov's bandwith.
Features
FEC Reader currently retrieves these data files:
- PAC Summary - https://www.fec.gov/campaign-finance-data/pac-and-party-summary-file-description/ -
reader.get_pac_summary(start, end) - Candidate Master - https://www.fec.gov/campaign-finance-data/candidate-master-file-description/ -
reader.get_candidate_master(start, end) - Contributions from committees to candidates and independent expenditures - https://www.fec.gov/campaign-finance-data/contributions-committees-candidates-file-description/ -
reader.get_contributions_to_candidates(start, end)
Installation
To install FEC Reader, simply use pip:
$ pip install fec-reader
Metadata
Release files for fec-reader 2.1.1
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 |
|---|---|---|---|---|
| fec-reader-2.1.1.tar.gz | 6.9 kB | Without provenance | Details for fec-reader-2.1.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| fec_reader-2.1.1-py3-none-any.whl | Python 3 | none | any | Details for fec_reader-2.1.1-py3-none-any.whl |
Total release size: 14.7 kB
Release files / fec-reader-2.1.1.tar.gz
| Download URL | fec-reader-2.1.1.tar.gz |
|---|---|
| Size | 6.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
099eadd6c72d0db9809da3f47080a35479dd76c81ae70a0e56183436b029692a
|
|
BLAKE2b-256 checksum How to use checksums |
346f8ddb76919fa8a73232114aecd7ef5ea00d25efd2f012eb4ceac20d4b8787
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.12.1 pkginfo/1.4.2 requests/2.20.1 setuptools/40.6.2 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.7.1
|
Release files / fec_reader-2.1.1-py3-none-any.whl
| Download URL | fec_reader-2.1.1-py3-none-any.whl |
|---|---|
| Size | 7.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
7b4654e6e117f104abd54b1af5306f5a79ff49e03e962c4e5787d8f328e86f61
|
|
BLAKE2b-256 checksum How to use checksums |
006100dd7e86d679d9bfa02635242b044724bf780aae9ba85a2895782dd49387
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.12.1 pkginfo/1.4.2 requests/2.20.1 setuptools/40.6.2 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.7.1
|
Security for fec-reader 2.1.1
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.