Skip to main content

holon-om (Python)

In-process Python bindings for holon-sh/om, powered by a single portable WebAssembly (wasip1/wasm) reactor running under wasmtime.

Build the WASM module

From the repository root (requires Go 1.27+):

./scripts/build-wasm.sh

This builds build/om.wasm (used automatically in-tree, or pass bindings/python/src/om/_om.wasm when building a standalone wheel).

Usage

OpenAPI

import os
import om
from om import discover

offers = discover.offers("https://api.example.com")
data, location = discover.get(offers[0].url)

compiled = om.compile_openapi(data, location=location)
model = compiled.document.to_json()

with om.Document.from_json(model) as doc:
    page = doc.tools()
    result = doc.call_tool("list_widgets", {"limit": 10}, inputs=os.environ)

Async & Streamable HTTP MCP

Every I/O operation has an *_async counterpart (compile_openapi_async, call_tool_async, handle_mcp_async, introspect_async, discover.offers_async, discover.get_async) that releases the WASM lock across await and accepts any AsyncTransport. If you already use httpx, pass om.httpx_async_transport(client) (or om.httpx_transport(client) for sync) — redirects are always disabled per request so om's redirect rules apply:

import httpx

async with httpx.AsyncClient() as client:
    resp = await doc.handle_mcp_async(
        method="POST",
        headers=request_headers,
        body=request_body,
        inputs=os.environ,
        transport=om.httpx_async_transport(client),
    )

    # For SSE event streams (events/stream), use handle_mcp_stream_async:
    async with await doc.handle_mcp_stream_async(
        method="POST",
        headers=sse_headers,
        body=sse_body,
        inputs=os.environ,
        transport=om.httpx_async_stream_transport(client),
    ) as stream:
        async for chunk in stream:
            ...

GraphQL

import os
import om

schema = om.introspect(
    "https://api.github.com/graphql",
    credential=om.BearerToken(),
    inputs=os.environ,
)
compiled = om.compile_graphql(
    "https://api.github.com/graphql",
    schema,
    {"viewer.graphql": viewer_query_bytes},
    credential=om.BearerToken(),
)

Metadata

Release files for holon-om 0.0.25

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

Built distribution (wheel)

Table of built distributions (wheels) for holon-om 0.0.25
File Interpreter ABI Platform Actions
holon_om-0.0.25-py3-none-any.whl Python 3 none any Details for holon_om-0.0.25-py3-none-any.whl

Release files / holon_om-0.0.25-py3-none-any.whl

Download URL holon_om-0.0.25-py3-none-any.whl
Size 5.5 MB
Tags Python 3
SHA-256 checksum
How to use checksums
135400b54b4d3fa6d444349b738017ef1eb5196d4ad8dc144069a0461ed754d9
BLAKE2b-256 checksum
How to use checksums
96a340ec2802db5d25d07e6444b7c02620cb56e898e076a5e7813158041f5bc1
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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 Dec 4, 2026.

Transparency log

Security for holon-om 0.0.25

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

1 file in this release has been uploaded with provenance metadata.

Attestation for holon_om-0.0.25-py3-none-any.whl

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 Dec 4, 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.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.0.25 This release

1 release file Full provenance

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