Softpedia
 


LINUX CATEGORIES:



GLOBAL PAGES >>
NEWS ARCHIVE >>
SOFTPEDIA REVIEWS >>
MEET THE EDITORS >>
WEEK'S BEST
  • Linux Kernel 3.9.3 / 3....
  • LibreOffice 3.6.6 / 4.0.3
  • MPlayer 1.1.1
  • systemd 204
  • Arch Linux 2013.05.01
  • Blender 2.67a
  • KDE Software Compilatio...
  • CrunchBang Linux Stable...
  • Elementary OS 0.1 / 0.2...
  • SystemRescueCd 3.6.0
  • Home > Linux > Programming > Libraries

    usa_spending 1.1

    Download button

    No screenshots available
    Downloads: 100  Tell us about an update
    User Rating:
    Rated by:
    NOT RATED
    0 user(s)
    Developer:

    License / Price:

    Last Updated:

    Category:
    Zach Williams | More programs
    BSD License / FREE
    August 10th, 2011, 03:41 GMT
    ROOT / Programming / Libraries

     Read user reviews (0)  Refer to a friend  Subscribe

    usa_spending description

    Python API for the numerous APIs available through USA Spending.

    usa_spending is a Python wrapper 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

    Requirements:

    · Perl

      


    TAGS:

    USA Spending | Python wrapper | USA | Spending | wrapper

    Go to top

    WindowsGamesDriversMacLinuxScriptsMobileHandheldNews

    SUBMIT PROGRAM   |   ADVERTISE   |   GET HELP   |   SEND US FEEDBACK   |   RSS FEEDS   |   UPDATE YOUR SOFTWARE   |   ROMANIAN FORUM