🐉 longhun · 龍魂统一 SDK
一个账号 = 龍魂生态全部服务。 人格工具 + 知识库 + 搜索 + API,统一调用、统一 DNA 追溯、统一三色审计、统一按量计费(CNY·个人每月 1 万次免费)。
- DNA:
#龍芯⚡️2026-08-31-LONGHUN-SDK-V1.0-UID9622 - 创建者: 诸葛鑫(UID9622)· 归属名: 诸葛鑫 | UID9622 · 龍芯北辰
- License: MulanPSL v2(可商业使用·需署名·勿删 DNA 追溯码)
安装
pip install longhun
零三方依赖 · Python ≥3.8 · 即装即用。
3 行代码快速开始
import longhun
from longhun import generate_dna, audit, scan_text
dna = generate_dna("MY-APP") # 🧬 打 DNA 追溯码
audit("my-app", "started", "🟢") # 📝 记三色审计日志
print(scan_text("openai.com")) # ⚖️ 15条国产替代扫描 → R01 🔴
统一 CLI
longhun version
longhun dna stamp --module MY-APP
longhun audit requirements.txt # 15条国产替代规则扫描
longhun audit summary # 三色审计汇总
longhun tricolor audit pay order_001 🟢
longhun cnsh run hello.cnsh # CNSH 运行桥
能力清单
| 模块 | 能力 | 对应 sovereign-stack |
|---|---|---|
longhun.dna |
DNA 追溯码生成 | dna/dna_middleware.py |
longhun.tricolor |
三色审计(sqlite·append-only) | dna/tricolor_audit.py |
longhun.evaluator |
15条国产替代规则(人民币主权) | evaluator/evaluator.py |
longhun.cnsh |
CNSH 运行桥(本机解释器) | 08_BIN/cnsh/ |
发布(维护者用)
pip install build
python -m build
twine upload dist/*
关联
- 统一入口: https://github.com/UID9622/sovereign-stack
- 主权技术栈全模块: api-gateway / pricing / search-engine / dna / sbom / dependency-isolation / terraform-huawei
- 定价: 个人 1 万次免费/月 · 超出 ¥0.0001/次 · 开源项目免费
Metadata
Release files for longhun 1.0.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-1.0.0.tar.gz | 9.6 kB | Without provenance | Details for longhun-1.0.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| longhun-1.0.0-py3-none-any.whl | Python 3 | none | any | Details for longhun-1.0.0-py3-none-any.whl |
Total release size: 20.8 kB
Release files / longhun-1.0.0.tar.gz
| Download URL | longhun-1.0.0.tar.gz |
|---|---|
| Size | 9.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
fe69eccaf0ce4487d52385e06e31d5553becb657a0df910317ff19c8c6e0777c
|
|
BLAKE2b-256 checksum How to use checksums |
dea94e807b88006a707ff625829867613c0e1c35aa3a8664581f6a66c9e0e979
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.12.13
|
Release files / longhun-1.0.0-py3-none-any.whl
| Download URL | longhun-1.0.0-py3-none-any.whl |
|---|---|
| Size | 11.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
318d3843e352ae925d4a8dc6d80b3f60997d61d19accf2e478a5b3a9a30bd15f
|
|
BLAKE2b-256 checksum How to use checksums |
0bf0a422102a7805e530a6cd000b3760283956366229c0beed19c2b67e7d2b19
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.12.13
|
Security for longhun 1.0.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.