Dollarwave

Latest version: v2.0.6

Safety actively analyzes 702232 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 2 of 2

2.0.2

New Features
- **Graphical User Interface (GUI)**
- Introduced a new GUI for user-friendly inflation calculations.
- Users can now calculate:
- The inflation-adjusted value of an amount from the original year to the target year.
- The historical value change of a given dollar amount over the past n years.
- The value of a given amount against the CPI values for each month of the current year.

Enhancements
- Improved the `InflationCalculator` to handle edge cases more effectively.
- Added methods for current year CPI changes and historical comparisons.

Bug Fixes
- Fixed an issue where monthly CPI data was not correctly falling back to yearly averages.
- Corrected the CPI data validation process to handle missing data more gracefully.
- Resolved inconsistencies in the inflation adjustment calculations for specific years.

Usage Examples
python
from dollarwave import GUI

Run the GUI
GUI.run()


python
from dollarwave import inflation_calculator

Calculate the current year change
print(inflation_calculator.current_year_change(amount=5))

1.0.0

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.

Table of Contents
1. [Why dollarwave?](why-dollarwave)
2. [Key Features](key-features)
3. [Usage Examples](usage-examples)
- [Calculating Inflation-Adjusted Values](calculating-inflation-adjusted-values)
4. [Installation](installation)
5. [Contributing](contributing)
6. [License](license)

Why dollarwave?

- **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.

Key Features

1. **Inflation Adjustment Calculation**:
- Calculates the equivalent value of an amount of money in different years using CPI data.
- Automatically switches to yearly averages if monthly data is not available for the most recent comparison year.

2. **Data Handling and Validation**:
- Validates CPI data to ensure it meets the required criteria.
- Converts and processes CPI data for easy manipulation and calculation.

Usage Examples

Calculating Inflation-Adjusted Values

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

python
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.

Page 2 of 2

© 2025 Safety CLI Cybersecurity Inc. All Rights Reserved.