🐉 龙魂·三色审计 Python SDK
longhun-tricolor 是龙魂三色审计标准的 Python 客户端 SDK。
安装
pip install longhun-tricolor
快速开始
from longhun_tricolor import TricolorClient, Scores
client = TricolorClient(token="your-api-token")
verdict = client.evaluate(
action_id="demo-001",
actor="order-service",
action_type="data_export",
scores=Scores(
human_welfare=82,
fairness=78,
controllability=70,
transparency=65,
traceability=80,
privacy=55,
),
)
print(f"{verdict.emoji} {verdict.status} R={verdict.r_score}")
print(f"DNA: {verdict.dna}")
异步支持
from longhun_tricolor import AsyncTricolorClient
client = AsyncTricolorClient(token="your-api-token")
verdict = await client.evaluate(...)
DNA
#龍芯⚡️丙午·癸未·乙酉·坤卦-PYTHON-SDK-V1.0-UID9622
许可
工程层 MulanPSL v2
Metadata
Release files for longhun-tricolor 1.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 |
|---|---|---|---|---|
| longhun_tricolor-1.1.0.tar.gz | 5.1 kB | Without provenance | Details for longhun_tricolor-1.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| longhun_tricolor-1.1.0-py3-none-any.whl | Python 3 | none | any | Details for longhun_tricolor-1.1.0-py3-none-any.whl |
Total release size: 11.6 kB
Release files / longhun_tricolor-1.1.0.tar.gz
| Download URL | longhun_tricolor-1.1.0.tar.gz |
|---|---|
| Size | 5.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
deca137d99d563c26788eb37b067b224afa6ed682526ff8e6cd0ef26f6ea5c96
|
|
BLAKE2b-256 checksum How to use checksums |
59048f5d9f34f0b6dfa02c9c7719fa1146d161fb49d68b57a75f29f449adf764
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.12.13
|
Release files / longhun_tricolor-1.1.0-py3-none-any.whl
| Download URL | longhun_tricolor-1.1.0-py3-none-any.whl |
|---|---|
| Size | 6.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
601907b40f37755d7ac2f397cb5f89c26f994c3cfeb0b8908777a20331a734e0
|
|
BLAKE2b-256 checksum How to use checksums |
7ddb867ff696b277f71a4a6d721bbdb91f04c4402baa4f60100bf6c9e6706d1c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.12.13
|
Security for longhun-tricolor 1.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.
No provenance found
None of the files in this release were uploaded with provenance metadata.
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.