Events client#
- class geonemo.client.EventsClient(
- base_url=None,
- *,
- transport=None,
- project_id=None,
- token=None,
- timeout=10.0,
- client=None,
- headers=None,
Read the toolkit’s event feeds (read scope; a service credential is enough).
- catalog(collection, *, after=0, limit=100)#
Read catalog change events for a collection (
GET /v1/events/catalog/{collection}).- Parameters:
collection – Collection identifier.
after – Revision to read after;
0starts at the beginning.limit – Maximum events to return, up to 500.
- Returns:
A
CatalogEventPage, oldest first.- Raises:
EventCursorExpiredError – If the feed no longer keeps every event after
after.ServicesClientError – On other transport or HTTP failures.
- gkb(project_id, *, after=0, limit=100)#
Read GKB publication events for a project (
GET /v1/events/gkb/{project_id}).- Parameters:
project_id – Project identifier.
after – Sequence to read after;
0starts at the beginning.limit – Maximum events to return, up to 500.
- Returns:
A
GkbEventPage, oldest first.- Raises:
EventCursorExpiredError – If the feed no longer keeps every event after
after.ServicesClientError – On other transport or HTTP failures.