Skip to main content
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](


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

Release history Release notifications

This version
History Node


History Node


Download files

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

Filename, size & hash SHA256 hash help File type Python version Upload date
usa_spending-1.1.tar.gz (9.9 kB) Copy SHA256 hash SHA256 Source None Aug 8, 2011

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging CloudAMQP CloudAMQP RabbitMQ AWS AWS Cloud computing Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page