amortize

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


Keywords
mortgage, amortization, loan, refinance
License
MIT
Install
pip install amortize==0.0.9

Documentation

amortize

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

CodeFactor Travis (.com) branch

Inspiration

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!

Installation

Install with pip or your favorite PyPi package manager.

pip install amortize

Dependencies

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

Usage

Mortgage(
    loan amount,
    annual interest rate,
    loan period in months,
    fees)
from amortize.calc import Mortgage    
m=Mortgage(300000,6,12,0)
>> 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

CLI

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

Screenshots

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

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

Refinance:
amortize -a300000 -i6 -m12 -f9000 -r

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

Thank You

Thanks for checking out the package.