caterva2.Root#

class caterva2.Root(client, name)#
Attributes:
cookie
file_list

Retrieves a list of files in this root.

urlbase

Methods

upload(localpath[, remotepath])

Uploads a local file to this 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']

Methods

__init__(client, name)

Represents a remote repository that can be subscribed to.

upload(localpath[, remotepath])

Uploads a local file to this root.

Attributes

file_list

Retrieves a list of files in this root.