XiHan Framework SDK for Python
占位仓库,尚未开始实现。 规范在 framework-spec,参考实现是 .NET(XiHan.Framework 的
next/),第二语言 Go 的实现在 framework-sdk-go,可以作为本 SDK 的形状参照。
面向 Python 应用、脚本型插件与 AI 工具链,Python 3.12+。
计划内容
按规范逐包实现,每个包都要通过 framework-spec 的一致性向量(conformance/vectors/):
| 包 | 内容 | 规范 |
|---|---|---|
| primitives | Error / 错误码、Result、Maybe、类型化标识、生命周期状态、管道阶段、稳定性、Baggage 键、消息键与模板 |
RFC-0001、RFC-0010、conventions/ |
| manifest | xihan.manifest.json 的模型、读取与校验,能力声明与依赖文本 |
RFC-0002、manifest/manifest.schema.json |
| invocation | 调用上下文:取消与截止时间、W3C 追踪、已登记的 Baggage | RFC-0003 |
| pipeline | 十一阶段管道:登记、顺序约束、稳定拓扑排序、打印 | RFC-0004 |
| operation | 操作契约、登记表、经完整管道执行的调用器(XGI JSON) | RFC-0011 |
| plugin | 进程外插件运行时(xihan.plugin.v1,grpcio) |
RFC-0017、plugin/ |
| caching 等远程 Provider | 子系统能力的操作集(首个是 caching.distributed@1) |
RFC-0019、provider/ |
插件实现用规范仓库的黑盒运行器验证:xihan-conformance plugin --dir <产物目录>。
包名
xihan-framework(PyPI);导入名 xihan_framework。领域词与规范术语表(conventions/vocabulary.md)一致,只换本语言的大小写风格。
成熟度
Reference(.NET)、Stable(通过全部向量)、Experimental(部分向量)、Community(社区维护)。本仓库当前:规划中。
参与
- 先读 framework-spec 的 README 与各 RFC,再看 framework-sdk-go 的包划分。
- 在本仓库开 Issue 认领要实现的包,一个包一个 PR,附向量测试。
- 公开契约的变更不在 SDK 仓库里做:走 framework-spec 的 RFC 流程,再同步到各 SDK。
发布占位版本
名字靠上传一个占位版本占住(PyPI 没有预留机制)。本仓库已含最小包(pyproject.toml + src/xihan_framework/,只导出 __version__ 与 SPEC_VERSION):
python -m pip install build twine
python -m build
python -m twine upload dist/*
上传时用户名填 __token__、密码填 PyPI 的 API token。xihan-framework 与 xihan_framework 在 PyPI 是同一个名字;导入名是 xihan_framework。
许可
Metadata
Release files for xihan-framework 0.0.1
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 | |
|---|---|---|---|---|
| xihan_framework-0.0.1.tar.gz | 3.6 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| xihan_framework-0.0.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 8.0 kB
Release files / xihan_framework-0.0.1.tar.gz
| Download URL | xihan_framework-0.0.1.tar.gz |
|---|---|
| Size | 3.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
987a81779c2bf8682e0d8061811da2a9b4e2fd276f55f97c81887d8b8e8fced6
|
|
BLAKE2b-256 checksum How to use checksums |
d9e090cd4f5dee870416fddec112bae67d78f40ed2f70cad2395943b9dc5b335
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.13.3
|
Release files / xihan_framework-0.0.1-py3-none-any.whl
| Download URL | xihan_framework-0.0.1-py3-none-any.whl |
|---|---|
| Size | 4.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
714a8b958587f2c82161a7282021751862cf1583d2a0a3c86f53e92915ac4249
|
|
BLAKE2b-256 checksum How to use checksums |
87be56dfe6df6ae75aea7eb09c77cf62219eb8d2ebb1a40191e0c09c31fb16fe
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.13.3
|
Security for xihan-framework 0.0.1
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.