A Python library for inflation adjustment calculations using Consumer Price Index (CPI) data.
Project description
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
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
-
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.
-
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:
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.
8.044961340206186
Installation
To install the dollarwave
library, use pip:
pip install dollarwave
Contributing
Contributions are welcome! Please read the contribution guidelines first.
License
This project is licensed under the MIT License - see the LICENSE file for details.
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
Built Distribution
File details
Details for the file dollarwave-1.0.0.tar.gz
.
File metadata
- Download URL: dollarwave-1.0.0.tar.gz
- Upload date:
- Size: 6.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.0 CPython/3.8.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4ab02b20b43250eca01d3f14bd0bb8257298ea31146817b870ecfdfa7d7e30af |
|
MD5 | f77099d2cf59045545ea932ac6a4fe36 |
|
BLAKE2b-256 | 551e7f98767da9208ae64b992d11fa13c09f2361367ce42a508965b37984be1a |
File details
Details for the file dollarwave-1.0.0-py3-none-any.whl
.
File metadata
- Download URL: dollarwave-1.0.0-py3-none-any.whl
- Upload date:
- Size: 6.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.0 CPython/3.8.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | a235da1e12841ab4885941dba233249733bc764834af655e9588fe539e573d2a |
|
MD5 | 26c9006442e09efb60638a22ad52d24f |
|
BLAKE2b-256 | 9fb905389b83d0ba2c9f8e6b488f9cb33d6e6660a03b9b3800d34874828bb305 |