Skip to content
Python library for calculating amortizations and generating amortization schedules
Python
Branch: master
Clone or download
roniemartinez Merge branch 'develop'
# Conflicts:
#	.travis.yml
#	README.md
#	setup.cfg
Latest commit 15d11c2 May 15, 2019
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
amortization
tests Support Cython May 15, 2019
.travis.yml Merge branch 'develop' May 15, 2019
CHANGELOG.md Support Cython May 15, 2019
LICENSE Initial commit May 4, 2019
Pipfile Support Cython May 15, 2019
README.md Merge branch 'develop' May 15, 2019
appveyor.yml AppVeyor integration May 6, 2019
conftest.py
requirements.txt
setup.cfg Bump version May 15, 2019
setup.py Support Cython May 15, 2019

README.md

amortization

Python library for calculating amortizations and generating amortization schedules

License Version
Travis CI AppVeyor
Coverage Wheel
Status Downloads
Supported versions Implementation

Demo

Amortization Calculator

Install

pip install amortization

To build using Cython

pip install cython
pip install amortization

Usage

Python

Amortization Amount

from amortization.amount import calculate_amortization_amount

amount = calculate_amortization_amount(150000, 0.1, 36)

Amortization Schedule

from amortization.schedule import amortization_schedule

for number, amount, interest, principal, balance in amortization_schedule(150000, 0.1, 36):
    print(number, amount, interest, principal, balance)

Amortization Schedule (using tabulate)

from amortization.schedule import amortization_schedule
from tabulate import tabulate

table = (x for x in amortization_schedule(150000, 0.1, 36))
print(
    tabulate(
        table,
        headers=["Number", "Amount", "Interest", "Principal", "Balance"],
        floatfmt=",.2f",
        numalign="right"
    )
)

Command line

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

Dependencies

Author

Ronie Martinez

References

You can’t perform that action at this time.