Install & Compatibility
Where this runs
tested against v0.7.3 · pip install
no network on importno background threads
Install × environment matrix
Each cell = how many times install + import succeeded across repeated harness runs. Partial = flaky.
glibc = Debian/Ubuntu slim · musl = Alpine Linux
muslpy 3.10–3.95 runs
installs and imports cleanly · install 0.0s · import 0.000s · 306.1MB
glibcpy 3.10–3.95 runs
installs and imports cleanly · install 11.3s · import 0.000s · 293MB
305MB installed
● package 305MB
Code
Verified usage
Verified import paths — ran on the pinned version, not inferred.
Bond
✓ from bond_pricing import Bond
Main class for bond calculations.
zero_curve
✓ from bond_pricing import zero_curve
Function to construct zero-coupon yield curve.
annuity
✓ from bond_pricing import annuity
Annuity present value calculation.
irr
✓ from bond_pricing import irr
Internal rate of return.
Create a bond and compute yield to maturity.
from bond_pricing import Bond
bond = Bond(face_value=1000, coupon_rate=0.05, maturity=10, price=950)
print(bond.ytm())
Upgrade
Version history
0.7.3latest on PyPI · released Sep 25, 2024
Audit
Dependencies
No dependency data recorded yet.