📑 tenancy
A lightweight, zero-dependency Python utility for lease schedule generation, inflation-based rent adjustments (indexation), deposit tracking, and notice period calculations.
⚡ Installation
pip install tenancy
🚀 Quickstart
from datetime import date
import tenancy
# Setup a 12-month lease agreement
lease = tenancy.LeaseAgreement(
monthly_rent=3200.0,
start_date=date(2026, 9, 1),
duration_months=12,
deposit_months=2,
notice_period_months=1
)
print(f"Total Contract Value: {lease.total_contract_value:,.2f}")
print(f"Security Deposit: {lease.security_deposit:,.2f}")
print(f"End Date: {lease.end_date}")
# Rent adjustment (e.g. 5.2% CPI inflation indexation)
new_rent = lease.index_rent(inflation_rate_pct=5.2)
print(f"Adjusted Rent: {new_rent:,.2f}")
⚠️ Disclaimer
This package is designed for computational and schedule-planning purposes only. It does not constitute formal legal counsel, contract drafting services, or tax advice. Standard statutory notice requirements vary by local jurisdiction; always verify lease clauses against applicable statutory housing laws.
Metadata
Release files for tenancy 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| tenancy-0.1.0.tar.gz | 2.7 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| tenancy-0.1.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 5.8 kB
Release files / tenancy-0.1.0.tar.gz
| Download URL | tenancy-0.1.0.tar.gz |
|---|---|
| Size | 2.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
b1c680880e99b97eb637a5b930798c12732aca3eac5f1010b833998bfb70f747
|
|
BLAKE2b-256 checksum How to use checksums |
9ecc318caf421690ae62c5fcab7b7e0b3d38d8e5ef3fdfd95435cca1df58156f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Release files / tenancy-0.1.0-py3-none-any.whl
| Download URL | tenancy-0.1.0-py3-none-any.whl |
|---|---|
| Size | 3.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
3f610b48a30dbc7ea391d592e47ddffa37eafed7f6d2a5b1e1ec460f2ec7e1b5
|
|
BLAKE2b-256 checksum How to use checksums |
08e6b519a229dc5f08b00cf43dc0886b2c59c086a4b6b6989c497769c87ab631
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Security for tenancy 0.1.0
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.