Skip to main content

CA Slack Block Kit

A collection of simple, pre-configured Slack block kit components to use to construct Slack notification messages.

Installation

This package is available for installation via PyPi:

UV Project

uv add ca-slack-block-kit

Poetry Project

poetry add ca-slack-block-kit

Pip

pip install ca-slack-block-kit

Usage

To form a Slack message, import the required components from the package and use them to build your message payload as a list of Block instances.

from ca_slack_block_kit import Block, Divider, Header, MarkdownSection, render_blocks

message: list[Block] = []

message.append(Header("This is a header"))
message.append(Divider())
message.append(MarkdownSection("**This is a markdown section**"))

# The message can then be sent using the Slack SDK
client = slack_sdk.WebClient(token=slack_bot_token)
client.chat_postMessage(
    channel=<slack_channel_id>,
    text=<title_text>,
    blocks=render_blocks(message),
)

Available Blocks

See the full documentation for a list of available blocks and their usage.

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

ca_slack_block_kit-1.2.4.tar.gz (7.5 kB view details)

Uploaded Source

Built Distribution

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

ca_slack_block_kit-1.2.4-py3-none-any.whl (7.1 kB view details)

Uploaded Python 3

File details

Details for the file ca_slack_block_kit-1.2.4.tar.gz.

File metadata

  • Download URL: ca_slack_block_kit-1.2.4.tar.gz
  • Upload date:
  • Size: 7.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.12.12 {"installer":{"name":"uv","version":"0.12.12","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for ca_slack_block_kit-1.2.4.tar.gz
Algorithm Hash digest
SHA256 b57f8336f0c1a999617d13b569ace92e54591b3b9388573c95f16d15f3a65b25
MD5 8829ea9731754a2aa02ed09fd68b36c2
BLAKE2b-256 3f4e0323b1dfac8e664a21c9601c585cecd408009063c353fc8856885e3fab12

See more details on using hashes here.

File details

Details for the file ca_slack_block_kit-1.2.4-py3-none-any.whl.

File metadata

  • Download URL: ca_slack_block_kit-1.2.4-py3-none-any.whl
  • Upload date:
  • Size: 7.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.12.12 {"installer":{"name":"uv","version":"0.12.12","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for ca_slack_block_kit-1.2.4-py3-none-any.whl
Algorithm Hash digest
SHA256 37aec6ee156ae61c2d5e235c70e8b7e06b4b6d31cb4f921baa082b1b832d8f5e
MD5 601079f0078008bc5fe5e5b5c01f87e9
BLAKE2b-256 c0b548ea796be922272ca6818271a8364c9c028ade31dfec35800a00fa17e184

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

1.2.4 This release

2 files

1.2.2

2 files

1.2.0

2 files

1.1.3

2 files

1.1.2

2 files

1.1.1

2 files

1.1.0

2 files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page