Python SDK for Gestalt executable providers
Project description
Gestalt Python SDK
Use the Python SDK to build executable Gestalt providers with normal Python classes, functions, and type annotations.
The package is published to PyPI as gestalt-sdk and imported in provider code
as gestalt.
uv add gestalt-sdk
import gestalt
class SearchInput(gestalt.Model):
query: str = gestalt.field(description="Search query")
app = gestalt.App("search")
@app.operation(method="GET", title="Search")
def search(input: SearchInput, request: gestalt.Request):
return {"results": [input.query]}
Provider projects
Python source providers are discovered through [tool.gestalt].provider in
pyproject.toml.
[project]
name = "gestalt-search"
version = "0.0.1"
dependencies = ["gestalt-sdk"]
[tool.uv]
package = false
[tool.gestalt]
provider = "provider"
Use the provider manifest for static provider identity, connections, hosted HTTP routes, passthrough surfaces, and release metadata. Use Python code for executable operations, provider lifecycle hooks, host-service clients, and provider-specific runtimes.
Build cache
Python executable provider builds can opt into the generic Gestalt build cache
by setting GESTALT_BUILD_CACHE_DIR to a writable directory before running
gestaltd sync or another provider packaging command. The cache stores
SDK-internal packaging accelerators only; it is safe to delete, and unsetting
the variable returns builds to the default clean temporary behavior.
GESTALT_BUILD_CACHE_DIR="$PWD/.gestalt-build-cache" \
gestaltd sync --locked --config deploy/config.yaml
Public surface
The top-level gestalt package exposes the supported authoring API:
Model,field,App,operation, andRequestfor integration providers.AuthenticationProvider,CacheProvider,S3Provider,SecretsProvider,WorkflowProvider,AgentProvider, andRuntimeProviderfor host-service provider runtimes.Cache,IndexedDB,S3,Workflow,AgentHost,Agent, andRequest.app()for calling sibling host services.gestalt.testingfor native fixture helpers used by SDK transport tests.gestalt.telemetryfor provider-authored GenAI spans and metrics.
The SDK also exposes authored provider models for authentication, workflow,
agent, and runtime payloads. Agent provider handlers receive and return
native dataclasses such as CreateAgentProviderTurnRequest, AgentSession,
and AgentTurn; structured fields accept dictionaries or dataclass instances,
and timestamp fields use timezone-aware datetime values. Workflow helpers such as
bound_workflow_target, workflow_signal, and bound_workflow_run accept
plain dictionaries, dataclass instances, and native datetime values for
structured payloads and timestamp fields. Provider-facing APIs should accept
native Python values and keep transport serialization inside SDK adapters.
API reference
The authored Python API reference is generated with Sphinx from the SDK's
docstrings. Build it locally from sdk/python with:
uv sync --group dev
uv run sphinx-build -W -b html -d docs/_build/doctrees docs docs/_build/html
The generated docs intentionally focus on the handwritten SDK surface. The
checked-in transport stubs live under the private gestalt/_gen package and are
not expanded as authored reference pages.
Publishing
The SDK is published publicly as gestalt-sdk while keeping the import path
gestalt.
Release tags stay aligned with the repo's SDK tag convention:
sdk/python/v0.0.1sdk/python/v0.0.1-alpha.1sdk/python/v0.0.1-beta.1sdk/python/v0.0.1-rc.1
The release workflow normalizes those tag versions to PEP 440 before building
and publishing with uv, so sdk/python/v0.0.1-alpha.1 becomes package
version 0.0.1a1.
Releases are published to PyPI through GitHub Actions Trusted Publishing. The
release workflow runs in the pypi environment and uses GitHub OIDC rather
than a checked-in upload token.
Local SDK checks
From sdk/python, install the SDK plus its dev tooling and run the checks used
in CI:
uv sync --group dev
uv run ruff check .
uv run ty check --exclude 'gestalt/_gen/**' gestalt scripts tests
uv run vulture --config pyproject.toml
uv run python -m unittest discover -s tests
uv run sphinx-build -W -b html -d docs/_build/doctrees docs docs/_build/html
The vendored transport stubs under gestalt/_gen are excluded from the static
analysis tools because they are generated output rather than hand-maintained SDK
code.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file gestalt_sdk-0.0.1a20.tar.gz.
File metadata
- Download URL: gestalt_sdk-0.0.1a20.tar.gz
- Upload date:
- Size: 217.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
98873d36d17b50b2844fc711de428a2de7a0ac8ff174cd91bf1ee6b6dcfbb939
|
|
| MD5 |
d62eb945fdf0ca9ffe8c308640947a15
|
|
| BLAKE2b-256 |
e923a8ec1a3167f14f17af0ffbe70d48ceb173156e3f6bf94662cff4b8ead806
|
Provenance
The following attestation bundles were made for gestalt_sdk-0.0.1a20.tar.gz:
Publisher:
release-sdk.yml on valon-technologies/gestalt
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
gestalt_sdk-0.0.1a20.tar.gz -
Subject digest:
98873d36d17b50b2844fc711de428a2de7a0ac8ff174cd91bf1ee6b6dcfbb939 - Sigstore transparency entry: 1697251221
- Sigstore integration time:
-
Permalink:
valon-technologies/gestalt@42263225c24efd66dfcc2e96d7fa27b1910f4195 -
Branch / Tag:
refs/tags/sdk/python/v0.0.1-alpha.20 - Owner: https://github.com/valon-technologies
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release-sdk.yml@42263225c24efd66dfcc2e96d7fa27b1910f4195 -
Trigger Event:
push
-
Statement type:
File details
Details for the file gestalt_sdk-0.0.1a20-py3-none-any.whl.
File metadata
- Download URL: gestalt_sdk-0.0.1a20-py3-none-any.whl
- Upload date:
- Size: 192.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5bbe1fda074bebc3a867a744e5d15dcbc1adf768cadaaffac52a79381203747d
|
|
| MD5 |
c782521b95fc310f98398e54027f192d
|
|
| BLAKE2b-256 |
37d4ec91297835d8232c6a0847cbf353f15182cae2668bfe7debcffbe843815e
|
Provenance
The following attestation bundles were made for gestalt_sdk-0.0.1a20-py3-none-any.whl:
Publisher:
release-sdk.yml on valon-technologies/gestalt
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
gestalt_sdk-0.0.1a20-py3-none-any.whl -
Subject digest:
5bbe1fda074bebc3a867a744e5d15dcbc1adf768cadaaffac52a79381203747d - Sigstore transparency entry: 1697251321
- Sigstore integration time:
-
Permalink:
valon-technologies/gestalt@42263225c24efd66dfcc2e96d7fa27b1910f4195 -
Branch / Tag:
refs/tags/sdk/python/v0.0.1-alpha.20 - Owner: https://github.com/valon-technologies
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release-sdk.yml@42263225c24efd66dfcc2e96d7fa27b1910f4195 -
Trigger Event:
push
-
Statement type: