用于计算摊销和生成摊销计划的python库

amortization的Python项目详细描述


摊销

用于计算摊销和生成摊销计划的python库

LicenseVersion
Travis CIAppVeyor
CoverageWheel
StatusDownloads
Supported versionsImplementation

演示

Amortization Calculator

安装

pip install amortization

使用cython

构建
pip install cython
pip install amortization

用法

Python

摊销额

fromamortization.amountimportcalculate_amortization_amountamount=calculate_amortization_amount(150000,0.1,36)

摊销计划

fromamortization.scheduleimportamortization_schedulefornumber,amount,interest,principal,balanceinamortization_schedule(150000,0.1,36):print(number,amount,interest,principal,balance)

摊销计划(使用表格)

fromamortization.scheduleimportamortization_schedulefromtabulateimporttabulatetable=(xforxinamortization_schedule(150000,0.1,36))print(tabulate(table,headers=["Number","Amount","Interest","Principal","Balance"],floatfmt=",.2f",numalign="right"))

命令行

amortize -h
usage: amortize [-h] -P PRINCIPAL -n PERIOD -r INTEREST_RATE [-s]

Python library for calculating amortizations and generating amortization
schedules

optional arguments:
  -h, --help            show this help message and exit
  -s, --schedule        Generate amortization schedule

required arguments:
  -P PRINCIPAL, --principal PRINCIPAL
                        Principal amount
  -n PERIOD, --period PERIOD
                        Total number of periods
  -r INTEREST_RATE, --interest-rate INTEREST_RATE
                        Interest rate per period
amortize -P 150000 -n 36 -r 0.1 -s

依赖关系

作者

Ronie Martinez

参考文献

欢迎加入QQ群-->: 979659372 Python中文网_新手群

推荐PyPI第三方库


热门话题
如何使用泛型在Java中生成通用方法?   java从ISO/IEC 197944图像数据文件创建图像   java实现RSA的代码有什么问题?   javascript如何将JsonArray从解析云检索到安卓?   在vaadin中上传和下载java文件   java ListView自定义适配器OnClick启动URL链接   java在一个hbox中提供两个元素的独立对齐   java用类名创建类   java从unix命令行运行jar文件   java FTP下载在文件#146处停止