This library includes a print funtion that slows down the showing of output in console, character by character, as though typed by a typewriter.
Install the library with:
pip install -U snail_print
Gif 1: Example of use of this real time print library
Moreover, every console log in this video was made with the library and with this file
Copy and paste this code and try it yourself!
from snail_print import snail_print
snail_print("Hello World", delay=0.2)
function snail_print(*objects, delay=0.1, sep=" ", end="\n")
objects
: Can be any or even multiple python objects.
The objects whose string representation will be "snail printed".
delay
:float
orint
, default0.1
.
The delay, measured in seconds, between the printing of each character in object
.
sep
:str
, default" "
.
In case of having multiple arguments, one sep will be placed between each and the next.
end
:str
, default"\n"
.
The final character of the print. By default creates a new line.
Run the test suite with:
python -m unittest tests
To install it locally from the source code:
python setup.py develop