Skip to main content

The library for developing systems for messengers and social networks

Project description


Kutana logo

Documentation Status CodeFactor Coverage Status Codebeat Badge PyPI version

The library for developing systems for messengers and social networks. Great for developing bots. Refer to example for the showcase of the library abilities.

This library uses generalized attachment types, possible actions e.t.c. for flexibility to use plugins with different backends.


python -m pip install kutana


  • Create Kutana application and add managers.
  • Register your plugins in the executor. You can import plugin from folders with function load_plugins. Files should be a valid python modules with available plugin field with your plugin (Plugin) or field plugins with list of instances of Plugin class.
  • Start the application.


Token for Vkontakte is loaded from the file "config.json" and plugins are loaded from folder "plugins/"

import json
from kutana import Kutana, load_plugins
from kutana.backends import Vkontakte

# Import configuration
with open("config.json") as fh:
    config = json.load(fh)

# Create application
app = Kutana()

# Add manager to application

# Load and register plugins

if __name__ == "__main__":
    # Run application

Example plugin (plugins/

from kutana import Plugin

plugin = Plugin(name="Echo")

async def _(msg, ctx):
    await ctx.reply(ctx.body, attachments=msg.attachments)

If your function exists only to be decorated, you can use _ to avoid unnecessary names

Available backends


Project details

Download files

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

Files for kutana, version 4.2.0
Filename, size File type Python version Upload date Hashes
Filename, size kutana-4.2.0-py3.7.egg (59.6 kB) File type Egg Python version 3.7 Upload date Hashes View
Filename, size kutana-4.2.0-py3-none-any.whl (25.2 kB) File type Wheel Python version py3 Upload date Hashes View
Filename, size kutana-4.2.0.tar.gz (18.6 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page