Skip to main content

A package to handle mortgage calculations

Project description

Py-Mortgage

To install:

pip install py_mortgage

To access Mortgage object

import py_mortgage as pym
new_mortgage = pym.mortgage.Mortgage(rate=.04/12,term=360,loan=400000)

py_mortgage has the following methods:

  1. Mortgage.get_pmt(): Will return the payment per period

  2. Mortgage.get_pmt(period): Will return all payments paid up to and including period

  3. Mortgage.get_amortization_table(format='pandas_df', decimal_places=2): Will return an amortization table per period. If format = 'pandas_df', it will return a Pandas DataFrame. If format = 'json', it will convert the DataFrame to a JSON object. Decimal places defaults to 2.

  4. Mortgage.get_interest_pmt(period): Will return the total interest paid in period

  5. Mortgage.get_principal_pmt(period): Will return the total principal paid down in period

  6. Mortgage.cumulative_interest_pmt(period): Will return all interest paid up to and including period.

  7. Mortgage.cumulative_principal_pmt(period): Will return all principal paid up to and including period.

  8. Mortgage.remaining_mortgage_balance(ending_period): Will return the remaining principal up to and including ending_period

  9. Mortgage.describe(): Will return fields from Mortgage

Mortgage.get_apr() is not completed yet and will be included in next release

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

py_mortgage-0.2.1.tar.gz (3.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

py_mortgage-0.2.1-py3-none-any.whl (4.8 kB view details)

Uploaded Python 3

File details

Details for the file py_mortgage-0.2.1.tar.gz.

File metadata

  • Download URL: py_mortgage-0.2.1.tar.gz
  • Upload date:
  • Size: 3.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/2.0.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.6.0 requests-toolbelt/0.9.1 tqdm/4.38.0 CPython/3.7.1

File hashes

Hashes for py_mortgage-0.2.1.tar.gz
Algorithm Hash digest
SHA256 690b373659635a0fb0fb71b150ef5fd6ce148a2f3eccc292e327ac1275f9dcdd
MD5 5feb1ed2705a4232d072ff63b39791ca
BLAKE2b-256 4e30cf0dbb73c3173f65af0a3bd4634033ec248b3858a352611ddda257a6a277

See more details on using hashes here.

File details

Details for the file py_mortgage-0.2.1-py3-none-any.whl.

File metadata

  • Download URL: py_mortgage-0.2.1-py3-none-any.whl
  • Upload date:
  • Size: 4.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/2.0.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.6.0 requests-toolbelt/0.9.1 tqdm/4.38.0 CPython/3.7.1

File hashes

Hashes for py_mortgage-0.2.1-py3-none-any.whl
Algorithm Hash digest
SHA256 739b38ac1caa9173b0e936336dc54eae49882595cdb5ff89875dad57ea91ce2e
MD5 b998babcc328182894490767f0f58f14
BLAKE2b-256 9313c184620aae6dc87ce43f887892e278dd936df01ebda77af225be5e5a475f

See more details on using hashes here.

Supported by

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