Skip to content
A CLI to compute the effect of inflation across years
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
inflate
tests
.gitignore
LICENSE
README.md
inflate-runner.py
requirements.txt
setup.py

README.md

💸 inflate

PyPI License Code Style: Black Downloads

inflate is a Python built command line interface that lets you quickly compute how inflation affects a sum of money in an intuitive and visually pleasing package.

Installation

Run pip install inflate. Verify that the latest version is installed by running inflate --version.

Usage

>>> inflate [OPTIONS] START END [AMOUNT]
    [AMOUNT] in [START] is worth [INFLATED AMOUNT] in [END] ([INCLUSIVE/EXCLUSIVE])

The options are

  -c, --country TEXT  Country [either US/UK], default is UK
  -i, --inclusive     Include ending year, default no
  -a, --average       Show average annualised inflation, default no
  --version           Show the version and exit.
  --help              Show this message and exit.

Example:

>>> inflate -c US -i 1998 1999 50
    $50.0 in 1998 is worth $51.51 in 1999 (inclusive).
>>> inflate -a 1998 2000 50
		£50.0 in 1998 is worth £51.46 in 2000 (exclusive). The average inflation across this period was 1.46%.

Current features

  • Able to work "backwards", that is, if you want to know how much $10 in 2018 was worth in 2000, you can do so via inflate -c US 2018 2000 10
  • Package and publish on PyPI.

Future features/work

  • Add in a more detailed analytics view, showing average inflation across time period.
  • Flesh out the testing modules
You can’t perform that action at this time.