- A simple package for printing and displaying characters one at a time as if you were typing.
- With
itypewriter
you can display values as if you were typing a text.
pip install itypewriter
itypewriter
can be used either via the functional approach or via the object oriented approach.
>>> import itypewriter
>>> itypewriter.itype("Hello Sentient Typing")
There is also the iprint
option
>>> from itypewriter import iprint
>>> iprint("Hello Sentient Typing")
>>> iprint("Hello",num_of_chars=3)
Each of these functions accepts optional params for customising the number of characters (num_of_chars
)
and the delay inbetween the appearance of characters (delay
).
>>> from itypewriter import iprint
>>> iprint("Hello Sentient Typing",delay=0.2)
>>> from itypewriter import TypeText
>>> docx = """Some wonderful text"""
>>> tt = TypeText(docx,num_of_chars=1)
>>> tt.iprint()