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.2.0.tar.gz (4.0 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.2.0-py3-none-any.whl (4.5 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: astro_custom_operators-0.2.0.tar.gz
  • Upload date:
  • Size: 4.0 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.2.0.tar.gz
Algorithm Hash digest
SHA256 01e6241c8f993034e1a9345cdcdc3371cf734a2ed289ed3a384b0f4d20384e79
MD5 e86bd058501016261ae8e237ba400ed3
BLAKE2b-256 a5ae8b99c2dfb522b80feb2a95698eb9651512cdca23c19dd3e66623773088d9

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for astro_custom_operators-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 478ef689a8b07eddcd3d7f0e3622b079288a0c85aee2fc0e5ed20c78e88ebdcd
MD5 0b1b05a659da0db8ae8b500ac57e1521
BLAKE2b-256 2211259445fcfefc336982e844070f7be979a7be7e90d904e75a74672e09add1

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