Skip to main content

Easy-to-use Python Library for Amortization Schedule and Refinance

Project description


Easy-to-use Python Library for Amortization Schedule and Refinance

CodeFactor Travis (.com) branch


The bank with the lowest rate is not always the best choice. APR is important because the interest rate that gets quoted by the lender, isn't always the interest rate that you will pay. The APR includes interest rate and fees charged by the lender, and lets you compare mortgage offers. APR, reflects the true cost of borrowing. However, the borrower will see this figure after the approval and signing of the contract!

If you want something that is straight to the point, this python library can be a good reference.

  • You can estimate the mortgage amount that works with your budget.
  • See true cost of borrowing.
  • If you wish, you can see a payment breakdown for every single month of the loan duration.
  • It allows the side-by-side comparison of the existing or refinanced loan.
  • The break-even point shows how long it'll take for the savings to outweigh the cost.
  • You can export amortization schedule to excel.
  • It doesn’t show you graphs, pie charts, or amortization charts!


Install with pip or your favorite PyPi package manager.

pip install amortize


  • numpy-financial = 1.0.0
  • tabulate = 0.8.7
  • pandas = "1.2.1


    loan amount,
    annual interest rate,
    loan period in months,
from amortize.calc import Mortgage    
>> m.afford()           : Determine how much house you can afford
>> m.summary()          : Repayment summary
>> m.table()            : Amortization table
>> m.refinance()        : Refinance
>> m.excel()            : Send amortization table to excel


usage: amortize [-h] -a AMOUNT -i INTEREST -m MONTHS -f FEES [-s] [-t] [-r] [-c] [-e]

Easy-to-use Python Library for Amortization Schedule and Refinance

optional arguments:
-h, --help            show this help message and exit
-s, --summary         Repayment summary
-t, --table           Amortization table
-r, --refinance       Refinance
-c, --afcalc          Affordability calculator
-e, --excel           Export to excel

required arguments:
-a AMOUNT, --amount AMOUNT  Loan amount
-i INTEREST, --interest INTEREST Annual interest rate
-m MONTHS, --months MONTHS Loan period in months
-f FEES, --fees FEES  Extra payments


Repayment Summary:
amortize -a300000 -i6 -m12 -f6000 -s

Amortization Table:
amortize -a300000 -i6 -m12 -f0 -t

amortize -a300000 -i6 -m12 -f9000 -r

amortize -a0 -i2.61 -m360 -f0 -c

Thank You

Thanks for checking out the package.

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

amortize-0.0.9.tar.gz (6.4 kB view hashes)

Uploaded Source

Built Distribution

amortize-0.0.9-py3-none-any.whl (6.6 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page