Risk-weighted assets attribution and capital optimization toolkit.
Project description
finattrib
finattrib is a Python library for capital attribution, RWA (Risk-Weighted Assets) analysis, and profitability evaluation in financial risk management. It provides a modular and object-oriented framework to calculate, attribute, and visualize key risk metrics such as TCE (Tangible Common Equity) allocation, capital charge, return on capital, and RWA share.
The library is designed for quant developers, risk managers, and financial analysts who want a flexible and extensible way to model portfolio risk and performance attribution at various aggregation levels (e.g., desk, product, portfolio).
🚀 Features
- Capital Charge Computation – Calculate capital charge and net income from allocated TCE and PnL.
- Attribution Table Generation – Aggregate key metrics by desk, product, or other dimensions with automatically calculated performance ratios.
- Scenario Analysis – Apply weight changes to products and instantly recompute RWA and profitability metrics.
- Extensible Design – Built with modular components (
core,reporting,validators,exceptions, etc.) to support future extensions. - Object-Oriented API – Easily integrate with larger analytics pipelines or use as a standalone analysis tool.
📦 Installation
Clone the repository and install the package in editable mode (recommended during development):
git clone https://github.com/yourusername/finattrib.git
cd finattrib
pip install -e .
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file riskfolio_beta-0.1.1.tar.gz.
File metadata
- Download URL: riskfolio_beta-0.1.1.tar.gz
- Upload date:
- Size: 6.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9b1b8af10a287d25615b6eaf9c0777bc7b9c4efecea303dedcea2d9d82fdbc01
|
|
| MD5 |
ab44ddefe5e52aad6efe61a2b02ab5c0
|
|
| BLAKE2b-256 |
276b53fc79e6d0cf70d01f4c3a9963356df9862bae084e8c8cbba868c3e12ea1
|
File details
Details for the file riskfolio_beta-0.1.1-py3-none-any.whl.
File metadata
- Download URL: riskfolio_beta-0.1.1-py3-none-any.whl
- Upload date:
- Size: 6.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
42cdde94c2eec4c6d03ec7ddd887e45f4bc0739d92aab5b86dffcad35fd3211e
|
|
| MD5 |
cc8e89b8be0d01f2df53b21f955d6b44
|
|
| BLAKE2b-256 |
c3cd08edfe3d11317ae6b4e90a8e7bc99f53847e93f4ecce81a601819f47af79
|