{"id":26798,"library":"beaupy","title":"beaupy","description":"A library for building interactive terminal user interfaces (TUIs) in Python. Current version 3.11.0, supports Python 3.7.8 to <4.0.0. Released under MIT license. Active development with frequent releases.","status":"active","version":"3.11.0","language":"python","source_language":"en","source_url":"https://github.com/petereon/beaupy","tags":["tui","terminal","interactive","cli","beaupy"],"install":[{"cmd":"pip install beaupy","lang":"bash","label":"Install beaupy"}],"dependencies":[{"reason":"Used for console styling and output","package":"rich","optional":false},{"reason":"Used for terminal cursor control","package":"cursor","optional":false}],"imports":[{"note":"Avoid star imports; use specific functions like beaupy.confirm()","wrong":"from beaupy import *","symbol":"beaupy","correct":"import beaupy"}],"quickstart":{"code":"import beaupy\n\nname = beaupy.prompt(\"What is your name?\")\nprint(f\"Hello, {name}!\")\n\nif beaupy.confirm(\"Continue?\"):\n    print(\"Continuing...\")\n","lang":"python","description":"Ask for user input and confirmation using beaupy."},"warnings":[{"fix":"Use `beaupy.keys` for key handling or set environment variable `BEAUPY_RAWMODE=0` to disable raw mode.","message":"Some functions like `select` and `select_multiple` do not work correctly in certain terminals if the terminal is not in raw mode. Ensure your terminal supports raw input.","severity":"gotcha","affected_versions":"<3.11.0"},{"fix":"Use `beaupy.prompt(..., validator=int)` or `beaupy.prompt(..., validator=float)` instead.","message":"The `beaupy.prompt_int` and `beaupy.prompt_float` functions are deprecated in favor of `beaupy.prompt` with type validation.","severity":"deprecated","affected_versions":">=3.8.0"},{"fix":"Update code: `result = beaupy.select(options)` instead of `(result, index) = beaupy.select(options)`.","message":"In version 3.0.0, the internal refactoring moved several functions. `beaupy.select` now returns the selected item directly instead of a tuple.","severity":"breaking","affected_versions":">=3.0.0"}],"env_vars":null,"last_verified":"2026-05-01T00:00:00.000Z","next_check":"2026-07-30T00:00:00.000Z","problems":[{"fix":"Use `beaupy.prompt('Enter number:', validator=int)` instead.","cause":"prompt_int was removed in beaupy 3.8.0+.","error":"ImportError: cannot import name 'prompt_int' from 'beaupy'"},{"fix":"Ensure you pass a list of options: `beaupy.select(['a', 'b', 'c'])`.","cause":"Incorrect usage: `beaupy.select` expects a list, not a string.","error":"TypeError: 'str' object is not callable"}],"ecosystem":"pypi","meta_description":null,"install_score":null,"install_tag":null,"quickstart_score":null,"quickstart_tag":null}