Skip to main content

Custom Airflow operators for the Astro workflow builder

Project description

astro-custom-operators

Custom Apache Airflow operators for the Astro workflow builder.

Operators

  • SlackChannelReadOperator — Read messages from a Slack channel or thread with automatic channel name-to-ID resolution and pagination.
  • SlackChannelWriteOperator — Post, reply to, or update messages in a Slack channel with automatic channel name-to-ID resolution.

Installation

pip install astro-custom-operators

Usage

from custom_operators.slack_channel import SlackChannelReadOperator, SlackChannelWriteOperator

read_messages = SlackChannelReadOperator(
    task_id="read_slack",
    channel="general",
    limit=50,
)

post_message = SlackChannelWriteOperator(
    task_id="post_slack",
    channel="general",
    text="Hello from Airflow!",
)

Requires a Slack connection configured in Airflow (default conn id: slack_default).

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

astro_custom_operators-0.3.0.tar.gz (4.8 kB view details)

Uploaded Source

Built Distribution

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

astro_custom_operators-0.3.0-py3-none-any.whl (5.2 kB view details)

Uploaded Python 3

File details

Details for the file astro_custom_operators-0.3.0.tar.gz.

File metadata

  • Download URL: astro_custom_operators-0.3.0.tar.gz
  • Upload date:
  • Size: 4.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.1

File hashes

Hashes for astro_custom_operators-0.3.0.tar.gz
Algorithm Hash digest
SHA256 1336ab63035061e017597ce85bad2c62a3c27b1d3a0e783144cc2da3611a84c7
MD5 12a6ad3cb68be8a9f30be7ed9b3012b8
BLAKE2b-256 b9c6a375bf42b90bd7fbd1079248f362bbf2a4ba00ae436dda8d1625fe2a3742

See more details on using hashes here.

File details

Details for the file astro_custom_operators-0.3.0-py3-none-any.whl.

File metadata

File hashes

Hashes for astro_custom_operators-0.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 d4cc0e47824cb5adf59419b8e7fcf9837ba60fbbfddc23237dd8c9865cddea40
MD5 53f58bcfc390c3e73955802e0cb1a7f6
BLAKE2b-256 a5574c47223c1e4324a6da2bc85686ed5e2d3a35c565ca511ee5b645e318070c

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