This release is a pre-release and may not be stable for production use.
perfattr
perfattr is a small, auditable portfolio performance-attribution calculation
library built with pandas and NumPy.
The initial release will provide a reusable Brinson-Fachler calculation core for prepared reporting-period data. Source loading, portfolio accounting, vendor schemas, calendar logic, and presentation are intentionally outside the package boundary.
The first functional alpha slice calculates one prepared reporting period, including
input validation, universe equalization, Brinson-Fachler allocation and selection,
and financial reconciliation. Multi-period linking remains the next calculation
milestone. The governing roadmap is available in
_extras/perfattr_roadmap.md, and the complete portable
calculation contract is defined in docs/specification.md.
from perfattr import calculate_attribution
result = calculate_attribution(portfolio, benchmark)
print(result.period_detail)
Development
Create and activate a virtual environment:
python3 -m venv .venv
source .venv/bin/activate
Install the package and development dependencies:
python -m pip install --editable ".[dev]"
Run the initial checks:
python -m pytest
python -m pylint src/perfattr tests
python -m pyright
License
perfattr is distributed under the MIT License.
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 perfattr-0.1.0a1.tar.gz.
File metadata
- Download URL: perfattr-0.1.0a1.tar.gz
- Upload date:
- Size: 20.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via:
twine/7.0.0 CPython/3.13.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
fc31c022ffbd3674c1aa29b1cb034e4de96dac7497dad9149d0ddd48ad84fb73
|
|
| MD5 |
fef4ff8841408d75ec28d1b0f59a3b45
|
|
| BLAKE2b-256 |
f21f1d6d8b3e6171e036774316772e9c893593e4d7e1fb96d35e3729a2e86988
|
Provenance
The following attestation bundles were made for perfattr-0.1.0a1.tar.gz:
Publisher:
publish.yml on JohnDReynolds/perfattr
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
perfattr-0.1.0a1.tar.gz -
Subject digest:
fc31c022ffbd3674c1aa29b1cb034e4de96dac7497dad9149d0ddd48ad84fb73 - Sigstore transparency entry: 2701963266
- Sigstore integration time:
-
Permalink:
JohnDReynolds/perfattr@3a1a415f7d559b5887a3c7ebc652cf446f0a2467 -
Branch / Tag:
refs/tags/v0.1.0a1 - Owner: https://github.com/JohnDReynolds
-
Access:
private
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@3a1a415f7d559b5887a3c7ebc652cf446f0a2467 -
Trigger Event:
release
-
Statement type:
File details
Details for the file perfattr-0.1.0a1-py3-none-any.whl.
File metadata
- Download URL: perfattr-0.1.0a1-py3-none-any.whl
- Upload date:
- Size: 9.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via:
twine/7.0.0 CPython/3.13.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
56b690613214a4fc4faad608a3d057113b22d5e3019c58aa13364454198ebb8b
|
|
| MD5 |
c823e6dd9c53ba70fb2c2369fea8ecd5
|
|
| BLAKE2b-256 |
5acd7b2be976cff1a21e89667ca675d022c4160035a330069613f1b79837d496
|
Provenance
The following attestation bundles were made for perfattr-0.1.0a1-py3-none-any.whl:
Publisher:
publish.yml on JohnDReynolds/perfattr
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
perfattr-0.1.0a1-py3-none-any.whl -
Subject digest:
56b690613214a4fc4faad608a3d057113b22d5e3019c58aa13364454198ebb8b - Sigstore transparency entry: 2701963376
- Sigstore integration time:
-
Permalink:
JohnDReynolds/perfattr@3a1a415f7d559b5887a3c7ebc652cf446f0a2467 -
Branch / Tag:
refs/tags/v0.1.0a1 - Owner: https://github.com/JohnDReynolds
-
Access:
private
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@3a1a415f7d559b5887a3c7ebc652cf446f0a2467 -
Trigger Event:
release
-
Statement type: