Registry / web-framework / consolekit

consolekit

JSON →
library1.13.0pypypiunverified

consolekit is a collection of utilities for Click, providing additional decorators, formatting helpers, and input/output features. Current version is 1.13.0, supports Python >=3.7. Actively maintained.

pip install consolekit
INSTALL
IMPORT
SIG · CONSOLEKIT
C
consolekit
web-frameworkpythonv1.13.0
Install
2.1s avg
Import
Disk
20MB
Pass rate
10/ 10
Env Coverage10 / 10
glibc
3.93.13
musl
3.93.13
Install & Compatibility
Where this runs
tested against v1.13.0 · 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 · 21.5MB
glibc
py 3.103.95 runs
installs and imports cleanly · install 2.1s · import 0.000s · 22MB
20MB installed
● package 20MB
Code
Verified usage

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

command
from consolekit import command
from consolekit import command
click_command
from consolekit import click_command
options
from consolekit import options

Basic example: define a click command using consolekit's @command, use Colour for colored output.

from consolekit import command, Colour @command() def greet(name: str): print(f"{Colour.green('Hello')}, {name}!") if __name__ == '__main__': greet()
consolekit --version
Debug
Known issues
breakingIn v1.0, many imports were reorganized. Symbols previously under submodules (e.g., consolekit.decorators.command) now must be imported from consolekit top-level. Direct submodule imports may break.
fix
Use from consolekit import command instead of from consolekit.decorators import command.
affects: >=1.0.0,<2.0.0
deprecatedThe consolekit.decorators module is deprecated; all decorators are now re-exported from the main package.
fix
Import decorators from consolekit directly.
affects: >=1.0.0
gotchaThe @command decorator from consolekit expects the function to return a click.Command. If you mix consolekit.option with native click.option, argument ordering may differ.
fix
Use consolekit.option consistently within a consolekit.command-decorated function.
affects: all
gotchaColour class uses ANSI escape sequences; ensure the output stream supports colors (e.g., not redirected to a file). Use colour.is_enabled() to check.
fix
Call Colour.is_enabled() before applying colors or use Colour.strip() to remove colors.
affects: all
Upgrade
Version history
1.13.0latest on PyPI · released Feb 19, 2026
Audit
Dependencies
clickrequiredcore dependency for CLI utilities
domdf-python-toolsrequiredused for string and typing helpers
Agent activity
8 hits · last 30 days
node
6
Amazon
1
OpenAI (training)
1
Resources
consolekit — pip install consolekit · libregistry