pyboxen
raw JSON → 1.3.0 verified Fri May 01 auth: no python
Beautiful, customizable boxes in your terminal using Python. Current version 1.3.0 requires Python >=3.8. Actively maintained.
pip install pyboxen Common errors
error ImportError: cannot import name 'boxen' from 'pyboxen' ↓
cause Typo or incorrect import path (e.g., 'from pyboxen import box' instead of 'boxen').
fix
Use: from pyboxen import boxen
error TypeError: boxen() got an unexpected keyword argument 'style' ↓
cause Old API used 'style' parameter but was removed/changed.
fix
Check current API: use 'color' and other valid parameters. See documentation.
error ModuleNotFoundError: No module named 'rich' ↓
cause Missing dependency 'rich'.
fix
Install rich: pip install rich>=12.5.1
Warnings
gotcha Requires rich>=12.5.1, but older versions of rich (<13) may conflict with other packages. If you have rich v13+ installed, ensure compatibility. ↓
fix Upgrade to pyboxen >=1.2.0, which allows rich>=12.5.1 (including v13).
breaking Dropped support for Python <3.8 in v1.1.1. Code will break on Python 3.6 or 3.7. ↓
fix Use Python 3.8+ or pin pyboxen<1.1.1 if stuck on older Python.
deprecated Arguments 'box' and 'style' were changed in v1.0. Some older examples may use incorrect parameter names. ↓
fix Refer to current docs for correct parameter list: title, subtitle, color, etc.
Imports
- boxen
from pyboxen import boxen
Quickstart
from pyboxen import boxen
print(boxen("Hello, World!", title="Greeting", subtitle="Python", color="cyan"))