跳转到正文

buildinfo API ​

完整接口目录 · 插件运行时用法 · 工具包下载

模块说明 ​

text
Read-only provenance of the imported SDK, independent from Host metadata.

TREE_ALGORITHM ​

python
TREE_ALGORITHM = 'sha256-python-tree-v2'

tree_sha256 ​

python
def tree_sha256(root)

SDK 说明:

text
Hash relative names + NUL + file SHA-256 + LF, in sorted name order.

Includes Python sources, stubs, py.typed and the protocol schema; excludes
bytecode/cache and the build marker. Rejects source symlinks. Never reads
credentials or arbitrary data files.

current ​

python
def current()

SDK 说明:

text
Return loaded SDK files' hash and optional packaged-source claim.

``matches_package`` is unknown without a valid marker, and never describes
the Host or a plugin/task artifact. This function does not query Git.

Neomega · 使用、开发与参考文档