Preview Flyte 2 for productionHosted on Union.ai
SQLAlchemy

SQLAlchemy

flytekitplugins-sqlalchemy

FlytekitDatabases & Warehousessqlalchemysqlormdatabase

SQLAlchemy is the Python SQL toolkit and Object Relational Mapper that gives application developers the full power and flexibility of SQL. Flyte provides an easy-to-use interface to utilize SQLAlchemy to connect to various SQL Databases.

Install
pip install flytekitplugins-sqlalchemy

Quick Start(example, may need adjustment)

See full examples
pip install flytekitplugins-sqlalchemy

from flytekit import task, workflow
from flytekitplugins.sqlalchemy import SQLAlchemyConfig, SQLAlchemyDefaultImages, SQLAlchemyTask

@task(task_config=SQLAlchemyTask(...))
def my_task() -> None:
    ...

@workflow
def my_workflow() -> None:
    my_task()

Available Imports (3)

configSQLAlchemyConfig

Use this configuration to configure task.

extends dataclass — configuration or data structure for plugin setup

from flytekitplugins.sqlalchemy import SQLAlchemyConfig

typeSQLAlchemyDefaultImages

Default images for the sqlalchemy flytekit plugin.

from flytekitplugins.sqlalchemy import SQLAlchemyDefaultImages

taskSQLAlchemyTask

Makes it possible to run client side SQLAlchemy queries that optionally return a FlyteSchema object.

extends PythonCustomizedContainerTask — a flyte task that can be used in workflows

from flytekitplugins.sqlalchemy import SQLAlchemyTask

Dependencies

sqlalchemypandas

Related Plugins

Package Info

Min Flytekit1.3.0
Modules3

Downloads

Last day8
Last week390
Last month1,737