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
Release history Release notifications | RSS feed
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)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e05da8cb20b25935e2c1447760625fb0a2a34b6b7bf4bf2daa1451ba13e80ea0
|
|
| MD5 |
f77a7c1391484b7f070ceeddcfece0ac
|
|
| BLAKE2b-256 |
4ebcb0b9317b5449d92ed7656883e7c1744d33946ece9dd38d6683ba387b5cc7
|
File details
Details for the file downpyment-0.1.0-py3-none-any.whl.
File metadata
- Download URL: downpyment-0.1.0-py3-none-any.whl
- Upload date:
- Size: 7.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: uv/0.9.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a5ebadba7ea366fa6b33918e4b23f98a4d3a1b12ea2764b607c536f767d5860c
|
|
| MD5 |
e2131ccd1802a379852ca6ce6cbcb478
|
|
| BLAKE2b-256 |
a226a55a4aeceed1b5c41b6e54424681dd2d799f41e8fc490af950aee2ded21f
|