Decision Trace v1 SDK
Project description
Decision Trace Python SDK
The Python SDK provides the core tracing API, CLI, examples, and local collector workflow for Decision Trace.
Install
pip install decision-trace
Install the optional local collector dependencies if you want the bundled FastAPI collector and decision-trace dev workflow:
pip install "decision-trace[collector]"
Quickstart
from decision_trace import decision
with decision("loan.approval", actor={"type": "system", "id": "risk_engine"}) as d:
d.evidence("credit_score", 720)
d.policy_check("min_score_700", "pass")
d.outcome("approved")
Local Collector
Start the local collector:
decision-trace dev
This binds a local-only example collector on 127.0.0.1:8711 and writes events to ./data/events.jsonl.
Development
pip install -e ".[collector,test]"
pytest
Docs And Examples
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 decision_trace-0.1.1.tar.gz.
File metadata
- Download URL: decision_trace-0.1.1.tar.gz
- Upload date:
- Size: 25.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4dbb8b0a6206ee508d7c3c514c6901f5992095552eb899fd74d7cccce5cbfcc2
|
|
| MD5 |
27bd600161786be9a8a8844b50d3756e
|
|
| BLAKE2b-256 |
92213be3ccdd66f6ed04842a94fe6375be6768554f53514090e0b1967d516591
|
Provenance
The following attestation bundles were made for decision_trace-0.1.1.tar.gz:
Publisher:
publish-python.yml on logicoflife/decision-trace
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
decision_trace-0.1.1.tar.gz -
Subject digest:
4dbb8b0a6206ee508d7c3c514c6901f5992095552eb899fd74d7cccce5cbfcc2 - Sigstore transparency entry: 1350158659
- Sigstore integration time:
-
Permalink:
logicoflife/decision-trace@e00d8fd8deab1fb486f14ccab25d373c12c08571 -
Branch / Tag:
refs/tags/v0.1.1 - Owner: https://github.com/logicoflife
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish-python.yml@e00d8fd8deab1fb486f14ccab25d373c12c08571 -
Trigger Event:
push
-
Statement type:
File details
Details for the file decision_trace-0.1.1-py3-none-any.whl.
File metadata
- Download URL: decision_trace-0.1.1-py3-none-any.whl
- Upload date:
- Size: 30.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3122f84c8aefe1160f9f72cfb9df8589d33580a72488e9683e4c4667cf179297
|
|
| MD5 |
5fd53b8e85e055e3eaf11a4209663270
|
|
| BLAKE2b-256 |
31be0fee4f1f4ccbb8fb0e2437fb018ad68f39870366848fa6431c3172210cd3
|
Provenance
The following attestation bundles were made for decision_trace-0.1.1-py3-none-any.whl:
Publisher:
publish-python.yml on logicoflife/decision-trace
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
decision_trace-0.1.1-py3-none-any.whl -
Subject digest:
3122f84c8aefe1160f9f72cfb9df8589d33580a72488e9683e4c4667cf179297 - Sigstore transparency entry: 1350158749
- Sigstore integration time:
-
Permalink:
logicoflife/decision-trace@e00d8fd8deab1fb486f14ccab25d373c12c08571 -
Branch / Tag:
refs/tags/v0.1.1 - Owner: https://github.com/logicoflife
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish-python.yml@e00d8fd8deab1fb486f14ccab25d373c12c08571 -
Trigger Event:
push
-
Statement type: