Skip to main content
The kumoai root module provides SDK initialization, logging configuration, and the core type enumerations (Dtype, Stype) used throughout the SDK.

init()

Initializes and authenticates the SDK against the Kumo service. Must be called before using any other SDK functionality.
str
default:"None"
The Kumo API endpoint. Can also be provided via the KUMO_API_ENDPOINT environment variable. Inferred from the API key if not specified.
str
default:"None"
The Kumo API key. Can also be provided via the KUMO_API_KEY environment variable.
Dict[str, str]
default:"None"
Snowflake credentials for SPCS deployments. Either password-based {"user", "password", "account"} or key-pair {"user", "private_key", "account"} with optional "private_key_passphrase" for encrypted keys. The private key must be in PEM format.
str
default:"None"
The Snowflake application name.
str
default:"\"INFO\""
Logging verbosity. See set_log_level() for valid values. Can also be set via the KUMOAI_LOG environment variable.
str
default:"None"
The group to operate in. Only applicable when RBAC is enabled. Accepts a group name or ID. Auto-selected if the user belongs to exactly one group.
str
default:"None"
The project to operate in. Only applicable when RBAC is enabled. Requires group to be resolvable.

set_log_level()

Sets the logging verbosity for the Kumo SDK.
str
required
The logging level. Valid values from most to least verbose: DEBUG, INFO, WARNING, ERROR, CRITICAL (FATAL is an alias for CRITICAL).

Dtype

Enumerates the data types supported by Kumo columns.

Stype

Enumerates the semantic types supported by Kumo columns. Semantic types describe how Kumo interprets and encodes the data in a column.