Skip to content
AddHunt
Slack apps

Slackle

Lightweight Python framework for building Slack apps

Open source

  • Open source
  • Licence: MIT

In short

Slackle is a lightweight, open-source Python framework for building Slack apps and bots with decorator-based event handlers and a plugin system. It is for developers who want to write Slack app logic with little setup code.

What you get

  • Decorator-based event handlers
  • Handlers can return replies as plain strings
  • Async handlers for events like app mentions
  • Plugin system for extending apps
  • Formatters that turn data into Slack markdown

The details

Slackle is a small framework for developers who build Slack apps in Python. The basic pattern is short: create an app object, register a function for an event with a decorator, and return a string. Slackle posts that string back to Slack as the reply, so a simple greeting bot takes only a few lines. Handlers for events such as app mentions can also be written as async functions that send messages to a channel.

Plugins and formatters

For larger apps, Slackle offers a plugin system for extending what an app can do. The example on the site is a formatter: a class bound to a data type, with default parameters, that turns that data into Slack markdown. An event handler looks up the formatter for its data, builds the message and sends it, which keeps message layout separate from event logic.

Project status

The framework is open source under the MIT license, with its code on GitHub and a getting-started guide linked from the site. It is an early project, and the maintainers invite developers to join the community and become its first contributors.

Alternatives to Slackle

Questions

What language is Slackle for?

Python. Apps are written as Python functions registered for Slack events with decorators.

Is Slackle open source?

Yes. The code is on GitHub under the MIT license, and contributions are welcome.

More like this