Registry / serialization / click-prompt

click-prompt

JSON →
library0.7.1pypypi✓ verified 81d ago

Click-prompt provides enhanced interactive prompts for the Click library, offering styled input, confirmation, and selection prompts with color and validation. Current version 0.7.1, released March 2024, with occasional updates.

pip install click-prompt
INSTALL
IMPORT
SIG · CLICK-PROMPT
C
click-prompt
serializationpythonv0.7.1
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

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

AutoCompleteArgument
from click_prompt import AutoCompleteArgument
from click_prompt import Prompt
ChoiceArgument
from click_prompt import ChoiceArgument
ConfirmArgument
from click_prompt import ConfirmArgument

Basic usage: create a Prompt instance and call .ask() to get input.

from click_prompt import Prompt name = Prompt('Enter your name', default='World').ask() print(f'Hello, {name}!')
Debug
Known issues
gotchaThe Prompt class is not imported from 'click'. It must be imported from 'click_prompt'.
fix
Use 'from click_prompt import Prompt'.
affects: all
deprecatedIn version 0.6.0, the API changed: 'prompt()' function was replaced by the 'Prompt' class. Old code using 'prompt()' will break.
fix
Use 'Prompt(...).ask()' instead of 'prompt(...)'.
affects: >=0.6.0
gotchaIf click is not installed, importing click_prompt will raise an ImportError because click is a dependency.
fix
Install both: 'pip install click click-prompt'.
affects: all
Upgrade
Version history
0.7.1latest on PyPI · released Dec 22, 2025
Audit
Dependencies

No dependency data recorded yet.

Agent activity
13 hits · last 30 days
node
10
Amazon
1
OpenAI (training)
1
Resources
click-prompt — pip install click-prompt · libregistry