🐉 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/次 · 开源项目免费
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
longhun-1.0.0.tar.gz
(9.6 kB
view details)
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
longhun-1.0.0-py3-none-any.whl
(11.2 kB
view details)
File details
Details for the file longhun-1.0.0.tar.gz.
File metadata
- Download URL: longhun-1.0.0.tar.gz
- Upload date:
- Size: 9.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via:
twine/7.0.0 CPython/3.12.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
fe69eccaf0ce4487d52385e06e31d5553becb657a0df910317ff19c8c6e0777c
|
|
| MD5 |
d71fd125f7c051ebcbf5e99da1d4450d
|
|
| BLAKE2b-256 |
dea94e807b88006a707ff625829867613c0e1c35aa3a8664581f6a66c9e0e979
|
File details
Details for the file longhun-1.0.0-py3-none-any.whl.
File metadata
- Download URL: longhun-1.0.0-py3-none-any.whl
- Upload date:
- Size: 11.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via:
twine/7.0.0 CPython/3.12.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
318d3843e352ae925d4a8dc6d80b3f60997d61d19accf2e478a5b3a9a30bd15f
|
|
| MD5 |
7e5966c5a0c18b4bc8ff99ac12c0dec9
|
|
| BLAKE2b-256 |
0bf0a422102a7805e530a6cd000b3760283956366229c0beed19c2b67e7d2b19
|