Cmdtools Py 3.0.4 | Coderz Repository

cmdtools-py 3.0.4

Last updated:

0 purchases

cmdtools-py 3.0.4 Image
cmdtools-py 3.0.4 Images

Free

Languages

Categories

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.

Files In This Product: (if this is empty don't purchase this product)

Customer Reviews

There are no reviews.