Gravity SDK
Gravity Agent Runtime 的实现仓库,当前稳定内核是面向数据分析团队的 Agent-first Python SDK 与 CLI。仓库把 Gravity 的发现、读取、导出和受治理写入收敛为版本化合同,并按已批准路线扩展版本化 Skill、业务语义、确定性分析方法和有界 Context,让分析任务无需打开 Gravity Web 也能完成。
从这里开始
-
使用 SDK 取数或分析:读 团队上手包,然后运行:
$env:PYTHONPATH='src' python -m gravity_sdk agent-catalog categories
产品入口
gravity insight:受合同治理的 Insight 查询与导出,日常分析首选。gravity sql:仅执行 workspace 已登记的 SQL 产品,不接受任意 SQL。gravity census:盘点前端路由、发现候选合同并检查上游漂移。gravity agent-catalog/gravity agent/gravity plan:供 Agent 渐进发现、补参和显式执行。
自然语言不会自动执行写入。所有 mutation 先预览,再由调用方用同一输入显式确认执行。
Agent Runtime 演进计划
当前可执行能力仍以上述 CLI、SDK、Plan、运行时 catalog 和机器合同为准;目标架构不等于已经交付。批准的 Gravity Agent Runtime 改造已拆成版本化需求索引,每个单元独立验收并集成到 dev。
本计划完整完成前不把其中的功能开发合入 main。Skill Hub、Context、Operator/Model、MCP、SQL Explorer 等只有在对应需求达到 ready 并实际落地后,才会进入当前能力文档和公共接口承诺。
安装
python -m pip install -e .
gravity --help
gravity agent-catalog categories
Python 最小入口:
from gravity_sdk import connect
gravity = connect()
result = gravity.read("app.list", {"page": 1, "page_size": 20})
文档
文档导航按任务给出最短阅读路径。接口签名以 CLI、SDK 和 Plan 参考为准;当前能力以本机 agent-catalog 与合同编译结果为准,完整目标以 canonical architecture source 为准,交付顺序由批准 directive 与需求索引约束。
历史归档的拆仓来源见 2026-08-10 拆仓记录。
Metadata
Release files for gravity-insight 0.3.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 | |
|---|---|---|---|---|
| gravity_insight-0.3.2.tar.gz | 2.8 MB | With provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| gravity_insight-0.3.2-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 6.9 MB
Release files / gravity_insight-0.3.2.tar.gz
| Download URL | gravity_insight-0.3.2.tar.gz |
|---|---|
| Size | 2.8 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
c725176880fc53d2026e8491946ee6cdffd442e24103fe9b836d7cd6288ec2be
|
|
BLAKE2b-256 checksum How to use checksums |
25da60e48610ea0382eb1a122ba0f76bb1fe387e3e47f541d53de1a8b6beecbd
|
| 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 Aug 29, 2026.
Transparency logRelease files / gravity_insight-0.3.2-py3-none-any.whl
| Download URL | gravity_insight-0.3.2-py3-none-any.whl |
|---|---|
| Size | 4.0 MB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
a3d4e3624b9af5e79aae437db48a2e0eeef41c03050c105c18261c1307fd82bd
|
|
BLAKE2b-256 checksum How to use checksums |
8f10f5bbbfa8bd07525676eebcb77654c11706283a5f465a39a7d7271e1fdc12
|
| 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 Aug 29, 2026.
Transparency logSecurity for gravity-insight 0.3.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 gravity_insight-0.3.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 Aug 29, 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.