newsdev/nyt-pyfec

Name: nyt-pyfec

Owner: NYT Newsroom Developers

Description: A Python library for downloading, parsing and cleaning Federal Election Commission filings.

Created: 2015-08-31 20:17:09.0

Updated: 2018-01-24 15:29:41.0

Pushed: 2017-07-12 19:42:44.0

Homepage: null

Size: 293

Language: Python

GitHub Committers

UserMost Recent Commit# Commits

Other Committers

UserEmailMost Recent Commit# Commits

README

NOTE: Refactor underway

I'm working on a significant refactor in the branch flat-files. The goals of this refactor are as follows:

  1. be smarter about the python object that comes out of pyfec. Right now it's a little haphazard where fields are located, and it has that terrible flat_filing key. I'll try to give things better names and put them in more logical places. These changes will be breaking whenever merged back in
  2. Create a way to dump the transactions from a filing into csvs for easy import to a database via file copying. This part should be irrelevant to current users.

I don't believe that pyfec has a mailing list. If you're a user who wants to be informed about potentially breaking changes, please contact rachel.shorey@nytimes.com. When I merge in the new branch, I'm going to upgrade to v1 and will be good about version tagging from there on out.

This is alpha

Really. On a given day, we make no promises that it works. We make no promises that it's not wrong. We make no promises that we won't push breaking hotfixes. If you're going to use it, we strongly recommend a fork.

Getting started
install -e git+git@github.com:newsdev/nyt-pyfec.git#egg=nyt-pyfec
on -m pyfec.demo
how to update fec-csv-sources…

…if you, like me, are other than awesome at git.


This work is supported by the National Institutes of Health's National Center for Advancing Translational Sciences, Grant Number U24TR002306. This work is solely the responsibility of the creators and does not necessarily represent the official views of the National Institutes of Health.