Registry / http-networking / pansi
library2024.11.0pypypiunverified

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.

pip install pansi
INSTALL
IMPORT
SIG · PANSI
P
pansi
http-networkingpythonv2024.11.0
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.

Console
from pansi import Console
from pansi import Console

Create a Console instance and use writeln to output styled text with colors and styles.

from pansi import Console, Color, Style # Create a Console that writes to stdout (default) c = Console() # Write styled text c.writeln('Hello, World!', Color.GREEN) c.writeln('Bold and red', Style.BRIGHT, Color.RED)
Debug
Known issues
gotchaImport 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.
fix
Update imports to use the new package structure: 'from pansi import Console' instead of 'from pansi import pansi'.
affects: <2020.7.1
deprecatedThe 'six' dependency is likely to be removed in a future major release, breaking code that relies on implicit six imports.
fix
Do not rely on six being available as a transitive dependency; install six explicitly if needed.
affects: >=2020.7.2
Upgrade
Version history
2024.11.0latest on PyPI · released Nov 3, 2024
Audit
Dependencies
sixoptionalPython 2/3 compatibility (legacy dependency; may be dropped in future)
Agent activity
10 hits · last 30 days
node
10
Resources
pansi — pip install pansi · libregistry