A Django app to download IRS 527 filings and load them into a database
Project description
A Django app for downloading and parsing IRS campaign finance data, inspired by the [New York Times Fech library](https://github.com/NYTimes/Fech).
[](http://badge.fury.io/py/django-irs-filings)
[](https://travis-ci.org/sahilchinoy/django-irs-filings)
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 archive.
The [archive](http://forms.irs.gov/app/pod/dataDownload/dataDownload) is updated every Sunday at 1:00 AM.
Getting started
---------------
Install it.
```bash
$ pip install django-irs-filings
```
Add `irs` to your list of `INSTALLED_APPS` in `settings.py`.
```python
INSTALLED_APPS = (
...
'irs',
...
)
```
Migrate your database.
```bash
$ python manage.py migrate irs
```
Finally, call the `updateIRS` command. This will download the latest zipped archive from the IRS website, unzip and parse it, and load it into the database.
```bash
$ python manage.py updateIRS
```
[](http://badge.fury.io/py/django-irs-filings)
[](https://travis-ci.org/sahilchinoy/django-irs-filings)
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 archive.
The [archive](http://forms.irs.gov/app/pod/dataDownload/dataDownload) is updated every Sunday at 1:00 AM.
Getting started
---------------
Install it.
```bash
$ pip install django-irs-filings
```
Add `irs` to your list of `INSTALLED_APPS` in `settings.py`.
```python
INSTALLED_APPS = (
...
'irs',
...
)
```
Migrate your database.
```bash
$ python manage.py migrate irs
```
Finally, call the `updateIRS` command. This will download the latest zipped archive from the IRS website, unzip and parse it, and load it into the database.
```bash
$ python manage.py updateIRS
```
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
django-irs-filings-0.1.6.tar.gz
(293.8 kB
view details)
File details
Details for the file django-irs-filings-0.1.6.tar.gz.
File metadata
- Download URL: django-irs-filings-0.1.6.tar.gz
- Upload date:
- Size: 293.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
58c1d9ed24d0dcd97c4c404dde269ad03ec2d25dafe0be8eff7880329751e021
|
|
| MD5 |
27196d95138349655757873a688ec694
|
|
| BLAKE2b-256 |
68e0bb4abf80d15b15c889d407b4ffc954cc31ad2593a89144f672f8e98e2154
|