caterva2.Root.__init__#

Root.__init__(client, name)#

Represents a remote repository that can be subscribed to.

Parameters:
  • client (Client) – The client used to interact with the remote repository.

  • name (str) – Name of the root to subscribe to.

Examples

>>> import caterva2 as cat2
>>> client = cat2.Client("https://demo.caterva2.net")
>>> root = client.get("example")
>>> root.file_list[-3:]
['ds-sc-attr.b2nd', 'lung-jpeg2000_10x.b2nd', 'tomo-guess-test.b2nd']