Skip to content

yamcs-client 2.0.0

Latest

Choose a tag to compare

@fqqb fqqb released this 21 May 21:09
cdf906f
  • 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.client module.

    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_items operation to batch-delete items. This is a lot faster than deleting items one-by-one.

  • TimelineClient: Default for the ItemBand setting space_between_items was changed from 0 to 7. And space_between_lines was 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, TimelineTask and TimelineActivity. See the online documentation for more on this topic.