-
This release removes the external dependency to the protobuf package. Instead protobuf is embedded into this yamcs-client package. This avoids issues with other installed packages depending on conflicting versions of protobuf. #32
-
This release removes old-style imports. Reminder: all classes can be imported from
yamcs.clientmodule.For example, instead of:
from yamcs.core.auth import Credentials from yamcs.client import YamcsClient credentials = Credentials(username="admin", password="admin") client = YamcsClient("http://localhost:8090", credentials=credentials)
do instead:
from yamcs.client import Credentials, YamcsClient credentials = Credentials(username="admin", password="admin") client = YamcsClient("http://localhost:8090", credentials=credentials)
-
TimelineClient: Add
delete_itemsoperation to batch-delete items. This is a lot faster than deleting items one-by-one. -
TimelineClient: Default for the
ItemBandsettingspace_between_itemswas changed from 0 to 7. Andspace_between_lineswas changed from 2 to 7. This allows for a bit more whitespace between items, which gives the Yamcs Web UI some space to draw connections between depending activities. -
TimelineClient: The code was adjusted to API changes in Yamcs 5.13.0. Backwards compatibility with older Yamcs versions is untested (and unlikely to succeed).
-
TimelineClient: The code to add/update items to the Yamcs Timeline was changed. A best-effort was made to keep old code functional, however that will emit deprecation warnings.
In summary, instead of:
item = Item() item.name = "Test" item.start = now item.duration = timedelta(seconds=3600) item.tags = ["abc"] timeline.save_item(item)
do instead:
item = TimelineEvent( name="Test", start=now, duration=timedelta(seconds=3600), tags=["abc"], ) timeline.save_item(item)
New classes are available for three different kinds of items:
TimelineEvent,TimelineTaskandTimelineActivity. See the online documentation for more on this topic.