This release is a pre-release and may not be stable for production use.
ckey
OpenFEC API client for researching the political ideology of executives
Copyright (c) 2024 Justin G. Davis.
Overview
Ckey is a data collection and analysis tool that uses executive information from ExecuComp to capture political contribution data from openFEC, the Federal Election Commission (FEC) API. It allows researchers to construct measures of executive political ideology based on the executives' political contributions.
Disclaimer - Ckey is not affiliated with, endorsed by, or vetted by ExecuComp.
Features
- User-Friendly - Designed for researchers with minimal Python experience
- Data Processing - Automated cleaning and formatting of ExecuComp data
- API Integration - Efficient data collection from openFEC API with built-in rate limiting
- Compliance - Integrated adherence to openFEC API usage policies
- Political Analysis - Construction of all commonly used political ideology measures
- Accurate Matching - Robust executive-to-contribution matching using name, employer, and occupation verification
Installation
pip install ckey
Prerequisites & Dependencies
Prerequisites
- Python 3.6 or higher
- Access to ExecuComp data
- FEC API key (obtain from FEC.gov)
Python Dependencies
- pandas >= 2.0.0
- requests >= 2.31.0
- ThreadPoolExecutorPlus >= 0.2.2
Note: Python dependencies are automatically installed during the pip installation
Usage Guide
Basic Usage
import ckey
ckey.run(
data_path='your ExecuComp data.csv',
id_column='exec id column in the data',
name_column='name column in the data',
company_column='company column in the data',
year_column='year column in the data',
key='YOUR_API_KEY'
)
For detailed usage instructions and methodology, please see:
[Citation information to be added]
Citation
If you use this tool in your research, please cite:
[Citation information to be added]
License
This project is licensed under the MIT License - see the LICENSE file for details.
Acknowledgments
Thank you to:
- The FEC for providing and maintaining the openFEC API.
- The openFEC support staff for their assistance throughout the development process.
Author
Justin G. Davis
Release files for ckey 1.0.0a1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| ckey-1.0.0a1.tar.gz | 4.5 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| ckey-1.0.0a1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 10.3 kB
Release files / ckey-1.0.0a1.tar.gz
| Download URL | ckey-1.0.0a1.tar.gz |
|---|---|
| Size | 4.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
304329d65f3fbbceac60f4618e54ac6becff17ce7d5365966a0f5195aa5f3750
|
|
BLAKE2b-256 checksum How to use checksums |
5b3f701a1efcc02fe8f4c39a17d6c5c254bc2d65f0184f22f51c6485ca971fd4
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.0.1 CPython/3.12.0
|
Release files / ckey-1.0.0a1-py3-none-any.whl
| Download URL | ckey-1.0.0a1-py3-none-any.whl |
|---|---|
| Size | 5.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
aa28c5d87a95424a5d2efd541bcbaa8df05054081e390ab62cca680bdad8628d
|
|
BLAKE2b-256 checksum How to use checksums |
c800afdbba5347edc7da19a416a4c414b7e36a83881c68d33f4982bb1394cfa2
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.0.1 CPython/3.12.0
|