Skip to main content

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

Project details

Download files

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

Files for usa_spending, version 1.1
Filename, size File type Python version Upload date Hashes
Filename, size usa_spending-1.1.tar.gz (9.9 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page