Join GitHub today
GitHub is home to over 20 million developers working together to host and review code, manage projects, and build software together.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
|Failed to load latest commit information.|
============= python-us-cpi ============= THIS LIBRARY NO LONGER WORKS. Apparently the Bureau of Labor Statistics changed their site after August 2013 and this library no longer works. I don't know if or when I'll have a chance to fix it. Tools for parsing the latest US Consumer Price Index To install:: pip install UsCpi or:: easy_install UsCpi Usage ===== In python:: from uscpi import UsCpi cpi = UsCpi() # downloads the latest CPI data # $100 in 2012 is worth how much in 1980? cpi.value_with_inflation(100, 2012, 1980) or command line:: user@computer:~$ python uscpi/__init__.py [filename] The command line version will output a CSV file of the latest US Consumer Price Index, taken from this site: http://www.bls.gov/cpi/#tables This tool also comes with an inflation calculator as demonstrated in the python example above. Source is at Github: https://github.com/Glench/python-us-cpi If you just want the CSV, you should be able to download the latest version here: http://glench.com/open-source/python-us-cpi/latest_us_cpi.csv