Skip to main content

dollarwave Logo

Dollarwave Library: Inflation Adjustment Using CPI Data

⚠️ Dollarwave Library - DEPRECATED

This library is no longer maintained. Please use quantsumore instead.

The quantsumore library provides the same core functionality as dollarwave, with enhancements and active development. This guide will show you how to migrate your code to the new library.


Migrating to quantsumore

Inflation Adjustment Example in quantsumore

If you used the inflation_calculator in dollarwave, here’s how to achieve the same with quantsumore:

pip install quantsumore
from quantsumore.api import cpi

# Create an instance of the inflation adjustment tool
cpi_instance = cpi.CPI_U.InflationAdjustment

# Calculate the adjusted value
original_amount = 1
original_year = 1970
target_year = 2024
adjusted_amount = cpi_instance.select(original_amount, original_year, target_year)
print(f"${original_amount} from {original_year} is equivalent to ${adjusted_amount:.2f} in {target_year} dollars.")

Output:

$1 from 1970 is equivalent to $8.04 in 2024 dollars.

Using the GUI in quantsumore

If you used the graphical user interface (GUI) in dollarwave, here's how to use it in quantsumore:

from quantsumore.gui import GUI

# Run the inflation calculator GUI
GUI.run()

⚠️ Original Dollarwave Documentation (Deprecated)

The following examples are for dollarwave, but it is recommended to use quantsumore as shown above.

Dollarwave Library: Inflation Adjustment Using CPI Data

The dollarwave module is a comprehensive library designed for adjusting the value of money across different years using Consumer Price Index (CPI) data. It offers extensive capabilities to handle and process CPI data, ensuring accurate inflation adjustments.

Why dollarwave? (Deprecated)

  • Accurate Inflation Adjustments: Utilizes CPI data to calculate the equivalent value of money across different years.
  • Easy to Use: Provides a straightforward API for calculating inflation-adjusted values.
  • Data Validation: Ensures the accuracy and consistency of CPI data used in calculations.

Usage Examples (Deprecated)

Calculating Inflation-Adjusted Values (Deprecated)

Use the inflation_calculator to calculate the equivalent value of money across different years:

from dollarwave import inflation_calculator

# Calculate the adjusted value
original_amount = 1
original_year = 1970
target_year = 2024
adjusted_amount = inflation_calculator(original_amount, original_year, target_year)

Output:

$1 from 1970 is equivalent to $8.04 in 2024 dollars.

Using the GUI (Deprecated)

You can also use the graphical user interface (GUI) to perform inflation calculations:

from dollarwave import GUI

# Run the GUI
GUI.run()

GUI Screenshots (Deprecated)

Here are some screenshots of the GUI in action:

  • Adjusted Value Tab

Adjusted Value Tab

  • Current Year Change Tab

Current Year Change Tab


Installation (Use quantsumore instead)

To install the deprecated dollarwave library, use pip:

pip install dollarwave

However, it is strongly recommended to use the new quantsumore library:

pip install quantsumore

Contributing

Contributions are welcome for quantsumore, but dollarwave is no longer maintained. Please read the contribution guidelines for details on contributing to quantsumore.

License

This project is licensed under the MIT License - see the LICENSE file for details.

Release files for dollarwave 2.0.6

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for dollarwave 2.0.6
File Size Uploaded
dollarwave-2.0.6.tar.gz 1.1 MB Details

Built distribution (wheel)

Table of built distributions (wheels) for dollarwave 2.0.6
File Interpreter ABI Platform
dollarwave-2.0.6-py3-none-any.whl Python 3 none any Details

Total release size: 2.1 MB

Release files / dollarwave-2.0.6.tar.gz

Download URL dollarwave-2.0.6.tar.gz
Size 1.1 MB
Tags Source
SHA-256 checksum
How to use checksums
020e3968bec409a66ba307908d43ec0e86ea81c982e68074b1f6899c590cecf7
BLAKE2b-256 checksum
How to use checksums
176e131810ac9d79506b1f81f6d8c42e30b22cddf6695d6afe41c8d4ef3aedcf
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.0 CPython/3.8.5

Release files / dollarwave-2.0.6-py3-none-any.whl

Download URL dollarwave-2.0.6-py3-none-any.whl
Size 1.1 MB
Tags Python 3
SHA-256 checksum
How to use checksums
f09c83df40e78d1b59a1cb2947bb446543354a284cd0bebf8310224b5eb647a7
BLAKE2b-256 checksum
How to use checksums
559b4ffe94df5cfb2eeb86e7785618304c3a2dfdefa082447796fa226b2f4d3b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.0 CPython/3.8.5

Release history Release notifications | RSS feed

This release

2.0.6 This release

2 release files

2.0.5

2 release files

2.0.4

2 release files

2.0.2

2 release files

1.0.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page