$npx skillfedfor your agent

click-repl

REPL plugin for Click

Worth itPyPI UtilitiesReleased Jun 202352.2M downloads / moMITPure Python

Decision gist · record as of 2026-08-14

pure-Python wheel — click_repl-0.3.0-py3-none-any.whl
v0.3.0 · released 2023-06-15 · Python >=3.6 · 2 runtime deps: click, prompt-toolkit

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

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.
Same gist for agents: .md · .json

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.

Worth 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

LicenseMIT permissive
Python supportSupports the current Python release >=3.6
Install frictionLow. Pure-Python wheel
Runtime dependencies
2 packages
clickprompt-toolkit
MaintenanceActively maintained 1,156 days since the last release
Last repo commit
First released
Downloads52,241,755 / month, #561 on PyPI 30-day window, as of 2026-08-14
Known vulnerabilitiesNone 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

Capabilities
click repl interactive shellcommand line repl modeinteractive cli promptclick interactive commandsterminal repl for cli appsclick shell modeinteractive command prompt
Topics
click-plugininteractive-shellcli-repl

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

idna Worth it
PyPI · Python Modules · released Jun 2026

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.

BSD-3-Clausepure Python · 3.9+
1.8Bdownloads / mo
charset-normalizer Worth it
PyPI · Utilities · released Aug 2026

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.

permissive licensepure Python · 3.7+
1.7Bdownloads / mo
setuptools Worth it
PyPI · Python Modules · released Aug 2026

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.

MITpure Python · 3.10+
1.6Bdownloads / mo
pluggy Worth it
PyPI · Libraries · released May 2025

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.

MITpure Python · 3.9+aging
1.3Bdownloads / mo
Pygments Worth it
PyPI · Utilities · released Mar 2026

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.

BSD-2-Clausepure Python · 3.9+
1.3Bdownloads / mo
six With conditions
PyPI · Libraries · released Dec 2024

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.

MITpure Python
1.2Bdownloads / mo

See also click-shell · click-didyoumean · click-aliases · ptpython · click-plugins · click-help-colors · click-default-group · auto-click-auto · mkdocs-click · fire