caterva2.Root#

class caterva2.Root(name, urlbase='http://localhost:8002/', user_auth=None)#

A root is a remote repository that can be subscribed to.

Parameters:
  • root (str) – The name of the root to subscribe to.

  • urlbase (str) – The base of URLs (slash-terminated) of the subscriber to query.

  • user_auth (dict) – An optional mapping of fields and values to be used as data to be posted for authenticating the user and get an authorization token for further requests.

__init__(name, urlbase='http://localhost:8002/', user_auth=None)#

Methods

__init__(name[, urlbase, user_auth])