click-shell
An extension to click that easily turns your click app into a shell utility
Decision gist · record as of 2026-08-14
Yes, if you have a click app and want to add interactive shell mode with minimal effort. The package is stable, has low install friction, and is actively maintained. The main caveat is that the last release was in 2021—verify compatibility with your Python version before relying on it for new projects.AI-flagged interpretation of the facts on this page — verify before relying
Before you install
- Low friction: single runtime dependency (click) and a pure-Python wheel.
- Maintenance is active with recent commits, though the last release was in 2021.
License · maintenance · safety
BSD (permissive) — BSD license is permissive; you can use, modify, and distribute this package with minimal restrictions.
last release 2021-06-27 (1874 days) · last repo commit 2026-04-13 · 95 stars
0 known vulnerabilities (OSV.dev, 2026-08-14) · 101,297 downloads/mo, #12,948 on PyPI
Alternatives
Verify before relying
from click_shell import shell
@shell(prompt='my-app > ', intro='Starting my app...')
def my_app():
pass
@my_app.command()
def testcommand():
print('testcommand is running')
if __name__ == '__main__':
my_app()- Whether command completion works across all supported Python versions (2.7, 3.6–3.9 listed in classifiers).
- Current compatibility with modern Python 3.10+ versions, given the latest release was in 2021.
What it is and what it does
click-shell is a decorator that wraps click command groups to provide an interactive shell interface instead of a one-shot CLI. When you run your app with no arguments, it enters a persistent shell prompt where users can type commands repeatedly; if arguments are passed, it behaves like a normal click app. The shell includes command completion built on Python's cmd module, adapted to work with click's command structure.
The package is designed for developers who want to turn existing click applications into interactive utilities with minimal code changes—typically just swapping the @click.group decorator for @click_shell.shell. It's useful when you want users to run multiple commands in a session without restarting the process each time.
Use it for
- Convert a CLI tool into an interactive shell so users can run multiple commands without restarting.
- Add command completion to a click app for better user experience in shell mode.
- Build a REPL-like interface for administrative or utility tools built with click.
- Create an interactive application shell for data processing or system management tasks.
- Provide both one-shot CLI and interactive shell modes from the same click command group.
Worth the install?
AI-flagged interpretation of the facts on this page. Verify before relying on it.
Yes, if you have a click app and want to add interactive shell mode with minimal effort.
The package is stable, has low install friction, and is actively maintained. The main caveat is that the last release was in 2021—verify compatibility with your Python version before relying on it for new projects.
Install
click-shell on PyPI
Before you install
Low friction: single runtime dependency (click) and a pure-Python wheel. Maintenance is active with recent commits, though the last release was in 2021.
License in practice
BSD license is permissive; you can use, modify, and distribute this package with minimal restrictions.
Quickstart
from click_shell import shell
@shell(prompt='my-app > ', intro='Starting my app...')
def my_app():
pass
@my_app.command()
def testcommand():
print('testcommand is running')
if __name__ == '__main__':
my_app()
Verify before relying
- Whether command completion works across all supported Python versions (2.7, 3.6–3.9 listed in classifiers).
- Current compatibility with modern Python 3.10+ versions, given the latest release was in 2021.
Package facts
| License | BSD permissive |
| Python support | Not specified |
| Install friction | Low. Pure-Python wheel |
| Runtime dependencies | 1 packageclick |
| Maintenance | Actively maintained 1,874 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 101,297 / month, #12,948 on PyPI 30-day window, as of 2026-08-14 |
| Known vulnerabilities | None known OSV.dev, checked 2026-08-14 |
| Classifiers | Development Status :: 5 - Production/StableIntended Audience :: DevelopersLicense :: OSI Approved :: BSD LicenseOperating System :: OS IndependentProgramming Language :: PythonProgramming Language :: Python :: 2Programming Language :: Python :: 2.7Programming Language :: Python :: 3Programming Language :: Python :: 3.6Programming Language :: Python :: 3.7Programming Language :: Python :: 3.8Programming Language :: Python :: 3.9Topic :: Software Development :: User InterfacesTopic :: System :: ShellsTopic :: Utilities |
Evidence: click_shell-2.1-py2.py3-none-any.whl
Tags
Let your AI agent find packages like this
Example. Real query, live index.
You found this page by searching. An agent finds it by wishing: SkillFed indexes 14,416 PyPI packages by what they can do, searchable in plain language.
wish › “interactive shell for click apps”
- click-shellConverts a click command-line app into an interactive shell with…
- click-replAdds an interactive REPL mode to Click command-line applications,…
- flask-shell-ipythonReplaces Flask's default shell command with an IPython-powered…
Give your agent the search over MCP, or paste the wish link into any chat.
More Utilities packages
Converts domain names between Unicode and ASCII-compatible encoding (Punycode) according to IDNA 2008 and Unicode Technical Standard 46, with security validation and broader script coverage than the standard library.
Install it if you work with internationalized domain names, need to validate domains, or use HTTP clients that depend on it transitively.
Detects and normalizes text encoding from unknown or ambiguous sources, supporting all IANA character sets that Python's core library provides codecs for, with the ability to register custom codecs.
Setuptools is a Python build backend and package management tool that handles building, distributing, and installing Python packages, including support for C/C++ extension modules.
Pluggy provides a plugin system that lets you define hook specifications and register implementations to be called in sequence, enabling extensible Python applications without tight coupling.
Install it if you're building an extensible application or framework.
Pygments is a syntax highlighter that colorizes source code and text in over 500 languages and formats, outputting to HTML, LaTeX, RTF, SVG, images, or ANSI terminal sequences.
Install it if you need to display or transform source code.
Six provides utility functions to write Python code that runs on both Python 2.7 and Python 3.3+, smoothing over language differences between the two versions.
See also click-repl · cmd2 · click-didyoumean · click-aliases · click-default-group · click-log · click-help-colors · trogon · sphinx-click