darlehenpy
Ein kleines Paket zur Berechnung von Darlehen. Bei weitem (noch 😉) nicht so mächtig wie z.B. der Hypothekenrechner.
Es wird zwischen der Berechnung basierend auf der Monatsrate oder basierend auf der anfänglichen Tilgungsrate unterschieden. Die Angabe einer jährlichen Sondertilgung ist auch möglich.
Quickstart
pip install darlehen.py
import darlehenpy.darlehen as darlehen
darlehen.berechne_mit_monatsrate(...)
darlehen.berechne_mit_tilgungsrate(...)
Achtung! Punkt als Dezimaltrennzeichen!
Beispiel
Aus der beispiel.py.
import src.darlehenpy.darlehen as darlehen
# Die Ausgabe kann man schöner machen ;)
# Rahmenbedingungen
P = 100000
i = 4.1
n = 10
S = 5000
print(
f"Darlehensumme: {P} €\nZinssatz (p.a.): {i} %\nLaufzeit: {n} Jahre\nSondertilung (p.a.): {S}\n"
)
# Berechnung basierend auf einer Monatsrate
M = 500
print(f"Monatsrate: {M} €")
t0, R, gesamtaufwand, jahr, monat = darlehen.berechne_mit_monatsrate(P, i, M, n, S)
print(
f"Anfängliche Tilgungsrate: {t0} %\nRestschuld nach {n} Jahren: {R} €\nGesamtaufwand: {gesamtaufwand} €\nAbbezahlt im {jahr}. Jahr und {monat}. Monat\n"
)
# Berechnung basierend auf der anfänglichen Tilgungsrate
t0 = 5.5
print(f"Anfängliche Tilgungsrate: {t0} %")
M, R, gesamtaufwand, jahr, monat = darlehen.berechne_mit_tilgungsrate(P, i, t0, n, S)
print(
f"Monatsrate: {M} €\nRestschuld nach {n} Jahren: {R} €\nGesamtaufwand: {gesamtaufwand} €\nAbbezahlt im {jahr}. Jahr und {monat}. Monat"
)
Ausgabe:
❯ python test.py
Darlehensumme: 100000 €
Zinssatz (p.a.): 4.1 %
Laufzeit: 10 Jahre
Sondertilung (p.a.): 5000
Monatsrate: 500 €
Anfängliche Tilgungsrate: 1.9 %
Restschuld nach 10 Jahren: 16033.91 €
Gesamtaufwand: 126033.91 €
Abbezahlt im None. Jahr und None. Monat
Anfängliche Tilgungsrate: 5.5 %
Monatsrate: 800.0 €
Restschuld nach 10 Jahren: 0.0 €
Gesamtaufwand: 118474.63 €
Abbezahlt im 9. Jahr und 3. Monat
Man kann sich damit natürlich viele Werte auf einmal berechnen lassen und vergleichen. Z.B. mit einer CSV mit folgenden Spalten als Input:
P,i,M,n,S,
bzw.
P,i,t0,n,S,
Tests
Eine Testmatrix mit Werten ermittelt aus dem Hypothekenrechner testet die berechneten Ergebnisse.
Es kann keine Gewährleistung für die von diesem Paket berechneten Ergebnisse übernommen werden
Metadata
Release files for darlehen.py 0.9.1
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 | Actions |
|---|---|---|---|---|
| darlehen.py-0.9.1.tar.gz | 5.0 kB | Without provenance | Details for darlehen.py-0.9.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| darlehen.py-0.9.1-py3-none-any.whl | Python 3 | none | any | Details for darlehen.py-0.9.1-py3-none-any.whl |
Total release size: 9.6 kB
Release files / darlehen.py-0.9.1.tar.gz
| Download URL | darlehen.py-0.9.1.tar.gz |
|---|---|
| Size | 5.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
a7e49e0858a3cdaedd99ed6c27205e4596346020bc8d1f3e73fe264b74a1b436
|
|
BLAKE2b-256 checksum How to use checksums |
6dd08deede30692da61c932a9d609f148a8ef9fa58a90da6e94c669e13e68d15
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.9.18
|
Release files / darlehen.py-0.9.1-py3-none-any.whl
| Download URL | darlehen.py-0.9.1-py3-none-any.whl |
|---|---|
| Size | 4.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
7e26fc9f782cd8ae0ea30234dc2da382edf7068dc07c5825d6b1727cec52a4dd
|
|
BLAKE2b-256 checksum How to use checksums |
274de1de2ed34cb72cde532f2a9bf0ee81fe90094df3e731f0ca04093c4bda9e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.9.18
|
Security for darlehen.py 0.9.1
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.