cmdtools-py 3.0.4

Creator: codyrutscher

Last updated:

Add to Cart

Description:

cmdtoolspy 3.0.4

cmdtools
A (not quite) flexible command framework.















Installation
pip install --upgrade cmdtools-py

install latest commit from GitHub
pip install git+https://github.com/HugeBrain16/cmdtools.git

Basic example
import asyncio
import cmdtools

@cmdtools.callback.add_option("message")
def send(ctx):
print(ctx.options.message)

@send.error
def error_send(ctx):
if isinstance(ctx.error, cmdtools.NotEnoughArgumentError):
if ctx.error.option == "message":
print("Message is required!")

cmd = cmdtools.Cmd('/send hello')
asyncio.run(cmdtools.execute(cmd, send))

Links
PyPI project: https://pypi.org/project/cmdtools-py
Source code: https://github.com/HugeBrain16/cmdtools
Issues tracker: https://github.com/HugeBrain16/cmdtools/issues
Documentation: https://cmdtools-py.readthedocs.io/en/latest

License

For personal and professional use. You cannot resell or redistribute these repositories in their original state.

Customer Reviews

There are no reviews.