Skip to main content
This is a pre-production deployment of Warehouse. Changes made here affect the production instance of PyPI (pypi.python.org).
Help us improve Python packaging - Donate today!

Python API for the numerous APIs available through USA Spending.

Project Description

Python API for the numerous APIs available through [USA Spending](http://usaspending.gov/data?carryfilters=on).

Usage

>>> from usa_spending import Contracts
>>> c = Contracts()
>>> c.search(state='TX', count=500)
>>> # Search for contracts for a specific year.
... c.search(zipcode=12345, year=2010)
>>> # Search for contracts within a date range.
... c.search(state='CA', first_year=2008, last_year=2010)
>>> # Search for contracts not competed on.
... c.search(state='NY', competition='not competed')
>>> # Search for contracts not available for competition.
... c.search(state='NY', competition='N/A')
>>> # Find the number of contracts matching your criteria.
... data = c.search(zipcode=12345)
>>> found = data.response.result.numFound
>>> print found
6789
Release History

Release History

This version
History Node

1.1

History Node

1.0

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
usa_spending-1.1.tar.gz (9.9 kB) Copy SHA256 Checksum SHA256 Source Aug 8, 2011

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