Project Description
This is a package for calculating future values and debt payoff in python. Generally this is a small package so people can learn how to install and use packages. It is meant to pair well with matplotlib and seaborn they are listed as dependancies to ensure they are installed.
How to install and use
In the command line type:
pip install ben-future-value
Once installed then use by importing at the top of your python code.
Below is an example of how you might generate a graph to compare outcomes of different interest rates.
# Here we import packages, the first one is for making graphs
# the second one allows us to calculate our future values
# The third one allows us to make our graphs a little prettier with less code.
import matplotlib.pyplot as plt
import ben_future_value as bfv
import seaborn as sns
#These next lines makes our graph pretty later. You don't need them.
sns.set_context("notebook")
sns.set_style("darkgrid")
# These variables are for convenience of editing later.
NUMBER_OF_YEARS = 25
MATCHES_PER_YEAR = 4
PRINCIPLE_VALUE = 1000.00
AMMOUNT_CONTRIBUTED_PER_MATCH = 100.00
PERCENT_INCREASE_ONE = 5.0
PERCENT_INCREASE_TWO = 8.5
PERCENT_INCREASE_THREE = 12.0
# Here we use the ben_future_value package to calculate future values
high_yield_savings = bfv.Future_Value(
PRINCIPLE_VALUE,
PERCENT_INCREASE_ONE,
AMMOUNT_CONTRIBUTED_PER_MATCH,
NUMBER_OF_YEARS,
MATCHES_PER_YEAR
)
low_interest_investment = bfv.Future_Value(
PRINCIPLE_VALUE,
PERCENT_INCREASE_TWO,
AMMOUNT_CONTRIBUTED_PER_MATCH,
NUMBER_OF_YEARS,
MATCHES_PER_YEAR
)
average_interest_investment = bfv.Future_Value(
PRINCIPLE_VALUE,
PERCENT_INCREASE_THREE,
AMMOUNT_CONTRIBUTED_PER_MATCH,
NUMBER_OF_YEARS,
MATCHES_PER_YEAR
)
# Next we plot our future values
plt.plot(high_yield_savings.get_future_values())
plt.plot(low_interest_investment.get_future_values())
plt.plot(average_interest_investment.get_future_values())
plt.legend(
[
"High Yield Savings (" + str(PERCENT_INCREASE_ONE) + "%)",
"Low Interest Investment (" + str(PERCENT_INCREASE_TWO) + "%)",
"Average Interest Investment (" + str(PERCENT_INCREASE_THREE) + "%)"
]
)
# These next two lines add axis titles
plt.xlabel("Number of Matches")
plt.ylabel("Dollar Value")
# This shows out graph when we run out code
plt.show()
Metadata
Release files for ben-future-value 1.0.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| ben_future_value-1.0.1.tar.gz | 4.6 kB | Without provenance | Details for ben_future_value-1.0.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| ben_future_value-1.0.1-py3-none-any.whl | Python 3 | none | any | Details for ben_future_value-1.0.1-py3-none-any.whl |
Total release size: 9.5 kB
Release files / ben_future_value-1.0.1.tar.gz
| Download URL | ben_future_value-1.0.1.tar.gz |
|---|---|
| Size | 4.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
859da0f765009005166160aa97e3aa7b8885bc09433c7a7f39b69843ea14af91
|
|
BLAKE2b-256 checksum How to use checksums |
ce1ceef70ca1b7c032635c3f91d312cd11c5cdeaa7dd6e2b3c80c1e5e4d8274d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.9.20
|
Release files / ben_future_value-1.0.1-py3-none-any.whl
| Download URL | ben_future_value-1.0.1-py3-none-any.whl |
|---|---|
| Size | 4.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
b0c438e2cc1a854e435d58615109821903201962a61a9ab0930a7e89d3c134e4
|
|
BLAKE2b-256 checksum How to use checksums |
ef5fc8adc5da418a19cc40d67cd3ec413c146ff642da7d4b209a94b4f5e149b7
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.9.20
|
Security for ben-future-value 1.0.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.