Registry / web-framework / aiocmd

aiocmd

JSON →
library0.1.5pypypi✓ verified 80d ago

Coroutine-based CLI generator using prompt_toolkit. Version 0.1.5 (latest) with no new releases since 2020; project appears unmaintained.

pip install aiocmd
INSTALL
IMPORT
SIG · AIOCMD
A
aiocmd
web-frameworkpythonv0.1.5
Install
2.2s avg
Import
Disk
25MB
Pass rate
10/ 10
Env Coverage10 / 10
glibc
3.93.13
musl
3.93.13
Install & Compatibility
Where this runs
tested against v0.1.5 · pip install
no network on importno background threads
Install × environment matrix
Each cell = how many times install + import succeeded across repeated harness runs. Partial = flaky.
glibc = Debian/Ubuntu slim · musl = Alpine Linux
musl
py 3.103.95 runs
installs and imports cleanly · install 0.0s · import 0.000s · 28.9MB
glibc
py 3.103.95 runs
installs and imports cleanly · install 2.2s · import 0.000s · 29MB
25MB installed
● package 25MB
Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

CliCmd
import aiocmd
from aiocmd import CliCmd

Define a class inheriting from CliCmd with async methods prefixed with 'cmd_' and run with run_cmd.

import asyncio from aiocmd import CliCmd, run_cmd class MyCli(CliCmd): async def cmd_hello(self): """Say hello""" print("Hello, world!") if __name__ == '__main__': asyncio.run(run_cmd(MyCli()))
aiocmd --version
Debug
Known issues
gotchaMethods must be async and prefixed with 'cmd_'. Forgetting 'async' or wrong prefix causes method to be ignored silently.
fix
Ensure all command methods are defined as 'async def cmd_<command>(self, ...):'
affects: all
gotcharun_cmd expects an instance of CliCmd, not the class itself. Passing the class will result in AttributeError.
fix
Use 'run_cmd(MyCli())' not 'run_cmd(MyCli)'
affects: all
Upgrade
Version history
0.1.5latest on PyPI · released Jun 19, 2020
Audit
Dependencies
prompt_toolkitrequiredCore dependency for CLI interface
Agent activity
32 hits · last 30 days
node
26
OpenAI (training)
1
Resources
aiocmd — pip install aiocmd · libregistry