kumoai
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.
The Kumo API endpoint. Can also be provided via the KUMO_API_ENDPOINT environment variable. Inferred from the API key if not specified.
The Kumo API key. Can also be provided via the KUMO_API_KEY environment variable.
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.
The Snowflake application name.
Logging verbosity. See set_log_level() for valid values. Can also be set via the KUMOAI_LOG environment variable.
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.
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.
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.