click-repl
REPL plugin for Click
Decision gist · record as of 2026-08-14
Yes. Low install friction, permissive license, no known vulnerabilities, and active maintenance. Install if you have a Click application and want to offer users an interactive mode with minimal code—register_repl() is a one-line addition. Skip if your CLI is designed for one-shot execution or if you do not use Click.AI-flagged interpretation of the facts on this page — verify before relying
Before you install
- Requires Python 3.6 or later and an existing Click application to wrap.
- Low friction: pure Python wheel with only two runtime dependencies (click and prompt-toolkit).
- Actively maintained with recent commits; last release was 2023-06-15 but repository shows activity as of 2026-08-04.
License · maintenance · safety
MIT (permissive) — MIT license is permissive; you can use, modify, and distribute this package with minimal restrictions.
last release 2023-06-15 (1156 days) · last repo commit 2026-08-04 · 242 stars
0 known vulnerabilities (OSV.dev, 2026-08-14) · 52,241,755 downloads/mo, #561 on PyPI
Alternatives
Verify before relying
pip install click-repl
import click
from click_repl import register_repl
@click.group()
def cli():
pass
@cli.command()
def hello():
click.echo("Hello world!")
register_repl(cli)
cli()- Whether tab completion works with all Click command types or has limitations.
- Performance characteristics when ctx.obj caching is used with large datasets.
- Compatibility with Click versions beyond those tested in the fact sheet.
What it is and what it does
click-repl is a plugin that transforms a Click command-line application into an interactive REPL (read-eval-print loop). Instead of invoking your CLI tool repeatedly from the shell, users enter a persistent session where they can run subcommands interactively, with tab completion and command history. The REPL reuses the parent Click context between commands, so any state stored in ctx.obj persists across invocations—a significant performance advantage if your app maintains caches or other expensive objects.
The package wraps Click's command structure and integrates prompt-toolkit to provide the interactive prompt layer. You can use the simple `register_repl()` function to add a `repl` subcommand automatically, or call the `repl()` function directly for fine-grained control over prompt behavior, such as custom history storage or additional prompt-toolkit options.
Use it for
- Add an interactive mode to a CLI tool so users can run multiple commands without shell overhead or repeated startup.
- Build a database or API client CLI that benefits from persistent context and caching between queries.
- Create a development or admin tool where users need tab completion and command history within a single session.
- Implement a shell-like interface for a custom domain-specific language built on top of Click.
- Enable piped input to a REPL session (via stdin) while retaining interactive features when run directly.
Worth the install?
AI-flagged interpretation of the facts on this page. Verify before relying on it.
Yes.
Low install friction, permissive license, no known vulnerabilities, and active maintenance. Install if you have a Click application and want to offer users an interactive mode with minimal code—register_repl() is a one-line addition. Skip if your CLI is designed for one-shot execution or if you do not use Click.
Install
click-repl on PyPI
Before you install
Low friction: pure Python wheel with only two runtime dependencies (click and prompt-toolkit). Actively maintained with recent commits; last release was 2023-06-15 but repository shows activity as of 2026-08-04.
Requires Python 3.6 or later and an existing Click application to wrap.
License in practice
MIT license is permissive; you can use, modify, and distribute this package with minimal restrictions.
Quickstart
pip install click-repl
import click
from click_repl import register_repl
@click.group()
def cli():
pass
@cli.command()
def hello():
click.echo("Hello world!")
register_repl(cli)
cli()
Verify before relying
- Whether tab completion works with all Click command types or has limitations.
- Performance characteristics when ctx.obj caching is used with large datasets.
- Compatibility with Click versions beyond those tested in the fact sheet.
Package facts
| License | MIT permissive |
| Python support | Supports the current Python release >=3.6 |
| Install friction | Low. Pure-Python wheel |
| Runtime dependencies | 2 packagesclickprompt-toolkit |
| Maintenance | Actively maintained 1,156 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 52,241,755 / month, #561 on PyPI 30-day window, as of 2026-08-14 |
| Known vulnerabilities | None known OSV.dev, checked 2026-08-14 |
| Classifiers | Programming Language :: Python :: 3Programming Language :: Python :: 3 :: OnlyProgramming Language :: Python :: 3.10Programming Language :: Python :: 3.11Programming Language :: Python :: 3.6Programming Language :: Python :: 3.7Programming Language :: Python :: 3.8Programming Language :: Python :: 3.9 |
Evidence: click_repl-0.3.0-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 › “click repl interactive shell”
- click-replAdds an interactive REPL mode to Click command-line applications,…
- click-shellConverts a click command-line app into an interactive shell with…
- pgclipgcli is a command-line interface for PostgreSQL that provides…
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-shell · click-didyoumean · click-aliases · ptpython · click-plugins · click-help-colors · click-default-group · auto-click-auto · mkdocs-click · fire