Skip to main content
Archived

This project has been archived by its maintainers, and is no longer receiving any updates.

Ona Python SDK

The public Python SDK exposes stable workflows from ona_sdk. Generated protobuf modules remain available under gitpod.* for lower-level message types, but the SDK intentionally does not expose every raw backend RPC.

Install the package with pip install ona-sdk.

from ona_sdk import create_client_from_env

ona = create_client_from_env()
env = ona.environments().create("https://github.com/gitpod-io/template-golang-cli")

result = env.run_command(
    command="pwd && git status --short",
    working_directory=env.workspace_dir(),
)

print(result.stdout)

create_client_from_env() reads ONA_API_KEY. It uses https://app.ona.com/api by default and accepts ONA_BASE_URL for a custom management-plane domain, local development, or replay verification. Use create_client(api_key=..., base_url=...) to pass values explicitly.

Pass new_debug_logger() to the client to get human-readable SDK debug logs. The formatter uses ANSI colors by default and honors NO_COLOR; pass no_color=True when writing plain logs.

The SDK is structured as:

  • create_client* creates an SDK client for production Connect API calls.
  • client.environments() returns environment workflows.
  • environments.create/get/list/start/stop/delete manages environments.
  • Environment.run_command/read_file/write_file/git_changes performs environment ops.
  • Environment.start_codex starts Codex in that environment.
  • AgentSession.send_message/message_stream/watch_result interacts with the agent execution.

Runnable examples live in examples/.

The SDK uses Connect over the Python standard library HTTP stack. The package includes generated protobuf messages and type stubs, but it does not ship generated gRPC clients.

Release files for ona-sdk 0.1.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 ona-sdk 0.1.1
File Size Uploaded
ona_sdk-0.1.1.tar.gz 318.0 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for ona-sdk 0.1.1
File Interpreter ABI Platform
ona_sdk-0.1.1-py3-none-any.whl Python 3 none any Details

Total release size: 687.4 kB

Release files / ona_sdk-0.1.1.tar.gz

Download URL ona_sdk-0.1.1.tar.gz
Size 318.0 kB
Tags Source
SHA-256 checksum
How to use checksums
5d9afc0bd6fe3723a81b63304491ff05effcf832083b71308bd44f0311b97e71
BLAKE2b-256 checksum
How to use checksums
ee1e481435cf327c731a9d0c655683849a548d2493be455d1ee4f38c7ec4e2b5
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.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 Jul 30, 2026.

Transparency log

Release files / ona_sdk-0.1.1-py3-none-any.whl

Download URL ona_sdk-0.1.1-py3-none-any.whl
Size 369.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
943ce3d639bd707d4585e0071bb21e05073479450f13aa1b18469cfe61875050
BLAKE2b-256 checksum
How to use checksums
3cba6725d13dc85c59db819be87cf097ca3db251829fb09f6fe8fdedc38282bc
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.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 Jul 30, 2026.

Transparency log

Release history Release notifications | RSS feed

This release

0.1.1 This release

2 release files

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