Skip to main content

A general purpose library for command-based iteraction made for bots

Project description

Command For Bot

PyPI PyPI - Wheel PyPI - Python Version

Run Tests codecov dependency status for GitHub repo GitHub last commit PyPI - Downloads

Check Code Style pre-commit Code style: black Imports: isort

command4bot is a general purpose library for command-based iteraction made for bots.


pip install command4bot

Quick Start

from command4bot import CommandsManager

mgr = CommandsManager()

def greet(payload):
    return f"Hello, {payload}!"

mgr.exec('greet John')  # 'Hello, John!'


  • Register command with a simple decorator
  • Managing command open and closed status with ease
  • Automatically manage command's dependency (a.k.a. context) with its status
  • Fallback handlers if no command found


:warning: The documentation is still working in progress!


  • Support for commands need interaction

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

command4bot-0.4.1.tar.gz (8.5 kB view hashes)

Uploaded source

Built Distribution

command4bot-0.4.1-py3-none-any.whl (9.7 kB view hashes)

Uploaded py3

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Huawei Huawei PSF Sponsor Microsoft Microsoft PSF Sponsor NVIDIA NVIDIA PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page