blockkit
A fast way to build Block Kit interfaces in Python
Decision gist · record as of 2026-08-14
Yes, if you are building Slack apps in Python. BlockKit eliminates boilerplate and catches errors early. Install friction is negligible (zero dependencies, pure Python), licensing is permissive, and no known vulnerabilities exist. The main caveat is aging maintenance—if Slack releases major Block Kit changes, updates may be slow. For active Slack development, this is a solid productivity win; for long-term projects requiring rapid Slack API tracking, monitor the repository.AI-flagged interpretation of the facts on this page — verify before relying
Before you install
- Requires Python 3.11 or later.
- Low friction: pure Python wheel with zero runtime dependencies and a recent commit history.
- Maintenance status is aging—last commit 2026-01-18, no activity in 208 days—so expect slower response to issues or API changes from Slack.
License · maintenance · safety
permissive license (permissive) — MIT license (permissive) means you can use, modify, and distribute BlockKit freely in commercial or private projects with minimal legal friction.
last release 2026-01-18 (208 days) · last repo commit 2026-01-18 · 104 stars
0 known vulnerabilities (OSV.dev, 2026-08-14) · 102,261 downloads/mo, #12,877 on PyPI
Alternatives
Verify before relying
pip install blockkit
from blockkit import Message, Section, Button
message = (
Message()
.add_block(Section("Approve this request"))
.add_block(Button("Approve").action_id("btn"))
.build()
)- Whether the library covers all current Slack Block Kit features or only a subset.
- How often Slack's Block Kit API changes and whether BlockKit stays in sync.
- Community adoption and real-world stability beyond the 104 GitHub stars.
What it is and what it does
BlockKit is a Python wrapper around Slack's Block Kit UI framework that replaces hand-written JSON with a fluent, chainable API. Instead of nesting dictionaries and guessing field names, you call methods like `.add_block()`, `.section()`, and `.button()` with type hints and built-in validation. The library enforces Slack's rules—required fields, valid enum values, text length limits—at build time, catching errors before they reach Slack's API.
It ships as a single wheel with no external dependencies, making installation and deployment straightforward. The API is designed for readability: you write code that looks like the UI structure you're building, and your editor autocompletes the available methods. Maintenance is aging (last commit 208 days ago), so while the library is stable for current Slack features, updates to Slack's API may lag.
Use it for
- Build approval workflows and interactive modals for Slack apps without memorizing Block Kit JSON structure.
- Validate Slack message payloads before sending, catching typos and missing required fields locally.
- Refactor complex Slack UI code by using readable, chainable method calls instead of nested dictionaries.
- Generate dynamic Slack messages and forms in Python bots with type safety and IDE autocomplete.
- Reduce debugging time by letting BlockKit catch field-name and enum-value errors at build time.
Worth the install?
AI-flagged interpretation of the facts on this page. Verify before relying on it.
Yes, if you are building Slack apps in Python.
BlockKit eliminates boilerplate and catches errors early. Install friction is negligible (zero dependencies, pure Python), licensing is permissive, and no known vulnerabilities exist. The main caveat is aging maintenance—if Slack releases major Block Kit changes, updates may be slow. For active Slack development, this is a solid productivity win; for long-term projects requiring rapid Slack API tracking, monitor the repository.
Install
blockkit on PyPI
Before you install
Low friction: pure Python wheel with zero runtime dependencies and a recent commit history. Maintenance status is aging—last commit 2026-01-18, no activity in 208 days—so expect slower response to issues or API changes from Slack.
Requires Python 3.11 or later.
License in practice
MIT license (permissive) means you can use, modify, and distribute BlockKit freely in commercial or private projects with minimal legal friction.
Quickstart
pip install blockkit
from blockkit import Message, Section, Button
message = (
Message()
.add_block(Section("Approve this request"))
.add_block(Button("Approve").action_id("btn"))
.build()
)
Verify before relying
- Whether the library covers all current Slack Block Kit features or only a subset.
- How often Slack's Block Kit API changes and whether BlockKit stays in sync.
- Community adoption and real-world stability beyond the 104 GitHub stars.
Package facts
| License | permissive license permissive |
| Python support | Supports the current Python release >=3.11 |
| Install friction | Low. Pure-Python wheel |
| Runtime dependencies | None |
| Maintenance | Aging 208 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 102,261 / month, #12,877 on PyPI 30-day window, as of 2026-08-14 |
| Known vulnerabilities | None known OSV.dev, checked 2026-08-14 |
| Classifiers | License :: OSI Approved :: MIT LicenseOperating System :: OS IndependentProgramming Language :: Python :: 3 |
Evidence: blockkit-2.1.3-py3-none-any.whl
Tags
Let your AI agent find packages like this
Example. Real query, live index.
You found this page by searching. An agent finds it by wishing: SkillFed indexes 14,416 PyPI packages by what they can do, searchable in plain language.
wish › “slack ui builder python”
- blockkitBlockKit builds Slack UI blocks programmatically with a fluent Python…
- pyblock-builderPyBlock Builder provides Python classes and helper functions to…
- slackblocksBuilds Slack Block Kit messages programmatically in Python with type…
Give your agent the search over MCP, or paste the wish link into any chat.
More Dynamic Content packages
MarkupSafe provides a text object that escapes special characters so untrusted strings can be safely embedded in HTML and XML without injection attacks.
Jinja2 is a templating engine that renders dynamic content by combining templates with Python-like syntax and data, supporting template inheritance, macros, autoescaping, and sandboxed execution.
Soupsieve is a CSS selector library designed to work with Beautiful Soup 4 to select, match, and filter HTML and XML elements using modern CSS selectors from CSS level 1 through CSS level 4 specifications.
Install it if you use Beautiful Soup for HTML or XML parsing and want modern CSS selector support.
Werkzeug is a WSGI utility library providing request/response objects, URL routing, an interactive debugger, HTTP utilities, and a development server for building web applications.
Flask is a lightweight WSGI web application framework for building web applications in Python, from simple single-page sites to complex multi-route applications.
Mako compiles Python-embedded templates into Python modules for fast rendering, supporting layout inheritance, custom functions, and direct Python expressions within template syntax.
See also pyblock-builder · slackblocks · slackify-markdown · slackclient · slack-bolt · markdown-to-mrkdwn · prefect-slack · mdformat-black · md2Slack · prefab-ui