creditratingsystem
GitHub Actions installs the package and runs tests/test_core.py on Python 3.11
and Linux. This is a minimal core check; the full test suite is separate.
A Python library for granular credit risk modelling with local user data.
See getting started for local installation, typed CSV input and a workflow for fitting and validating models with your own data.
Version 0.1.0. Available methods include train-only preprocessing and monotone binning, scorecards, binary GLMs, frozen PD calibration, Merton and first-passage models, Gaussian-factor PIT/TTC conversion, observed long-run PD, and discrete and continuous-time transition curves. Survival includes Cox, AFT, competing risks, Fine-Gray and multistate estimates; collections projects ordered cure and redefault. Dated workout recovery and exposure schedules retain economic loss and raw CCF. Joint loss paths preserve default, LGD, exposure and discount dependence; portfolio tails use fractional boundary mass.
Consumer methods cover application snapshots, affordability, credit-policy rules, dated account panels, behavioral predictions, roll rates and vintage performance. Collections methods preserve open episodes, probation and post-cure censoring, reconstruct pre-action evidence and compare repayment cashflows. Model registries, role histories and pinned batch recipes support historical replay. Monitoring reports cohort maturity, missing outcomes, feature/calibration drift and explicit challenger/group comparisons.
The installed retail example connects training, separate calibration, application, booking, behavioral prediction, monitoring, collections and historical replay. Its tiny synthetic cohort deliberately reports insufficient monitoring evidence. Assumptions, applicable models and numerical conventions are documented per method.
from creditratingsystem import expected_loss
expected_loss(0.02, 0.4, 1000).value # 8.0
Each calculation returns its value, units, method identity, context, provenance, diagnostics and limitations. Probabilities use decimal fractions. User-supplied rating scales and parameters remain explicit. Calculations do not download data or send user information to external services.
Classification, LGD/EAD and selection-bias estimators are implemented, alongside cashflow, structured-credit and market-implied methods. Product examples retain their own dated contracts, outcomes and applicability limits. Synthetic evidence does not establish performance on a bank's own portfolio.
Author: RiskDataScience GmbH. Responsible person: Dr. Dimitrios Geromichalos. Contact: riskdatascience@web.de.
Licensed under the GNU Affero General Public License, version 3 only
(AGPL-3.0-only); see LICENSE.
Bundled synthetic data include six connected tiny reference worlds. The larger standard wholesale/macro/workout panel is available in the GitHub repository; it is excluded from PyPI distributions to keep downloads small. Native offline generators also create larger retail, asset-pool and system-event worlds from shared innovation files. Observable inputs, latent truth, frozen predictions, decisions and outcomes are stored separately. See synthetic data for tier sizes and generation contracts.
See test tiers for quick default checks and explicit extended acceptance.
Metadata
Release files for creditratingsystem 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 | Actions |
|---|---|---|---|---|
| creditratingsystem-0.1.0.tar.gz | 4.1 MB | With provenance | Details for creditratingsystem-0.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| creditratingsystem-0.1.0-py3-none-any.whl | Python 3 | none | any | Details for creditratingsystem-0.1.0-py3-none-any.whl |
Total release size: 7.6 MB
Release files / creditratingsystem-0.1.0.tar.gz
| Download URL | creditratingsystem-0.1.0.tar.gz |
|---|---|
| Size | 4.1 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
f76664c9bff0b635cb9c467ca6ea789b558fe32f1b5991570be8b0c4e111898b
|
|
BLAKE2b-256 checksum How to use checksums |
c0df153cb3b2f1d39395793367d3394bc5ebb923bc5372fefb7271c31f459d66
|
| 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 28, 2026.
Transparency logRelease files / creditratingsystem-0.1.0-py3-none-any.whl
| Download URL | creditratingsystem-0.1.0-py3-none-any.whl |
|---|---|
| Size | 3.5 MB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
236d11e5dd09265d466de6f00984847a9def3b49a623d27d54b2bd009f2affab
|
|
BLAKE2b-256 checksum How to use checksums |
7b5005fe4e32546b0c34025b7b2ebfa36f457576a0ff7fcc9e7d290c78a4371e
|
| 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 28, 2026.
Transparency logSecurity for creditratingsystem 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.
Attestation for creditratingsystem-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 28, 2026.
Transparency logA 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.