Skip to main content

🐉 龙魂·三色审计 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

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

longhun_tricolor-1.1.0.tar.gz (5.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

longhun_tricolor-1.1.0-py3-none-any.whl (6.5 kB view details)

Uploaded Python 3

File details

Details for the file longhun_tricolor-1.1.0.tar.gz.

File metadata

  • Download URL: longhun_tricolor-1.1.0.tar.gz
  • Upload date:
  • Size: 5.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/7.0.0 CPython/3.12.13

File hashes

Hashes for longhun_tricolor-1.1.0.tar.gz
Algorithm Hash digest
SHA256 deca137d99d563c26788eb37b067b224afa6ed682526ff8e6cd0ef26f6ea5c96
MD5 525d259c30a16425d4b2b6f8adbd9178
BLAKE2b-256 59048f5d9f34f0b6dfa02c9c7719fa1146d161fb49d68b57a75f29f449adf764

See more details on using hashes here.

File details

Details for the file longhun_tricolor-1.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for longhun_tricolor-1.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 601907b40f37755d7ac2f397cb5f89c26f994c3cfeb0b8908777a20331a734e0
MD5 c4aa4979cc59a04a96ed3273949d85f4
BLAKE2b-256 7ddb867ff696b277f71a4a6d721bbdb91f04c4402baa4f60100bf6c9e6706d1c

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

1.1.0 This release

2 files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page