{"id":27223,"library":"pansi","title":"Pansi","description":"Text mode rendering library for Python, version 2024.11.0, released monthly. Provides styled console output with support for colors, attributes, and basic terminal control.","status":"active","version":"2024.11.0","language":"python","source_language":"en","source_url":"https://github.com/technige/pansi","tags":["terminal","console","colors","text-mode","styling"],"install":[{"cmd":"pip install pansi","lang":"bash","label":"Install from PyPI"}],"dependencies":[{"reason":"Python 2/3 compatibility (legacy dependency; may be dropped in future)","package":"six","optional":true}],"imports":[{"wrong":"from pansi import Console","symbol":"Console","correct":"from pansi import Console"}],"quickstart":{"code":"from pansi import Console, Color, Style\n\n# Create a Console that writes to stdout (default)\nc = Console()\n\n# Write styled text\nc.writeln('Hello, World!', Color.GREEN)\nc.writeln('Bold and red', Style.BRIGHT, Color.RED)","lang":"python","description":"Create a Console instance and use writeln to output styled text with colors and styles."},"warnings":[{"fix":"Update imports to use the new package structure: 'from pansi import Console' instead of 'from pansi import pansi'.","message":"Import paths changed between v2020.7.0 and v2020.7.1. Prior to v2020.7.1, pansi was a single module; afterward it became a package. Old imports like 'from pansi import pansi' will break.","severity":"gotcha","affected_versions":"<2020.7.1"},{"fix":"Do not rely on six being available as a transitive dependency; install six explicitly if needed.","message":"The 'six' dependency is likely to be removed in a future major release, breaking code that relies on implicit six imports.","severity":"deprecated","affected_versions":">=2020.7.2"}],"env_vars":null,"search_vec":"'2024.11.0':9 'attribut':20 'basic':22 'color':19,27 'consol':14,26 'control':24 'librari':5 'mode':3,30 'month':11 'output':15 'pansi':1 'provid':12 'python':7 'releas':10 'render':4 'style':13,31 'support':17 'termin':23,25 'text':2,29 'text-mod':28 'version':8","created_at":"2026-05-01T17:45:09.372580+00:00","updated_at":"2026-05-01T17:45:09.372580+00:00","problems":{"verify_error":"Traceback (most recent call last):\n  File \"<string>\", line 1, in <module>\nImportError: cannot import name 'Console' from 'pansi' (/tmp/tmpvimfbylm/venv/lib/python3.12/site-packages/pansi/__init__.py)"},"ecosystem":"pypi","meta_description":null,"install_score":null,"quickstart_score":null,"quickstart_tag":null,"pypi_latest":null,"cli_name":"","cli_version":null,"type":"library","homepage":null,"github":"https://github.com/technige/pansi","docs":null,"changelog":null,"pypi":"https://pypi.org/project/pansi/","npm":null,"openapi_spec":null,"status_page":null,"smithery":null,"categories":["http-networking"],"base_url":null,"auth_type":null,"provenance":{"verified_status":"import_fail","verified_at":"2026-07-03","last_verified":"2026-07-03","next_check":"2026-07-10","install_tag":null}}