mortgage-boi is a python package for calculating monthly mortgage cash flows.
pip install mortgage-boi
...
import mortgage_boi as mbm
mortgage = mbm.Mortgage(principal=100_000, apr=0.06)
# monthly CF data
mortgage.payments
# specific monthly CF data
mortgage.payments_interest
First, update the version number in setup.py.
Then, in the root folder:
python setup.py sdist bdist_wheel
In the root folder:
Prod:
python -m twine upload dist/*
Test:
python -m twine upload --repository-url https://test.pypi.org/legacy/ dist/*
See https://packaging.python.org/tutorials/packaging-projects/
python -m unittest discover tests