Skip to main content
Warning: You are using the test version of PyPI. This is a pre-production deployment of Warehouse. Changes made here affect the production instance of TestPyPI (testpypi.python.org).
Help us improve Python packaging - Donate today!

A Django app to download IRS 527 filings and load them into a database

Project Description

# django-irs A Django project for downloading and parsing IRS campaign finance data, inspired by the [New York Times Fech library](https://github.com/NYTimes/Fech).

# Background Some political committees report their contributions and expenditures to the IRS under § 527 of the U.S. tax code. The IRS publishes these disclosure forms as a bulk download. This app attempts to make sense of that bulk export.

The [archive](http://forms.irs.gov/app/pod/dataDownload/dataDownload) is updated every Sunday at 1:00 AM.

Getting started

Requirements:

  • Python
  • PostgreSQL
  • virtualenv
  • Git

Create a virtualenv to store the codebase.

`bash $ virtualenv django-irs `

Activate the virtualenv.

`bash $ cd django-irs $ . bin/activate `

Clone the git repository from GitHub.

`bash $ git clone git@github.com:sahilchinoy/django-irs.git repo `

Enter the project and install its dependencies.

`bash $ cd repo $ pip install -r requirements.txt `

Create a new database for this project.

`bash $ createdb irs `

Make a copy of settings_dev.py and configure it to connect to your new database.

`bash $ cp project/settings_dev.py.template project/settings_dev.py $ vim project/settings_dev.py `

Run the test server for the first time. There shouldn’t be any filings loaded yet.

`bash $ python manage.py runserver `

# Downloading To get started, call the load command. This will download the latest zipped archive from the IRS website, unzip and parse it, and insert it into the database.

`bash $ python manage.py load `

Release History

Release History

This version
History Node

0.1

Download Files

Download Files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

File Name & Checksum SHA256 Checksum Help Version File Type Upload Date
django-irs-0.1.tar.gz (13.0 kB) Copy SHA256 Checksum SHA256 Source Sep 2, 2015

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Rackspace Rackspace Cloud Servers DreamHost DreamHost Log Hosting