Skip to main content

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.

Release files for amortize 0.0.9

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for amortize 0.0.9
File Size Uploaded
amortize-0.0.9.tar.gz 6.4 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for amortize 0.0.9
File Interpreter ABI Platform
amortize-0.0.9-py3-none-any.whl Python 3 none any Details

Total release size: 13.1 kB

Release files / amortize-0.0.9.tar.gz

Download URL amortize-0.0.9.tar.gz
Size 6.4 kB
Tags Source
SHA-256 checksum
How to use checksums
e1a28b063ec20b466cbe28887757a63ad2c8bab15258ede2049afb464fc7e12e
BLAKE2b-256 checksum
How to use checksums
559291d3846555e52bcabb62869a3a74707ab0c0c3ef8ff07e8c20bf6df9892d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.1.4 CPython/3.8.5 Windows/10

Release files / amortize-0.0.9-py3-none-any.whl

Download URL amortize-0.0.9-py3-none-any.whl
Size 6.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
51af8ab0805a1e0ed8f216af42d711c04ed346bfd0113ecda85ea89953e53723
BLAKE2b-256 checksum
How to use checksums
ed672fd3b217d00c48d0e85df947f184fc259a89998b5b5ec0d5e4450696e745
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.1.4 CPython/3.8.5 Windows/10

Release history Release notifications | RSS feed

This release

0.0.9 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page