Tiny utility that prints colorful strings one character at a time.
Project description
wicked_print
Tiny non-blocking "typewriter" and colorful printing for Python — render text character by character without slowing your code.
Install
pip install wicked_print
Usage
Basic
from wicked_print import wicked_print
wicked_print('Hello', 'world!', sep=', ', end='!\n')
wicked_print('Processing', perform_logging=True, print_interval=0.05)
wicked_print('Success', color='#ff0058') # colour on TTYs
API Reference
from wicked_print import wicked_print, wicked_print_flush, configure_wicked_print
wicked_print(*objects, end='\n', sep=' ', perform_logging=False, print_interval=0.015, color=None)
*objects(Any): values to render.end(str): terminator appended after the text.sep(str): inserted between each object.perform_logging(bool): emit the rendered text vialogging.infowhenTrue.print_interval(float): per-character delay in seconds.color(str | None): named or hex colour applied on TTYs (e.g.'red','#FF6600').
wicked_print_flush(timeout=None)
timeout(float | None): seconds to wait for the queue to empty.
configure_wicked_print(max_queue=None)
max_queue(int | None): positive integer cap for queued messages (Noneremoves the cap).
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
wicked_print-0.2.0.tar.gz
(7.5 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file wicked_print-0.2.0.tar.gz.
File metadata
- Download URL: wicked_print-0.2.0.tar.gz
- Upload date:
- Size: 7.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8033d73193cd3245d66c4ed61308e8b1446ef308bcd825d254ba8862518ffaa9
|
|
| MD5 |
93776ba522c047ed4db40ede908e9832
|
|
| BLAKE2b-256 |
93c5cc152baff6884ac7bbb0f6619e85ede8bdd3c75807cf3b3262b5a2fb2f0e
|
File details
Details for the file wicked_print-0.2.0-py3-none-any.whl.
File metadata
- Download URL: wicked_print-0.2.0-py3-none-any.whl
- Upload date:
- Size: 6.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d4bbadf28386caaa14703761367491e4a34699109d897463edaa70d94e31f495
|
|
| MD5 |
223f543180199a1c7ca120c67237963e
|
|
| BLAKE2b-256 |
d8baea814548e2a297ac84acc2d0f529f66238a4e71c586312b5816859b973de
|