Skip to main content

Snowflake plugin for flyte

Project description

Snowflake Plugin for Flyte

This plugin provides Snowflake integration for Flyte, enabling you to run Snowflake queries as Flyte tasks.

Installation

pip install flyteplugins-snowflake

Usage

from flyteplugins.snowflake import Snowflake, SnowflakeConfig

config = SnowflakeConfig(
    account="myaccount.us-east-1",
    user="myuser",
    database="mydb",
    schema="PUBLIC",
    warehouse="mywarehouse",
)

task = Snowflake(
    name="my_query",
    query_template="INSERT INTO FLYTE.PUBLIC.TEST (ID, NAME, AGE) VALUES (%(id)s, %(name)s, %(age)s);",
    plugin_config=config,
    inputs={"id": int, "name": str, "age": int},
    snowflake_private_key="snowflake-private-key-secret",
)

Project details


Download files

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

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

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

flyteplugins_snowflake-2.0.0b54-py3-none-any.whl (6.6 kB view details)

Uploaded Python 3

File details

Details for the file flyteplugins_snowflake-2.0.0b54-py3-none-any.whl.

File metadata

File hashes

Hashes for flyteplugins_snowflake-2.0.0b54-py3-none-any.whl
Algorithm Hash digest
SHA256 befd780b233e820d63a0f4be43de0f6c8e34f36bb666f7489b55c486c6de6b0d
MD5 391aa6c3b519d1fa0280d2cf88f993d4
BLAKE2b-256 b05aaeefc08b1283c22007bfcaaa58cbf7e67dd3a13562e83e1d4a019e874469

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