snowmobile.core.cfg.connection

[connection] section from snowmobile.toml, including subsections.

Module Contents

Classes

Credentials

[connection.credentials.credentials_alias]

Connection

[connection]

class snowmobile.core.cfg.connection.Credentials

Bases: snowmobile.core.cfg.base.Base

[connection.credentials.credentials_alias]

user :str
password :str
role :str
account :str
warehouse :str
database :str
schema_name :str
as_nm(self, n: str)

Sets the credentials alias.

property credentials(self)

Returns namespace as a dictionary, excluding _alias.

class snowmobile.core.cfg.connection.Connection(**data)

Bases: snowmobile.core.cfg.base.Base

[connection]

This includes the default_alias which is the set of credentials that snowmobile will authenticate with if creds is not explicitly passed.

default_alias

The set of credentials that is used if creds is not explicitly passed to snowmobile.connect on instantiation.

Type

str

creds

The name given to the set of credentials within the credentials block of the snowmobile.toml file (e.g. [credentials.creds] assigns an creds to a given set of credentials.

Type

str

creds

A dictionary of creds to the associated Creds object containing its credentials.

Type

dict[str, Creds]

default_alias :str
provided_alias :str
credentials :Dict[str, Credentials]
defaults :Dict
property creds(self)

Credentials alias used by current Connection.

property current(self)

Returns current credentials.

property connect_kwargs(self)Dict

Arguments from snowmobile.toml for snowflake.connector.connect().