- General Client
- Mission Database
- TM/TC Processing
- Archive
- Link Management
- Object Storage
- File Transfer
- Time Correlation (TCO)
- Activities
- Timeline
- Examples
Python Yamcs Client Release Notes
PyPI
Client¶
- class yamcs.client.TimelineClient(ctx: Context, instance: str)¶
Client for working with Yamcs timeline.
- delete_items(start: datetime | None = None, stop: datetime | None = None, filter: str | None = None)¶
Batch-delete items.
- Parameters:
start – Minimum stop time of the returned items (exclusive)
stop – Maximum start time of the returned items (exclusive)
filter – Filter string
- get_item(id: str) → TimelineItem¶
Fetch an item by its identifier.
- Parameters:
id – Item identifier
- list_items(band: str | None = None, start: datetime | None = None, stop: datetime | None = None, page_size: int = 500) → Iterable[TimelineItem]¶
List the items.
- Parameters:
band – Return only items matching the specified band
start – Minimum stop time of the returned items (exclusive)
stop – Maximum start time of the returned items (exclusive)
page_size – Page size of underlying requests. Higher values imply less overhead, but risk hitting the maximum message size limit.
- save_item(item: TimelineItem | Item)¶
Save or update an item.
- Parameters:
item – The item to persist. Note: Support for the ‘Item’ type is deprecated and maintained only for migration purposes. Transition to one of the ‘TimelineItem’ subclasses (‘TimelineEvent’, ‘TimelineActivity’, ‘TimelineTask’).