计算抵押贷款数据和现金流的软件包
mortgage-boi的Python项目详细描述
说明
mortgage boi是一个python包,用于计算每月的抵押现金流。在
使用
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
附录
创建构建
首先,在中更新版本号设置.py. 在
然后,在根文件夹中:
python setup.py sdist bdist_wheel
在根文件夹中:
上载生成
生产:
python -m twine upload dist/*
测试:
python -m twine upload --repository-url https://test.pypi.org/legacy/ dist/*
安装软件包
见https://packaging.python.org/tutorials/packaging-projects/
构建包的有用信息:
运行测试套件
python -m unittest discover tests
- 项目
标签: