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_beta-0.1.0.tar.gz (3.5 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_beta-0.1.0-py3-none-any.whl (3.9 kB view details)

Uploaded Python 3

File details

Details for the file astro_custom_operators_beta-0.1.0.tar.gz.

File metadata

File hashes

Hashes for astro_custom_operators_beta-0.1.0.tar.gz
Algorithm Hash digest
SHA256 fd85140d34b596085839099fb28889fdb237e5241cd98e9f00ddbf3a3f150171
MD5 9061c9ecff008077e96cd02be54604fa
BLAKE2b-256 dc38baedb8474d9006de699cd87f32b629b1988d8dc456fc47fc2da7db4bc70f

See more details on using hashes here.

File details

Details for the file astro_custom_operators_beta-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for astro_custom_operators_beta-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 3ba52ac48a5cd7db7acf7729249a23650c38c69219bdd0f6646c30afc4bbb264
MD5 d9e24aaf5947f3e65494cecfd21a1945
BLAKE2b-256 823e626646694013ec6b4691d969734ecc2ed63584d923a309e1d60be9a425ae

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