imednet.auth package

Authentication helpers.

class imednet.auth.ApiKeyAuth[source]

Bases: object

Authentication strategy using API Key and Security Key.

__init__(api_key, security_key)[source]
Parameters:
  • api_key (str) –

  • security_key (str) –

Return type:

None

get_headers()[source]

Return the API key and security key headers.

Return type:

Dict[str, str]

class imednet.auth.AuthStrategy[source]

Bases: Protocol

Protocol for authentication strategies.

Strategies must provide headers to be injected into requests.

__init__(*args, **kwargs)
get_headers()[source]

Return authentication headers.

Return type:

Dict[str, str]

Submodules

imednet.auth.api_key module

API Key authentication strategy.

class imednet.auth.api_key.ApiKeyAuth[source]

Bases: object

Authentication strategy using API Key and Security Key.

__init__(api_key, security_key)[source]
Parameters:
  • api_key (str) –

  • security_key (str) –

Return type:

None

get_headers()[source]

Return the API key and security key headers.

Return type:

Dict[str, str]

imednet.auth.strategy module

Authentication strategy protocol.

class imednet.auth.strategy.AuthStrategy[source]

Bases: Protocol

Protocol for authentication strategies.

Strategies must provide headers to be injected into requests.

__init__(*args, **kwargs)
get_headers()[source]

Return authentication headers.

Return type:

Dict[str, str]