Welcome, guest | Sign In | My Account | Store | Cart

Notice! PyPM is being replaced with the ActiveState Platform, which enhances PyPM’s build and deploy capabilities. Create your free Platform account to download ActivePython or customize Python with the packages you require and get automatic updates.

Download
ActivePython
INSTALL>
pypm install uscpi

How to install UsCpi

  1. Download and install ActivePython
  2. Open Command Prompt
  3. Type pypm install uscpi
 Python 2.7Python 3.2Python 3.3
Windows (32-bit)
Windows (64-bit)
Mac OS X (10.5+)
0.4.0 Available View build log
Linux (32-bit)
0.4.0 Available View build log
Linux (64-bit)
0.4.0 Available View build log
 
License
LICENSE.txt
Imports
Lastest release
version 0.4.0 on Mar 20th, 2013

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:

$: python uscpi/__init__.py [filename]

The command line version will output a CSV file of the latest US Consumer Price Index, taken from the this site: http://www.bls.gov/cpi/#tables

This tool also comes with an inflation calculator as demonstrated in the python example above.

Subscribe to package updates

Last updated Mar 20th, 2013

What does the lock icon mean?

Builds marked with a lock icon are only available via PyPM to users with a current ActivePython Business Edition subscription.

Need custom builds or support?

ActivePython Enterprise Edition guarantees priority access to technical support, indemnification, expert consulting and quality-assured language builds.

Plan on re-distributing ActivePython?

Get re-distribution rights and eliminate legal risks with ActivePython OEM Edition.