Metis Python SDK
Metis 应用后端 SDK,用于读取统一应用身份、可信请求上下文、声明的 Web/Service 依赖,以及模型和对象存储配置。
安装
python -m pip install metis-platform-sdk
from metis_sdk import from_env
client = from_env()
for dependency in client.list_dependencies():
print(dependency["app_id"])
embedding = client.model("embedding.0")
rerank = client.model("rerank.0")
print(embedding["model"], rerank["model"])
model() 支持 llm.N、embedding.N 和 rerank.N 三类 slot,并返回对应的网关地址、模型别名、API key 及类型专属参数。SDK 不创建厂商客户端。
运行环境必须提供 METIS_PLATFORM_ENDPOINT、METIS_APP_ID 和 METIS_APP_TOKEN。本地测试可以向 Client 显式传入配置。SDK 不创建厂商模型/存储客户端,也不隐藏重试。
依赖和 endpoint 返回字段会转换为 Python 风格:依赖使用 app_id、requested_version、
resolved_version、package_sha256、direct、available、resolution_error、app_type 和
web_base_path;应用应在使用可选依赖前检查 available。
开发
python -m pytest
python -m build
许可证
Apache-2.0,见 LICENSE。
Metadata
Release files for metis-platform-sdk 0.1.2
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 | |
|---|---|---|---|---|
| metis_platform_sdk-0.1.2.tar.gz | 10.8 kB | With provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| metis_platform_sdk-0.1.2-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 21.2 kB
Release files / metis_platform_sdk-0.1.2.tar.gz
| Download URL | metis_platform_sdk-0.1.2.tar.gz |
|---|---|
| Size | 10.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
9e305cedbeed0e230d70c61ed76e8b021d016be34c11520334850399e631afe2
|
|
BLAKE2b-256 checksum How to use checksums |
04edef36a5c14ce1a15a7c6c7da284a2bf086cb273915e27353f11a480db9afb
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Sep 13, 2026.
Transparency logRelease files / metis_platform_sdk-0.1.2-py3-none-any.whl
| Download URL | metis_platform_sdk-0.1.2-py3-none-any.whl |
|---|---|
| Size | 10.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
b8522fb9909fd3691d98e56878d4da8f77a9b4f758ce6fb0660720b621703898
|
|
BLAKE2b-256 checksum How to use checksums |
08ef2b37fdc71a3796bb342eff6ff9508091ea7fffef8ec689516017fd65a671
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Sep 13, 2026.
Transparency logSecurity for metis-platform-sdk 0.1.2
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.
Full provenance
All 2 files in this release have been uploaded with provenance metadata.
Attestation for metis_platform_sdk-0.1.2.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Sep 13, 2026.
Transparency logA 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.