Skip to main content

class ContreeConfig

class contree_sdk.config.ContreeConfig(auth, transport_timeout, file_upload_chunk_size, operation_import_timeout, operation_run_timeout, operation_timeout, operation_poll_secs_min, operation_poll_secs_max, operation_poll_secs_backoff_grow, operation_poll_not_found_limit, default_truncate_output_at, token_expiration_warning_threshold, images_list_batch_size)
Configuration for the ConTree SDK client. The auth field controls authentication and the target URL. String fields on auth objects support env var lookup: if the value matches an existing environment variable name, the value is loaded from it.

Attributes

auth
IAMAuth | JWTAuth
IAMAuth | JWTAuthAuthentication configuration. Use IAMAuth for Nebius IAM tokens or JWTAuth for legacy tokens.
transport_timeout
float
HTTP timeout in seconds.
file_upload_chunk_size
int
Chunk size in bytes for uploads.
operation_import_timeout
float | None
Import operation timeout, falls back to operation_timeout.
operation_run_timeout
float | None
Run operation timeout, falls back to operation_timeout.
operation_timeout
float
Default timeout for operations.
operation_poll_secs_min
float
Min polling interval for operation status checks.
operation_poll_secs_max
float
Max polling interval for operation status checks.
operation_poll_secs_backoff_grow
float
Backoff multiplier between polls. Higher values mean faster backoff growth; recommended range is 1 to 2.
operation_poll_not_found_limit
int
Maximum number of not found responses when awaiting operation
default_truncate_output_at
int
Default truncate output at which to truncate stdout and stderr.
token_expiration_warning_threshold
timedelta
Warn if token expires within this duration.
images_list_batch_size
int
Batch size for listing images.