Skip to main content

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
    
  • 修改本仓库:先读 AGENTS.md,再从 维护者入口 选择当前任务。

产品入口

  • 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 与需求索引约束。

历史拆仓来源见 MIGRATION.md。

Metadata

Release files for gravity-insight 0.3.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for gravity-insight 0.3.1
File Size Uploaded Provenance
gravity_insight-0.3.1.tar.gz 2.8 MB With provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for gravity-insight 0.3.1
File Interpreter ABI Platform
gravity_insight-0.3.1-py3-none-any.whl Python 3 none any Details

Total release size: 6.7 MB

Release files / gravity_insight-0.3.1.tar.gz

Download URL gravity_insight-0.3.1.tar.gz
Size 2.8 MB
Tags Source
SHA-256 checksum
How to use checksums
27308e7beec576c8639c4ae6000c3882d9d3f5dcbf7a5b7ce91dfef139c3a464
BLAKE2b-256 checksum
How to use checksums
f74535d86584dce3352c950cbb5d5df7763e9b46b2b36787f8b0b5db19e8c915
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 27, 2026.

Transparency log

Release files / gravity_insight-0.3.1-py3-none-any.whl

Download URL gravity_insight-0.3.1-py3-none-any.whl
Size 4.0 MB
Tags Python 3
SHA-256 checksum
How to use checksums
9d13828e7d7782059fc1e4cb6c718749dafa4c75280d0a9c52fcbfdf757bdacc
BLAKE2b-256 checksum
How to use checksums
4bdee84b516c392452b2a3bd54cc30eabc43869fbefad91f49bf3247f8a88648
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 27, 2026.

Transparency log

Security for gravity-insight 0.3.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.

Full provenance

All 2 files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for gravity_insight-0.3.1.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 27, 2026.

Transparency log

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.

Release history Release notifications | RSS feed

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page