skillfed

click-repl

REPL plugin for Click

click-repl Permissive license MIT Active 242 v0.3.0 released

Install

click-repl on PyPI

pip

pip install click-repl

uv

uv add click-repl

poetry

poetry add click-repl

Package facts

License MIT (permissive)
Python support supports the current Python release (>=3.6)
Install friction low — pure-Python wheel
Runtime dependencies 2 — click, prompt-toolkit
Maintenance actively maintained — 1,155 days since the last release
Last repo commit
First released
Popularity one of the top 1,000 most-downloaded packages on PyPI (30-day window, as of 2026-08-13)
Known vulnerabilities none known (OSV.dev, checked 2026-08-13)

Evidence: click_repl-0.3.0-py3-none-any.whl

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

About click-repl

from the package's own PyPI description — quoted content, verbatim

click-repl

Tests (image) License (image) Python - version (image) PyPi - version (image) wheels (image) PyPI - Status (image) PyPI - Downloads (image)

Installation

Installation is done via pip:

pip install click-repl

Usage

In your click app:

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()

In the shell:

$ my_app repl
> hello
Hello world!
> ^C
$ echo hello | my_app repl
Hello world!

Features not shown:

-...

Read as markdown · JSON record · Source repository · Homepage

AI interpretation — verify before relying

AI-generated interpretation of the package facts above; every digit, version, license, or vulnerability id it cites is grounded in the facts already shown on this page

Adds an interactive REPL (read-eval-print loop) mode to Click command-line applications, letting users run CLI commands interactively with tab completion, command history, and persistent context between invocations.

Low friction: pure Python wheel with only two runtime dependencies (click and prompt-toolkit). Actively maintained with recent commits; 1155 days since last release suggests stable API rather than abandonment.

MIT license permits unrestricted use, modification, and distribution in both open and closed projects with minimal obligations—only attribution required.

Usage

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()

Requires Python 3.6 or later and an existing Click application to wrap.

Verdict: Lightweight, well-maintained REPL layer for Click apps with no known vulnerabilities. MIT license and low install friction make it suitable for most projects. Best suited for CLI tools where interactive session state and command history add user value.

Needs verification

  • Whether prompt-toolkit's optional dependencies (e.g., for Windows support) are automatically pulled in or require separate installation.
  • Performance characteristics when handling large command histories or deeply nested Click command groups.
click repl interactive shellcommand line repl plugininteractive cli with historyclick interactive moderepl for click commandscommand prompt with completionpersistent cli session

Similar packages