Skip to main content

inflate lets you compute how much money is worth in different years

Project description

:money_with_wings: 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

Project details


Download files

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

Source Distribution

inflate-0.4.tar.gz (7.9 kB view details)

Uploaded Source

File details

Details for the file inflate-0.4.tar.gz.

File metadata

  • Download URL: inflate-0.4.tar.gz
  • Upload date:
  • Size: 7.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.32.2 CPython/3.7.4

File hashes

Hashes for inflate-0.4.tar.gz
Algorithm Hash digest
SHA256 749588857001f32f38792c4286c1849c76545814370cbaef3d4b2ff67df51e55
MD5 a4f90a5ad3be86595bb6f4aedded20ab
BLAKE2b-256 71d4659ac0505bb4d9b60edf803c8315931e85bf31513e64b70596b40c1b65de

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page