Descrição da biblioteca Module 5MLET
Project description
💰 My Investment
My Investment is a simple and easy-to-use Python library for performing common financial calculations related to investments, such as return on investment, compound interest, monthly interest rate conversion, and CAGR (Compound Annual Growth Rate).
📦 Installation
Install the package using pip:
pip install module-5mlet-package
💡 Note: Make sure you have Python 3.7+ installed.
🚀 Usage
Here's a basic example of how to use the library:
from investments import calculate_investment_return, calculate_compound_interest
initial_value = 1000
final_value = 1500
# Calculate investment return
investment_return = calculate_investment_return(initial_value, final_value)
print(f"Investment return: {investment_return:.2f}%")
# Calculate compound interest
final_with_interest = calculate_compound_interest(initial_value, 6, 5)
print(f"Final value with compound interest: ${final_with_interest:.2f}")
📚 Features
-
calculate_investment_return(): Calculates the total return of an investment. -
calculate_compound_interest(): Computes final amount using compound interest. -
convert_annual_rate_to_monthly(): Converts an annual interest rate to a monthly one. -
calculate_cagr(): Calculates the Compound Annual Growth Rate.
🧪 Running Tests
You can run the unit tests using:
python -m unittest discover tests
📄 License
This project is licensed under the MIT License.
Project details
Release history Release notifications | RSS feed
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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file module_5mlet_package-2.0.0.tar.gz.
File metadata
- Download URL: module_5mlet_package-2.0.0.tar.gz
- Upload date:
- Size: 3.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9acb7aa4379a527273613244b01a4d0a23f036baa7dfa84da8a835bde345d782
|
|
| MD5 |
bdc131e2628478a1297534cfda43f457
|
|
| BLAKE2b-256 |
6062c959e60789ee26c7c7d82207cec780b0137b4905f4a25cbc02ef5c70cce7
|
File details
Details for the file module_5mlet_package-2.0.0-py3-none-any.whl.
File metadata
- Download URL: module_5mlet_package-2.0.0-py3-none-any.whl
- Upload date:
- Size: 3.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e1c4f2f96a818a2a2879eaec11c862c351fdab46c51fcf7bf362de4c99d14bd4
|
|
| MD5 |
579b3b5bc9bf5707f3ec25fa63e8e09a
|
|
| BLAKE2b-256 |
669457da856c4824fba45144336756511ff468f878ea3a667b28d248fd7a5d9d
|