Skip to main content

a13n Envd Client

a13n-envd-client is the low-level Python client for Envd's Environment Interaction Protocol (EIP). The import package is a13n_envd_client. Python 3.13 or later is required.

Use this package when implementing an Environment Provider or a trusted EIP integration. Most applications should start with a13n-harness, which owns fixed-target execution adaptation. Service or the embedding Host manages target resources through vendor-specific Environment Providers; Envd supplies the shared execution path.

Public surface

  • Generated EIP 0.4 models, codecs, method metadata, and typed EIPClient operations for every protocol method in a13n_envd_client.eip.v1.
  • EIPDeviceConnection: Device initialization, descriptor and directory discovery, independent Session acquisition, and physical transport ownership.
  • EIPSession: fixed-cwd execution scope, readiness, keepalive, monotonic descriptor refresh, clean close, abort, and transfer helpers.
  • StdioTransport, HttpTransport, and AcceptedWebSocketTransport over trusted Host-provided pipes, an authenticated HTTP(S) endpoint, or an already-authenticated reverse-WebSocket connection.
  • EIPFileReader and EIPFileWriter: bounded binary transfer, integrity evidence, explicit commit, and staged-writer abort.
  • EIPComputerObservationReader, through EIPSession.observe_computer(): verified screenshot transfer for an opted-in desktop.
  • EIPOutputReader and EIPOutputPage: contiguous retained-output paging and producer/completeness evidence.
  • RequestCoordinator: bounded concurrent request correlation, data-frame routing, cancellation, and typed errors.
  • EIPTransport, frame types, and WebSocketConnection for custom carrier adapters.

The package does not install or launch Envd, allocate its required private runtime directory, issue credentials, or start a WebSocket listener. Those responsibilities belong to the Provider or Host.

Connect to an existing daemon

import asyncio
import os

from a13n_envd_client import EIPDeviceConnection, HttpTransport


async def main() -> None:
    transport = HttpTransport(
        endpoint=os.environ["ENVD_ENDPOINT"],
        credential=os.environ["ENVD_CREDENTIAL"],
    )
    device = await EIPDeviceConnection.initialize(
        transport,
        expected_device_id=os.environ["ENVD_DEVICE_ID"],
    )
    async with device:
        print(device.descriptor.system_info)
        if "device.metrics" in device.descriptor.available_methods:
            report = await device.metrics()
            print(report.sample)  # None until the first configured sample completes.
        async with await device.open_session() as session:
            descriptor = await session.describe()
            print(descriptor.device_id, descriptor.generation, descriptor.session_id)


if __name__ == "__main__":
    asyncio.run(main())

This example requires an existing configured daemon and its credential. The endpoint is its base URL. Initialization creates no Session. open_session() establishes readiness; closing a Session preserves its siblings. The Device owner separately closes the carrier, without destroying the external workspace or daemon.

HTTPS attachments use the operator's environment proxy settings; permitted plaintext loopback/private links stay direct. verify=True is the independent default. A caller can supply an SSL context or CA path, or explicitly disable certificate/hostname checks with False. The low-level package does not read Harness's A13N_OUTBOUND_TLS_VERIFY setting.

The Python EIP client guide covers every transport/session option, all error classes, explicit writer commit, output paging, timeout semantics, and the complete generated method reference. The Envd operator guide owns standalone bootstrap, including A13N_ENVD_RUNTIME_DIR.

Failure semantics

A carrier timeout, cancellation, or connection failure does not prove an already dispatched mutation failed or was absent. The client does not automatically retry ambiguous operations. Reconcile with the same operation ID and semantic request where permitted, a receipt, or native-state inspection.

Operations with context.timeout_ms get their operation budget plus response allowance; without a configured coordinator timeout the allowance is 30 seconds. HTTP control reads follow the same operation-plus-allowance model while retaining their separate connect/write/pool timeouts. Initialization and readiness have their own enclosing deadlines.

Validate

uv run --locked pytest packages/a13n-envd-client/tests

Versioning and generation

The client and native daemon share one Envd stable X.Y.Z or RC X.Y.Z-rc.N release identity. Python metadata uses PEP 440 X.Y.ZrcN; native artifacts retain SemVer spelling. EIP's source version is independent of the package release. Peers do not negotiate or compare protocol versions; interoperability depends on the actual schemas and advertised methods.

The IDL and repository generator own the wire artifacts. Do not hand-edit generated Python models or methods. See protocol source and generation.

License

Apache License 2.0.

Metadata

Release files for a13n-envd-client 0.7.2

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

Source distribution (sdist)

Source distribution for a13n-envd-client 0.7.2
File Size Uploaded Provenance Actions
a13n_envd_client-0.7.2.tar.gz 108.6 kB Without provenance Details for a13n_envd_client-0.7.2.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for a13n-envd-client 0.7.2
File Interpreter ABI Platform Actions
a13n_envd_client-0.7.2-py3-none-any.whl Python 3 none any Details for a13n_envd_client-0.7.2-py3-none-any.whl

Total release size: 175.2 kB

Release files / a13n_envd_client-0.7.2.tar.gz

Download URL a13n_envd_client-0.7.2.tar.gz
Size 108.6 kB
Tags Source
SHA-256 checksum
How to use checksums
bf333277f0eb31efc3997bb72f71d52b0e67c226e019773ce794a5c15b05f3ca
BLAKE2b-256 checksum
How to use checksums
1763e88dc919a5492372e5d75fbf78e72f0ee2a8175709a75970f8f146b09d21
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.13.7 {"installer":{"name":"uv","version":"0.13.7","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"26.04","id":"resolute","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Release files / a13n_envd_client-0.7.2-py3-none-any.whl

Download URL a13n_envd_client-0.7.2-py3-none-any.whl
Size 66.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
a97bf96b66ed05e8b1cc43544bf211c4b9039bcae8b52c1369f445594e3ca91b
BLAKE2b-256 checksum
How to use checksums
53519cfcf7918dbee791c2d559ef0c07806f8e984aae42c5fbbc302e44af4b07
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.13.7 {"installer":{"name":"uv","version":"0.13.7","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"26.04","id":"resolute","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Security for a13n-envd-client 0.7.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.

No provenance found

None of the files in this release were uploaded with provenance metadata.

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.

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