⚠️ DEPRECATED: This package is no longer maintained. Please use quantsumore instead. A comprehensive Python library for scraping and retrieving real-time data across multiple financial markets, including cryptocurrencies, equities, Forex, treasury yields, and consumer price index (CPI) data.
Project description
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
- 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.
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-2.0.6.tar.gz
.
File metadata
- Download URL: dollarwave-2.0.6.tar.gz
- Upload date:
- Size: 1.1 MB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.0 CPython/3.8.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 020e3968bec409a66ba307908d43ec0e86ea81c982e68074b1f6899c590cecf7 |
|
MD5 | d9f51a6c8a51c5c3fce3394c30309f49 |
|
BLAKE2b-256 | 176e131810ac9d79506b1f81f6d8c42e30b22cddf6695d6afe41c8d4ef3aedcf |
File details
Details for the file dollarwave-2.0.6-py3-none-any.whl
.
File metadata
- Download URL: dollarwave-2.0.6-py3-none-any.whl
- Upload date:
- Size: 1.1 MB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.0 CPython/3.8.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | f09c83df40e78d1b59a1cb2947bb446543354a284cd0bebf8310224b5eb647a7 |
|
MD5 | 114c6db4ea8351a5a25c8febafb9105a |
|
BLAKE2b-256 | 559b4ffe94df5cfb2eeb86e7785618304c3a2dfdefa082447796fa226b2f4d3b |