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 (
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](

# 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]( is updated every Sunday at 1:00 AM.

Getting started


  • 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 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 and configure it to connect to your new database.

`bash $ cp project/ project/ $ vim project/ `

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

`bash $ python 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 load `

Release History

This version
History Node


Download Files

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

File Name & Hash SHA256 Hash Help Version File Type Upload Date
(13.0 kB) Copy SHA256 Hash 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