Guacamole
raw JSON → 0.9.2 verified Fri May 01 auth: no python maintenance
A command-line tool library for Python providing a framework for building CLI applications with argument parsing and command dispatch. Current version 0.9.2, released in 2017. Low release cadence, effectively in maintenance mode.
pip install guacamole Common errors
error ImportError: No module named guacamole ↓
cause Python 3 environment; guacamole is Python 2 only.
fix
Use Python 2.7 or install an alternative.
error SyntaxError: Missing parentheses in call to 'print' ↓
cause Running Python 3 with library expecting Python 2 print syntax.
fix
Switch to Python 2.7 or rewrite using print() function if library is patched.
Warnings
gotcha The library is not actively maintained; last release in 2017. Expect no updates or fixes for modern Python versions. ↓
fix Consider alternatives like `click`, `argparse`, or `typer`.
deprecated Python 2 only; does not support Python 3. The `print` statement in examples will not work in Python 3. ↓
fix Use Python 2.7 or port code to a modern library.
gotcha Documentation is sparse; the README provides basic examples but no API reference. ↓
fix Refer to source code on GitHub for method signatures.
Imports
- Command
from guacamole import Command - Guacamole
from guacamole import Guacamole
Quickstart
from guacamole import Guacamole, Command
class HelloCommand(Command):
name = 'hello'
def run(self, args):
print('Hello, world!')
app = Guacamole()
app.register(HelloCommand())
app.run()