Auth

class contree_sdk.auth.Auth(base_url='CONTREE_BASE_URL')[source]
base_url: str = 'CONTREE_BASE_URL'

API server URL or env var name to load from.

resolve()[source]
Return type:

Self

abstractmethod get_headers()[source]
Return type:

dict[str, str]

class contree_sdk.auth.JWTAuth(base_url='CONTREE_BASE_URL', token='CONTREE_TOKEN')[source]
token: str = 'CONTREE_TOKEN'

Auth token or env var name to load from.

base_url: str = 'CONTREE_BASE_URL'

API server URL or env var name to load from.

get_headers()[source]
Return type:

dict[str, str]

resolve()
Return type:

Self

class contree_sdk.auth.IAMAuth(base_url=ContreeEndpoint.TOKEN_FACTORY_SANDBOXES, token='NEBIUS_API_KEY', project_id='NEBIUS_PROJECT_ID')[source]
token: str = 'NEBIUS_API_KEY'

IAM token or env var name to load from.

resolve()
Return type:

Self

project_id: str = 'NEBIUS_PROJECT_ID'

Nebius project ID or env var name to load from.

base_url: str = 'https://api.tokenfactory.nebius.com/sandboxes/'

API server URL. Defaults to the Nebius Token Factory production endpoint.

get_headers()[source]
Return type:

dict[str, str]