{"id":27320,"library":"qprompt","title":"Qprompt","description":"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.","status":"maintenance","version":"0.16.3","language":"python","source_language":"en","source_url":"https://github.com/jeffrimko/Qprompt","tags":["cli","prompts","menu","input"],"install":[{"cmd":"pip install qprompt","lang":"bash","label":"PyPI"}],"dependencies":[],"imports":[{"note":"Must import specific functions or classes; top-level module has no __init__.py exports.","wrong":"import qprompt","symbol":"prompt","correct":"from qprompt import prompt"},{"note":"Menu is exposed at package level in 0.16.x; submodule changed in earlier versions.","wrong":"from qprompt.menu import Menu","symbol":"Menu","correct":"from qprompt import Menu"}],"quickstart":{"code":"from qprompt import prompt\n\nname = prompt('Enter your name: ')\nprint(f'Hello, {name}!')\n","lang":"python","description":"Simple text prompt example."},"warnings":[{"fix":"Consider using a more modern alternative like questionary or click.","message":"The library is in maintenance mode; last release 2021-11-19. No known breaking changes in recent versions.","severity":"gotcha","affected_versions":">=0.16.0"},{"fix":"Use prompt() and handle empty string explicitly.","message":"prompt() strips trailing newline from input; be aware when handling empty input.","severity":"gotcha","affected_versions":"all"},{"fix":"Use 'from qprompt import Menu' instead.","message":"Old submodule imports like from qprompt.menu import Menu may break; all classes are re-exported at package level since 0.16.0.","severity":"deprecated","affected_versions":"<0.16.0"}],"env_vars":null,"last_verified":"2026-05-01T00:00:00.000Z","next_check":"2026-07-30T00:00:00.000Z","problems":[{"fix":"Use 'from qprompt import prompt' (note lowercase p).","cause":"qprompt does not export prompt directly; it's a submodule.","error":"ImportError: cannot import name 'prompt' from 'qprompt'"},{"fix":"Use 'from qprompt import menu' or 'from qprompt.menu import Menu'.","cause":"Trying to access submodule via dot notation without importing.","error":"AttributeError: module 'qprompt' has no attribute 'menu'"}],"ecosystem":"pypi","meta_description":null,"install_score":null,"install_tag":null,"quickstart_score":null,"quickstart_tag":null}