Registry / http-networking / pystyle

pystyle

JSON →
library2.9pypypi✓ verified 86d ago

PyStyle is a Python library for styling terminal text with colors, gradients, patterns, and effects (e.g., bold, underline). It provides an intuitive API for cross-platform terminal ANSI color output, with support for custom color sequences and animations. The current version is 2.9, with sporadic releases.

pip install pystyle
INSTALL
IMPORT
SIG · PYSTYLE
P
pystyle
http-networkingpythonv2.9
Install
1.5s avg
Import
—
Disk
16MB
Pass rate
10/ 10
Env Coverage10 / 10
glibc
3.9–3.13
musl
3.9–3.13
Install & Compatibility
Where this runs
tested against v2.9 · pip install
no network on importno background threads
Install × environment matrix
Each cell = how many times install + import succeeded across repeated harness runs. Partial = flaky.
glibc = Debian/Ubuntu slim · musl = Alpine Linux
musl
py 3.10–3.95 runs
installs and imports cleanly · install 0.0s · import 0.000s · 17.9MB
glibc
py 3.10–3.95 runs
installs and imports cleanly · install 1.5s · import 0.000s · 18MB
16MB installed
● package 16MB
Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

Center
✓ from pystyle import Center
✗ from pystyle import Center
Anime
✓ from pystyle import Anime
✗ from pystyle import Anime
Colors
✓ from pystyle import Colors
✗ from pystyle import Colors

Prints a string with a blue-to-cyan gradient effect.

from pystyle import Colors, Write Write.Print('Hello, PyStyle!', Colors.blue_to_cyan, interval=0.05)
Debug
Known issues
gotchaCalling Write.Print() without passing a color may raise an error or not style output. Always provide a color or gradient.
fix
Use Write.Print('text', Colors.blue) or Write.Input('prompt', Colors.red_to_yellow)
affects: all
gotchaThe 'Center.XCenter' and similar methods rely on terminal width, which may be inaccurate in some IDEs or subprocesses, causing misalignment.
fix
Set terminal width explicitly or use a fallback: Center.XCenter(text) might not work as expected in non-terminal environments.
affects: all
deprecatedThe 'System' module functions like System.Clear() may be removed in future versions; they rely on OS-specific commands.
fix
Use os.system('cls' if os.name == 'nt' else 'clear') directly for clearing the console.
affects: >=2.6
gotchaGradient effects (e.g., Colors.blue_to_cyan) may not display correctly on terminals that do not support true color (16.7 million colors).
fix
Check terminal color support or fall back to basic Colors.blue style.
affects: all
Upgrade
Version history
2.9latest on PyPI · released Nov 4, 2022
Audit
Dependencies

No dependency data recorded yet.

Agent activity
36 hits · last 30 days
node
30
Amazon
3
OpenAI (training)
1
Resources
pystyle — pip install pystyle · libregistry