Skip to content

Scratch code/tools/notebooks for working with historical FEC contribution data. (You probably won't find this very interesting, but hey -- you never know!)

License

Notifications You must be signed in to change notification settings

front-seat/fec-data

Repository files navigation

fec-data

Working with FEC individual contribution data

You'll want to download FEC's 2019-2020 dataset from here: https://www.fec.gov/data/browse-data/?tab=bulk-data And you'll want to symlink ./data/indiv20.txt to the itcont.txt file you download from FEC.

Details on the FEC data schema: https://www.fec.gov/campaign-finance-data/contributions-individuals-file-description/

Notes on installing dependencies locally on a Apple Silicon mac

We're using python 3.12. Modern Macs have clang >= 15.x (mine has 17.0.4).

Alas, a transitive dependency (multidict) is currently broken in this environment and, also, does not ship binary wheels. Here's my solution: aio-libs/multidict#877 (comment)

Running locally

You'll need the sqlite databases, of course (ask Dave).

Then, you'll need to install the dependencies:

npm install
CFLAGS="-Wno-error=int-conversion" pip install -r requirements.txt
pip install -r requirements-dev.txt

Then, you'll need to run both the Vite front-end server AND the python+litestar backend server:

./scripts/run.sh

Pop open http://localhost:2222/ and you should see the app.

About

Scratch code/tools/notebooks for working with historical FEC contribution data. (You probably won't find this very interesting, but hey -- you never know!)

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published