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.1.0.tar.gz
(7.1 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.1.0.tar.gz.
File metadata
- Download URL: wicked_print-0.1.0.tar.gz
- Upload date:
- Size: 7.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3f792d7a8adb566e873c459e3098a68c32afb86369c48c09c136d41cccfc62b5
|
|
| MD5 |
39e4622133d214ce455058f210b7df8f
|
|
| BLAKE2b-256 |
186cce7e1dadc78328c7905198c0dd2f2f7a4666c0c48160d48fd5c504280ff6
|
File details
Details for the file wicked_print-0.1.0-py3-none-any.whl.
File metadata
- Download URL: wicked_print-0.1.0-py3-none-any.whl
- Upload date:
- Size: 5.9 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 |
2dda502b825933bc2f29fdabc3ad3140a2eab1989b9836aa3db68270ec88eee6
|
|
| MD5 |
5c7b4c067ae2daf25dd41571ac1845dd
|
|
| BLAKE2b-256 |
44be053bae137a8374a083f3b8ecc780ba6b7bcd4266f07221f8a664fb7df44d
|