/  Python Yamcs Client  /  Timeline  /  Client

Client

class yamcs.timeline.TimelineClient(ctx: Context, instance: str)

Client for working with Yamcs timeline.

delete_band(band: str)

Delete a band.

Parameters:

band – Band identifier.

delete_item(item: str)

Delete an item.

Parameters:

item – Item identifier.

delete_view(view: str)

Delete a view.

Parameters:

view – View identifier.

get_band(id: str) Band

Fetch a band by its identifier.

Parameters:

id – Band identifier

get_item(id: str) Item

Fetch an item by its identifier.

Parameters:

id – Item identifier

get_view(id: str) View

Fetch a view by its identifier.

Parameters:

id – View identifier

list_bands() Iterable[Band]

List the bands.

list_items(band: Optional[str] = None, start: Optional[datetime] = None, stop: Optional[datetime] = None, page_size: int = 500) Iterable[Item]

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.

list_views() Iterable[View]

List the views.

save_band(band: Band)

Save or update a band.

Parameters:

band – Band object

save_item(item: Item)

Save or update an item.

Parameters:

item – Item object

save_view(view: View)

Save or update a view.

Parameters:

view – View object