Skip to main content

bgbcalc

Native Berechnungen zu Rechenregeln des Bürgerlichen Gesetzbuchs (BGB). Version 0.1.0; 552 Funktionen mit deutschen Parametern.

Umfang und Stand

Diese Bibliothek enthält kalenderbezogene und numerische Rechenregeln. Der systematische Rechenumfang wurde anhand des lokalen Norminventars und der festen Liste von 86 Restprüfpunkten abgearbeitet. Eine universelle juristische oder atomare Vollständigkeit wird nicht behauptet. Funktions- und Testzahlen beweisen keine vollständige BGB-Abdeckung. Ausdrücklich bedingte Modelle enthalten noch rechtlich zu qualifizierende Methoden; siehe MODELLE.md. Rechtliche Voraussetzungen müssen anhand der jeweiligen Funktionsdokumentation qualifiziert vorgegeben werden. Ergebnisse enthalten Rechenschritte, Annahmen und Quellenfassung. Die feste Quellenfassung ist BGB_PDF_SHA256_9b5a99536e7b00756e9fa5f20082bd9ad3951b37c381fc0f5d52aa5a556839eb. Es findet keine automatische Aktualisierung von Gesetzen oder Zinssätzen statt.

Geldbeträge werden als Dezimalzeichenfolge eingegeben; Ergebnisse verwenden exakte Brüche mit zaehler und nenner. Datumswerte verwenden YYYY-MM-DD. Die Bibliothek arbeitet offline ohne Netzwerkzugriff oder Telemetrie.

Die komprimierte Ressource daten/kompositionen.json.gz enthält native Anwendungstests, deren Eingabedaten und Fachbeschreibungen als Zuordnung von relativen Dateipfaden zu UTF-8-Inhalten. Sie ergänzt die Einzelreferenzen; ihr Vorhandensein allein ist kein Prüfbeleg. Enthaltene Tests lassen sich in eine lokale Verzeichnisstruktur entpacken. Python-Tests verwenden pytest; R-Skripte setzen die Paketfunktionen und interne Rechenhelfer voraus. Die abschließenden Prüfberichte dokumentieren die tatsächlich ausgeführten Tests.

Beispiel

Python:

from bgbcalc import fristende
ergebnis = fristende("2024-01-31", 1, "monate", "ereignis")
assert ergebnis["wert"] == "2024-02-29"

R:

ergebnis <- bgbcalc::fristende("2024-01-31", 1, "monate", "ereignis")
stopifnot(ergebnis$wert == "2024-02-29")

Vollständige Parameterverträge und Referenzfälle liegen komprimiert unter daten/regelvertraege.json.gz und daten/referenzen.json.gz. Im Python-Repository enthält docs/ die Funktionsdokumentation; in R ist sie über help() erreichbar.

Lizenz und Kontakt

Copyright RiskDataScience GmbH. GPL Version 3 oder neuer (GPL-3.0-or-later). Maintainer: Dr. Dimitrios Geromichalos riskdatascience@web.de. Siehe LICENSE und NOTICE.

Repository und Entwicklung

Quellrepository: https://github.com/rds0001/bgbcalc-python

CI: https://github.com/rds0001/bgbcalc-python/actions

python -m pip install ".[test]"
python -m pytest
python -m pip install build twine
python -m build
python -m twine check dist/*

src/bgbcalc/ enthält den Rechenkern, tests/ alle Python-Tests und tests/fixtures/ die unkomprimierten Referenz- und Kompositionsdaten. contracts/ enthält die Fachverträge, docs/ die Funktionsdokumentation. Die vollständigen installierten Tests sind zusätzlich über tools/ ausführbar.

Metadata

Release files for bgbcalc 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for bgbcalc 0.1.0
File Size Uploaded Provenance Actions
bgbcalc-0.1.0.tar.gz 1.5 MB With provenance Details for bgbcalc-0.1.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for bgbcalc 0.1.0
File Interpreter ABI Platform Actions
bgbcalc-0.1.0-py3-none-any.whl Python 3 none any Details for bgbcalc-0.1.0-py3-none-any.whl

Total release size: 3.2 MB

Release files / bgbcalc-0.1.0.tar.gz

Download URL bgbcalc-0.1.0.tar.gz
Size 1.5 MB
Tags Source
SHA-256 checksum
How to use checksums
f42d25a31fa2da155c3b8a5ab2972ad37d8ff4b8525397bef46084f2f78c6bc1
BLAKE2b-256 checksum
How to use checksums
a6f7a0c07d01635b98aa0fe69a11547d799e1d21fae5483744944a665454434e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 23, 2026.

Transparency log

Release files / bgbcalc-0.1.0-py3-none-any.whl

Download URL bgbcalc-0.1.0-py3-none-any.whl
Size 1.7 MB
Tags Python 3
SHA-256 checksum
How to use checksums
7bd7d32a72ccfe5c3815f59bf87c747b9fce5a799e69237b88e22e3d16c6e880
BLAKE2b-256 checksum
How to use checksums
fb189b2aec70537b33ebefcd47285103e899ff04c16b5c7a14d4c747002f38df
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 23, 2026.

Transparency log

Security for bgbcalc 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.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for bgbcalc-0.1.0.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 23, 2026.

Transparency log

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.

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files Full provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page