skillfed

prefect-slack

Prefect integrations with Slack

prefect-slack v0.4.0 309.0K downloads/30d#7,762 on PyPI23,623
Permissive license Apache License 2.0 Active released

What it is and what it does

prefect-slack is a collection of tasks and blocks that bridge Prefect workflow orchestration with Slack messaging. It lets you send notifications to Slack channels directly from your Prefect flows, typically to alert on flow completion, failures, or other workflow events. The package wraps the slack_sdk and integrates with Prefect's task and block system, so you configure Slack credentials once and reuse them across flows.

The package is designed for Prefect 3.x and requires Python 3.10+. It depends on aiohttp for async HTTP, slack_sdk for Slack API access, and prefect itself. Setup involves creating a Slack app, obtaining a Bot OAuth token or Webhook URL, and passing credentials to the send_chat_message task or equivalent blocks within your flow definition.

Use it for:

  • Notify a Slack channel when a scheduled Prefect flow completes or fails, for real-time visibility into workflow status
  • Send alerts to on-call teams via Slack when data pipeline tasks encounter errors or anomalies
  • Log flow run summaries and metrics to a dedicated Slack channel for audit and monitoring purposes
  • Integrate Prefect deployments with team communication by posting deployment status changes to Slack

Worth the install?

AI-flagged interpretation of the facts on this page — verify before relying

Provides prebuilt Prefect tasks and blocks to send Slack messages from Prefect workflows, integrating workflow orchestration with Slack notifications.

Yes, if you use Prefect and need Slack notifications. The package is actively maintained, has low install friction, uses a permissive license, and integrates cleanly with Prefect's task model. No known vulnerabilities. Install it when you want to add Slack alerting to your Prefect workflows without writing custom Slack API code.

Install

prefect-slack on PyPI

pip

pip install prefect-slack

uv

uv add prefect-slack

poetry

poetry add prefect-slack

Installing prefect-slack

Before you install

Low install friction with a pure-Python wheel. Actively maintained with a recent release 10 days ago. Requires Python 3.10+ and depends on aiohttp, slack_sdk, and prefect.

License in practice

Licensed under Apache License 2.0 (permissive), allowing use in commercial and private projects with minimal restrictions.

Quickstart

pip install prefect-slack

from prefect import flow
from prefect_slack import SlackCredentials
from prefect_slack.messages import send_chat_message

@flow
def notify_flow():
    send_chat_message(
        slack_credentials=SlackCredentials(token="xoxb-your-token"),
        channel="#alerts",
        text="Flow completed"
    )

Requires Python 3.10+. Requires a Slack app with Bot OAuth token or Webhook URL configured in your Slack workspace.

Verify before relying

  • Whether the package supports message formatting, attachments, or rich message types beyond plain text
  • Whether error handling and retry logic are built in or left to the caller
  • Performance characteristics when sending many messages in parallel flows

Package facts

License Apache License 2.0 (permissive)
Python support supports the current Python release (>=3.10)
Install friction low — pure-Python wheel
Runtime dependencies 3 — aiohttp, slack_sdk, prefect
Maintenance actively maintained — 10 days since the last release
Last repo commit
First released
Downloads 308,953/month — #7,762 on PyPI (30-day window, as of 2026-08-14)
Known vulnerabilities none known (OSV.dev, checked 2026-08-14)

Evidence: prefect_slack-0.4.0-py3-none-any.whl

Keywords: prefect

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

Tags

prefect slack integrationsend slack messages from prefectprefect workflow notificationsslack bot task prefectprefect slack blocksworkflow slack alerts
workflow-orchestrationslack-integrationnotifications

More Libraries packages