Observed since 20 Oct, 16:18 UTC
No superseded metadata states collected. Unchanged observations do not create new revisions.
a13n-envd-client
Low-level Python client for the Agent Environment Interaction Protocol
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.
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.
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.
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.
uv run --locked pytest packages/a13n-envd-client/tests
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 negotiated major/minor is independent of the package release.
The IDL and repository generator own the wire artifacts. Do not hand-edit generated Python models or methods. See protocol source and generation.
Download counts and popularity will appear here as the collector receives them.
| Package / target | Requirement | Relationship |
|---|---|---|
httpx2Environment{
"extras": "",
"marker": null,
"requires_python": ">=3.13",
"evaluation": "NOT_EVALUATED"
} | httpx2<3,>=2.5 | runtime |
pydanticEnvironment{
"extras": "",
"marker": null,
"requires_python": ">=3.13",
"evaluation": "NOT_EVALUATED"
} | pydantic<3,>=2.12 | runtime |
websocketsEnvironment{
"extras": "",
"marker": null,
"requires_python": ">=3.13",
"evaluation": "NOT_EVALUATED"
} | websockets<16,>=15 | runtime |
bdist_wheel · 61.67 KB · Python py3
sdist · 94.69 KB · Python source
Shared repository data · GitHub
Observed since 20 Oct, 16:18 UTC
No superseded metadata states collected. Unchanged observations do not create new revisions.
package_version:2b222a9617617dc4f22b8dabc4e270caa71af86e6feaa040d3dc76c3780a3199