Skip to main content

Execution Plane Client

Shared Pydantic command contracts, command catalog, in-memory handler registry and a generic handler protocol. No HTTP router, network client, persistence, authentication implementation or EP imports are included.

Participants register their own handlers. EP implements command submission and resource queries; the caller handles work.execute.completed using this same protocol. Commands have no persisted status or child history. A receipt confirms that the domain handler returned, not that asynchronous resource work is complete.

Constructing messages

Instantiate a typed command and call to_message(); the command supplies its wire type and revision and builds the envelope:

from uuid import uuid4

from execution_plane_client.commands.clusters import ClusterRegister

message = ClusterRegister(
    resource_id=uuid4(),
    name="workers",
    endpoint="https://cluster.example",
    credential_ref=uuid4(),
).to_message(
    source_id="syntara-orchestration",
    destination_id="execution-plane",
    client_id="syntara-orchestration",
)

body = message.model_dump(mode="json")  # Send using your application's HTTP client.

Every concrete command supports this method, including ClusterDelete, TargetDelete and TargetHealth. Partial updates serialize only supplied fields, retaining explicit nulls and placement discriminators without resetting omitted configuration.

By default, each call generates an independent message UUID and UTC timestamp. Keep the returned message for retries, or pass message_id and occurred_at to reconstruct a delivery. Message IDs correlate receipts, not resource identity or deduplication. Source, destination and client scope are always supplied by the caller; the helper does not authenticate them.

WorkExecute requires a caller-assigned work_item_id, which becomes the new WorkItem's primary key. Submitting an existing ID returns HTTP 409. Use that same ID for Completion and CredentialResolveWorkload requests. For cancellation or deletion, use WorkCancelBulk or WorkDeleteBulk with a WorkItemSelector containing a one-element work_item_ids list.

Work execution accepts optional non-secret runtime_context, passed to the plugin and included in work-item reads and completion notifications. See runtime context for examples and filtering.

Handling messages

After parsing a MessageEnvelope, validate it through the catalog and pass the returned typed payload to the registered handler:

payload = catalog.validate(message)
handler = registry.get(message.command.command_type, message.command.command_revision)
result = await handler.handle(message, payload, context)

Handlers implement handle(message, payload, context). The catalog selects the payload model by command type and revision and validates its fields. Handlers narrow the payload to their supported command types without parsing the raw dictionary again. The original envelope remains available for routing and receipt correlation; partial-update payloads retain which fields were supplied. Authentication, authorization and domain-state validation (including validation after merging a patch) remain participant responsibilities.

Build with uv build src/execution_plane_client. See the service's integration documentation for command examples and the current HTTP authentication contract.

Metadata

Release files for execution-plane-client 0.1.26

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

Source distribution (sdist)

Source distribution for execution-plane-client 0.1.26
File Size Uploaded Provenance Actions
execution_plane_client-0.1.26.tar.gz 21.6 kB With provenance Details for execution_plane_client-0.1.26.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for execution-plane-client 0.1.26
File Interpreter ABI Platform Actions
execution_plane_client-0.1.26-py3-none-any.whl Python 3 none any Details for execution_plane_client-0.1.26-py3-none-any.whl

Total release size: 55.6 kB

Release files / execution_plane_client-0.1.26.tar.gz

Download URL execution_plane_client-0.1.26.tar.gz
Size 21.6 kB
Tags Source
SHA-256 checksum
How to use checksums
2fe19dc65cd5e8a8fb95160b33738a612ac6808baccbd247742e03407244b3b0
BLAKE2b-256 checksum
How to use checksums
8274a2c3de134b195f41a8d6e52983d510e570d574dbe740465a49215ead1352
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 Nov 21, 2026.

Transparency log

Release files / execution_plane_client-0.1.26-py3-none-any.whl

Download URL execution_plane_client-0.1.26-py3-none-any.whl
Size 34.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
457637d0dd97d54c6b30fbfb95dc6f011aea8ef760d1b89c4e4f1ebba8a183b8
BLAKE2b-256 checksum
How to use checksums
481c0f459c2a5188719d53fd2cc9a056fbc3a431fa4294ea49be098b4a771b9e
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 Nov 21, 2026.

Transparency log

Security for execution-plane-client 0.1.26

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

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for execution_plane_client-0.1.26.tar.gz

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 Nov 21, 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.

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