Registry / qprompt

qprompt

JSON →
library0.16.3pypypi✓ verified 82d ago

A Python library for quick CLI user prompts, input, and menus. Current version 0.16.3, last released in 2021. Maintenance mode with no recent activity.

pip install qprompt
INSTALL
IMPORT
SIG · QPROMPT
Q
qprompt
pythonv0.16.3
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.

Menu
from qprompt import Menu
from qprompt import prompt
ask
from qprompt import ask
from qprompt import prompt
alert
from qprompt import alert
from qprompt import prompt

Simple text prompt example.

from qprompt import prompt name = prompt('Enter your name: ') print(f'Hello, {name}!')
Debug
Known issues
gotchaThe library is in maintenance mode; last release 2021-11-19. No known breaking changes in recent versions.
fix
Consider using a more modern alternative like questionary or click.
affects: >=0.16.0
gotchaprompt() strips trailing newline from input; be aware when handling empty input.
fix
Use prompt() and handle empty string explicitly.
affects: all
deprecatedOld submodule imports like from qprompt.menu import Menu may break; all classes are re-exported at package level since 0.16.0.
fix
Use 'from qprompt import Menu' instead.
affects: <0.16.0
Upgrade
Version history
0.16.3latest on PyPI · released Nov 20, 2021
Audit
Dependencies

No dependency data recorded yet.

Agent activity
6 hits · last 30 days
node
6
Resources
qprompt — pip install qprompt · libregistry