Skip to main content

Utilities for mortgage analysis and visualization

Project description

Downpyment

Just a tiny lib to help with mortgage analysis and visualization in Python.

The central class is the mortgage one

from downpyment.mortgage import Mortgage, Interest, YEARLY_INTEREST_SCALE, Investment
from downpyment.reporting import MortgageReport


mortgage = Mortgage(
    property_price=450_000,
    interest=Interest(rate=1.85, scale=YEARLY_INTEREST_SCALE, perc=True),
    n_steps=30,
    downpayment=0,
    tax_perc=8,
)
mortgage.simulate()

The main goal is to generate a report as follows:

ep_params = {
    "amount": 5_000,
    "pay_each": 12,
}
investment = Investment(
    initial_amount=120_000,
    step_contribution=ep_params["amount"] / ep_params["pay_each"],
    interest=Interest(rate=5.0, scale=YEARLY_INTEREST_SCALE, perc=True),
    tax_perc=20,
)


MortgageReport(mortgage).report(ep_params=ep_params, inflation_p=2.0, investment=investment)

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

downpyment-0.1.0.tar.gz (5.6 kB view details)

Uploaded Source

Built Distribution

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

downpyment-0.1.0-py3-none-any.whl (7.2 kB view details)

Uploaded Python 3

File details

Details for the file downpyment-0.1.0.tar.gz.

File metadata

  • Download URL: downpyment-0.1.0.tar.gz
  • Upload date:
  • Size: 5.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.9.8

File hashes

Hashes for downpyment-0.1.0.tar.gz
Algorithm Hash digest
SHA256 e05da8cb20b25935e2c1447760625fb0a2a34b6b7bf4bf2daa1451ba13e80ea0
MD5 f77a7c1391484b7f070ceeddcfece0ac
BLAKE2b-256 4ebcb0b9317b5449d92ed7656883e7c1744d33946ece9dd38d6683ba387b5cc7

See more details on using hashes here.

File details

Details for the file downpyment-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for downpyment-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 a5ebadba7ea366fa6b33918e4b23f98a4d3a1b12ea2764b607c536f767d5860c
MD5 e2131ccd1802a379852ca6ce6cbcb478
BLAKE2b-256 a226a55a4aeceed1b5c41b6e54424681dd2d799f41e8fc490af950aee2ded21f

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