- Overview
- publish_location
publish_location
Part of Reusable workflows in the Python API reference.
Related guidance: shipped-tooling.
Runnable examples: publish_location.py.
from picogrid_ecn_client.workflows import publish_locationPublish one typed public location for an entity identity.
async def publish_location( client: ECNClient, *, entity_id: UUID, location: Location,) -> PublishLocationResultParameters
Section titled “Parameters”| Name | Type | Default | Description |
|---|---|---|---|
| client | ECNClient | — | Configured SDK client used for publication. |
| entity_id | UUID | — | Canonical identity associated with the location. |
| location | Location | — | Validated public location to publish. |
Returns
Section titled “Returns”| Type | Description |
|---|---|
| PublishLocationResult | The entity identity, published location, and broker acknowledgement. |
Raises
Section titled “Raises”| Exception | Description |
|---|---|
| ECNClientError | If validation, connection, or publication fails. |
Version 0.2.0 · branch main
