A simple Python package for financial valuation
Project description
Timevalue
Timevalue is a simple Python package for analytics and investing tools
Before using the tool create a virtual environment
python -m venv venv
Notice that a /venv
directory is created in the project folder. To activate the virtual environemnt run
source ./venv/bin/activate
Next, install package using
python -m pip install -e .
Use timevalue in your command line interface / Terminal.
timevalue 1000, .03, 2 #returns 1060.90
Using import within python projects
In [1]: from timevalue.investing import time_value_money
In [2]: initialize = time_value_money.TimeValueOfMoney()
In [3]: initialize.future_value_of_money(1000, .03, 2)
Out[3]: 1060.9
In [4]: initialize.present_value_of_money(1000, .03, 2)
Out[4]: 942.5959091337544
Calculating annuinty value
Annuity are payments are that are paid to you as a steady stream of income. Heres an example of growing annuity due.
annuity --future_value --due --cash_flow 1000 --interest_rate 0.06 --time 3 --growth_rate .10
Output:
3709.576
You can access the help by using annuity --help
.
usage: annuity [-h] [-c] [-p | -f] -i -t [-d] [-g] [--pv | --fv]
Calculate annuity payments.
options:
-h, --help show this help message and exit
-c , --cash_flow cash flow
-p, --present_value present value
-f, --future_value future value
-i , --interest_rate interest rate
-t , --time time
-d, --due With an annuity due, payments are made at the beginning of each period
-g , --growth_rate growth rate
--pv reverse calculate the present value (bool)
--fv reverse calculate the future value (bool)
See more examples.
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
timevalue-0.0.1.tar.gz
(341.4 kB
view hashes)
Built Distribution
timevalue-0.0.1-py3-none-any.whl
(340.1 kB
view hashes)
Close
Hashes for timevalue-0.0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 69ad4b7493ac1a26fe8218d498e4333087125ea5c2953c6d086fff55acdff923 |
|
MD5 | 09cff616d8b2cf6758e5391feff7d0bd |
|
BLAKE2b-256 | 7a33629410e53c1bab5df1ee95669aa871077bc16b0ca4ba0819f200dc1a5662 |