$npx skillfedfor your agent

prefect-sqlalchemy

Prefect integrations for working with databases

With conditionsPyPI LibrariesReleased Feb 2026940.5K downloads / moApache License 2.0Pure Python

Decision gist · record as of 2026-08-14

pure-Python wheel — prefect_sqlalchemy-0.6.1-py3-none-any.whl
v0.6.1 · released 2026-02-12 · Python >=3.10 · 2 runtime deps: sqlalchemy, prefect

Yes, if you are already using Prefect and need to orchestrate database operations. The package has low install friction, active maintenance, permissive licensing, and no known vulnerabilities. It is a straightforward integration that fits naturally into Prefect workflows. Install it only if you plan to use Prefect for workflow orchestration; it is not a standalone database tool.AI-flagged interpretation of the facts on this page — verify before relying

Before you install

  • Requires Python 3.10 or later; requires a running Prefect server or agent to execute tasks.
  • Low friction: pure Python wheel with only two runtime dependencies (sqlalchemy and prefect).
  • Active maintenance with a recent release on 2026-02-12 and continuous commits; part of the official Prefect ecosystem.

License · maintenance · safety

Apache License 2.0 (permissive) — Apache License 2.0 is permissive; you can use, modify, and distribute this package freely in commercial and private projects with minimal restrictions.

last release 2026-02-12 (183 days) · last repo commit 2026-08-14 · 23,623 stars

0 known vulnerabilities (OSV.dev, 2026-08-14) · 940,537 downloads/mo, #4,680 on PyPI

Verify before relying

pip install prefect-sqlalchemy

from prefect_sqlalchemy import sqlalchemy_query
from sqlalchemy import text

result = sqlalchemy_query(
    "postgresql://user:password@localhost/dbname",
    text("SELECT * FROM table")
)
  • Specific database systems supported (PostgreSQL, MySQL, SQLite, etc.) beyond the generic SQLAlchemy abstraction.
  • Whether connection pooling, transaction management, or async query execution are built-in features.
  • API surface for defining reusable database blocks vs. one-off query tasks.
Same gist for agents: .md · .json

What it is and what it does

prefect-sqlalchemy bridges SQLAlchemy and Prefect, allowing you to define database queries and connections as first-class objects in Prefect workflows. It provides blocks and tasks that wrap SQLAlchemy operations, making it straightforward to fetch data from databases, execute updates, or manage connections as part of a larger orchestrated pipeline.

The package is maintained by PrefectHQ as part of the official Prefect integration ecosystem. It depends on both sqlalchemy and prefect as runtime libraries, so you need both installed to use it. It supports Python 3.10 and later and is actively maintained, with recent commits and releases.

Use it for

  • Extract data from a database as a task within a Prefect flow, then pass it downstream for transformation or loading.
  • Schedule recurring database queries (e.g., daily reports) using Prefect's deployment and scheduling system.
  • Build multi-step ETL pipelines where database reads and writes are orchestrated alongside other data processing tasks.
  • Manage database connections as reusable Prefect blocks, avoiding credential duplication across workflows.
  • Monitor and log database operations through Prefect's observability and run history features.

Worth the install?

AI-flagged interpretation of the facts on this page. Verify before relying on it.

With conditions

Yes, if you are already using Prefect and need to orchestrate database operations.

The package has low install friction, active maintenance, permissive licensing, and no known vulnerabilities. It is a straightforward integration that fits naturally into Prefect workflows. Install it only if you plan to use Prefect for workflow orchestration; it is not a standalone database tool.

Install

prefect-sqlalchemy on PyPI

Before you install

Low friction: pure Python wheel with only two runtime dependencies (sqlalchemy and prefect). Active maintenance with a recent release on 2026-02-12 and continuous commits; part of the official Prefect ecosystem.

Requires Python 3.10 or later; requires a running Prefect server or agent to execute tasks.

License in practice

Apache License 2.0 is permissive; you can use, modify, and distribute this package freely in commercial and private projects with minimal restrictions.

Quickstart

pip install prefect-sqlalchemy

from prefect_sqlalchemy import sqlalchemy_query
from sqlalchemy import text

result = sqlalchemy_query(
    "postgresql://user:password@localhost/dbname",
    text("SELECT * FROM table")
)

Verify before relying

  • Specific database systems supported (PostgreSQL, MySQL, SQLite, etc.) beyond the generic SQLAlchemy abstraction.
  • Whether connection pooling, transaction management, or async query execution are built-in features.
  • API surface for defining reusable database blocks vs. one-off query tasks.

Package facts

LicenseApache License 2.0 permissive
Python supportSupports the current Python release >=3.10
Install frictionLow. Pure-Python wheel
Runtime dependencies
2 packages
sqlalchemyprefect
MaintenanceActively maintained 183 days since the last release
Last repo commit
First released
Downloads940,537 / month, #4,680 on PyPI 30-day window, as of 2026-08-14
Known vulnerabilitiesNone known OSV.dev, checked 2026-08-14
Classifiers
Intended Audience :: DevelopersIntended Audience :: System AdministratorsLicense :: OSI Approved :: Apache Software LicenseNatural Language :: EnglishProgramming Language :: Python :: 3 :: OnlyProgramming Language :: Python :: 3.10Programming Language :: Python :: 3.11Programming Language :: Python :: 3.12Programming Language :: Python :: 3.13Topic :: Software Development :: Libraries

Evidence: prefect_sqlalchemy-0.6.1-py3-none-any.whl

Tags

Capabilities
prefect database integrationsqlalchemy prefect tasksdatabase workflow orchestrationprefect sql blockssqlalchemy prefect blocksdatabase task automationprefect database connections
Topics
workflow-orchestrationdatabase-integrationetl
PyPI keywords
prefect

Let your AI agent find packages like this

Example. Real query, live index.

You found this page by searching. An agent finds it by wishing: SkillFed indexes 14,416 PyPI packages by what they can do, searchable in plain language.

wish › “prefect database integration”

  • prefect-sqlalchemyIntegrates SQLAlchemy with Prefect workflows, enabling database…
  • prefect-snowflakePrefect integration that provides tasks and blocks for connecting…
  • prefect-azurePrefect integrations for orchestrating workflows on Azure, including…

Give your agent the search over MCP, or paste the wish link into any chat.

More Libraries packages

urllib3 Worth it
PyPI · Libraries · released May 2026

urllib3 is an HTTP client library that provides thread-safe connection pooling, SSL/TLS verification, multipart file uploads, request retries, compression support, and proxy handling for Python applications.

MITpure Python · 3.10+
1.8Bdownloads / mo
requests Worth it
PyPI · Libraries · released May 2026

Requests is a Python HTTP library that simplifies sending HTTP/1.1 requests with automatic handling of headers, authentication, cookies, and response parsing.

Apache-2.0pure Python · 3.10+
1.8Bdownloads / mo
pluggy Worth it
PyPI · Libraries · released May 2025

Pluggy provides a plugin system that lets you define hook specifications and register implementations to be called in sequence, enabling extensible Python applications without tight coupling.

Install it if you're building an extensible application or framework.

MITpure Python · 3.9+aging
1.3Bdownloads / mo
python-dateutil Worth it
PyPI · Libraries · released Mar 2024

Provides parsing, arithmetic, and recurrence rule computation for dates and times, with timezone support and iCalendar RFC compliance.

Install it if you need to parse flexible date strings, compute relative dates, handle timezones, or work with recurrence rules—it's the de facto choice for these tasks.

Apache-2.0pure Python
1.2Bdownloads / mo
six With conditions
PyPI · Libraries · released Dec 2024

Six provides utility functions to write Python code that runs on both Python 2.7 and Python 3.3+, smoothing over language differences between the two versions.

MITpure Python
1.2Bdownloads / mo
pytest Worth it
PyPI · Libraries · released Jun 2026

pytest is a testing framework that lets you write test functions using plain assert statements and automatically discovers and runs them, with detailed failure reporting.

MITpure Python · 3.10+
1.1Bdownloads / mo

See also prefect-snowflake · prefect-redis · prefect-gitlab · prefect-github · prefect · prefect-dbt · prefect-dask · prefect-email · prefect-slack · prefect-aws