Client#

class httpx_gracedb.Client(url=None, token=None, username=None, password=None, force_noauth=False, fail_if_noauth=False, auth_reload=False, auth_reload_timeout=300, **kwargs)[source]#

Bases: ClientAuthMixin, ClientErrorMixin, ClientFileMixin, ClientUserAgentMixin, Client

A httpx.Client subclass that adds behaviors that are common to ligo.org REST API services such as that of GraceDB.

It adds the following behaviors to the Client:

Parameters:
  • url (str | None)

  • token (str | Path | None)

  • username (str | None)

  • password (str | None)

  • force_noauth (bool)

  • fail_if_noauth (bool)

  • auth_reload (bool)

  • auth_reload_timeout (float)