Skip to main content

Tigrbl engine plugin for Snowflake, auto-registered via entry points.

Project description

tigrbl_engine_snowflake

Tigrbl engine plugin for Snowflake, auto-registered via the tigrbl.engine entry-point group.

Install

pip install -e .

Usage (inside Tigrbl)

from tigrbl.engine import Engine
from tigrbl.engine.engine_spec import EngineSpec

# DSN (Snowflake SQLAlchemy URL)
spec = EngineSpec(kind="snowflake", dsn="snowflake://USER:PWD@ACCOUNT/DB/SCHEMA?warehouse=WH&role=ROLE")

# Or provide a mapping; the plugin builds the DSN
spec = EngineSpec(kind="snowflake", mapping={
    "account": "myacct-xy123",
    "user": "USER",
    "pwd": "PWD",
    "db": "DB",
    "schema": "PUBLIC",
    "warehouse": "COMPUTE_WH",
    "role": "SYSADMIN",
    "pool_size": 10,
    "max_overflow": 20
})

engine = Engine(spec)
with engine.session() as s:
    s.execute("SELECT CURRENT_ROLE()").all()

Entry-point

Declared in pyproject.toml:

[project.entry-points."tigrbl.engine"]
snowflake = "tigrbl_engine_snowflake:register"

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

tigrbl_engine_snowflake-0.1.1.dev3.tar.gz (8.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

tigrbl_engine_snowflake-0.1.1.dev3-py3-none-any.whl (8.7 kB view details)

Uploaded Python 3

File details

Details for the file tigrbl_engine_snowflake-0.1.1.dev3.tar.gz.

File metadata

  • Download URL: tigrbl_engine_snowflake-0.1.1.dev3.tar.gz
  • Upload date:
  • Size: 8.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.10.3 {"installer":{"name":"uv","version":"0.10.3","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for tigrbl_engine_snowflake-0.1.1.dev3.tar.gz
Algorithm Hash digest
SHA256 e0b9b827a64e920a2ed12686a97a5055ebe7850d18d6c0d71583b8481cdf9f33
MD5 c3f61f235d7c29c40ca24d2365ab9d07
BLAKE2b-256 f52a749f75cd2130226c2b2d79920bf2e022a70afabfa021a5193e5c9db50d59

See more details on using hashes here.

File details

Details for the file tigrbl_engine_snowflake-0.1.1.dev3-py3-none-any.whl.

File metadata

  • Download URL: tigrbl_engine_snowflake-0.1.1.dev3-py3-none-any.whl
  • Upload date:
  • Size: 8.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.10.3 {"installer":{"name":"uv","version":"0.10.3","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for tigrbl_engine_snowflake-0.1.1.dev3-py3-none-any.whl
Algorithm Hash digest
SHA256 af420e6373f37b600b3a56974f7143affd0e94efe2ad1c25f612fe3962e549f8
MD5 f56199a574ff6e43d3e0f6c50d8cb658
BLAKE2b-256 d6b6ca6dc330365973a79cf343b2b4b3a0a34162cfb0b2d0fb56064f5f44520b

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page