ProgrammaticAccessTokenAuth
relationalai.config.connections.snowflake
Configure Snowflake access using a Programmatic Access Token.
Use this authenticator when you have a Snowflake Programmatic Access Token.
When loading from a config dict or file, set
authenticator="programmatic_access_token".
Instantiating this class is optional; you can also pass an equivalent dict to
create_config.
Parameters
Section titled “Parameters”
(accountstr) - Snowflake account identifier.
(warehousestr) - Snowflake warehouse name.
(tokenstr or SecretStr) - Programmatic Access Token.
Examples
Section titled “Examples”Create a programmatic config using this authenticator class:
>>> from relationalai.config import Config, ProgrammaticAccessTokenAuth>>> cfg = Config(connections={... "sf": ProgrammaticAccessTokenAuth(... account="my_account",... warehouse="my_warehouse",... token="my_pat",... )... })Create a programmatic config using a plain dict (no authenticator import):
>>> from relationalai.config import Config>>> cfg = Config(connections={... "sf": {... "type": "snowflake",... "authenticator": "programmatic_access_token",... "account": "my_account",... "warehouse": "my_warehouse",... "token": "my_pat",... }... })Inheritance Hierarchy
Section titled “Inheritance Hierarchy”Used By
Section titled “Used By”config > connections > snowflake └── SnowflakeAuthenticator
Referenced By
Section titled “Referenced By”RelationalAI Documentation └── Build With RelationalAI └── Understand how PyRel works > Configure PyRel └── Configure snowflake auth └── Configure programmatic access token authentication