Skip to main content

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

Metadata

Release files for py-mortgage 0.2.3

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

Source distribution (sdist)

Source distribution for py-mortgage 0.2.3
File Size Uploaded Provenance
py_mortgage-0.2.3.tar.gz 3.2 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for py-mortgage 0.2.3
File Interpreter ABI Platform
py_mortgage-0.2.3-py3-none-any.whl Python 3 none any Details

Total release size: 8.0 kB

Release files / py_mortgage-0.2.3.tar.gz

Download URL py_mortgage-0.2.3.tar.gz
Size 3.2 kB
Tags Source
SHA-256 checksum
How to use checksums
4c576579c107fc9068fd8da80caa7be4cc70301135c90cfad328e16cd83f8ba2
BLAKE2b-256 checksum
How to use checksums
bd90fc1f130019d6eda962825208c900679184905433bb872455ebabd94d13b0
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/43.0.0 requests-toolbelt/0.9.1 tqdm/4.41.0 CPython/3.7.1

Release files / py_mortgage-0.2.3-py3-none-any.whl

Download URL py_mortgage-0.2.3-py3-none-any.whl
Size 4.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
d38a13bc6d4730c1ce00f0d0b17e60405380ccfb9319e566a20f53b9bf889d67
BLAKE2b-256 checksum
How to use checksums
ab0bd8b0e89bac676e7fb7df3361f3c18766de66cec9c1b9944728eaf7452737
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/43.0.0 requests-toolbelt/0.9.1 tqdm/4.41.0 CPython/3.7.1

Security for py-mortgage 0.2.3

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

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