Skip to main content

Command For Bot

PyPI PyPI - Wheel PyPI - Python Version

Run Tests codecov

Libraries.io 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.

Installation

pip install command4bot

Quick Start

from command4bot import CommandsManager

mgr = CommandsManager()

@mgr.command
def greet(payload):
    return f"Hello, {payload}!"

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

Features

  • 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

Documentation

:warning: The documentation is still working in progress!

https://command4bot.readthedocs.io/en/latest/

Todo

  • Support for commands need interaction

Metadata

Release files for command4bot 0.4.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for command4bot 0.4.1
File Size Uploaded Provenance Actions
command4bot-0.4.1.tar.gz 8.5 kB Without provenance Details for command4bot-0.4.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for command4bot 0.4.1
File Interpreter ABI Platform Actions
command4bot-0.4.1-py3-none-any.whl Python 3 none any Details for command4bot-0.4.1-py3-none-any.whl

Total release size: 18.2 kB

Release files / command4bot-0.4.1.tar.gz

Download URL command4bot-0.4.1.tar.gz
Size 8.5 kB
Tags Source
SHA-256 checksum
How to use checksums
7467d8fcf8cc292638403cbc5b79f8cb910db63db75271d3894fb1c650450fe3
BLAKE2b-256 checksum
How to use checksums
eb8fc34d5423f3bf80c25cfe64b9b37945ba31f833785081ad1d3b00811a1149
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.1.4 CPython/3.9.1 Windows/10

Release files / command4bot-0.4.1-py3-none-any.whl

Download URL command4bot-0.4.1-py3-none-any.whl
Size 9.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
88a8f87cd415f0b2193b3ae6f3e147263885789179a9bc7f9f8a17022d63a589
BLAKE2b-256 checksum
How to use checksums
7a59530afe682b0b4238874fe82c612996916ae0efda5ff5e79d49f8ab1aee26
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.1.4 CPython/3.9.1 Windows/10

Security for command4bot 0.4.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

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