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,ClientA
httpx.Clientsubclass 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:
GraceDB-style authentication (see
ClientAuthMixin)Raise exceptions based on HTTP status codes (see
ClientErrorMixin)Automatically load POSTed files from disk, automatically guess MIME types (see
ClientFileMixin)Add User-Agent string based on Python package name and version (see
ClientUserAgentMixin)