Skip to main content

iTypewriter - print text a character at a time,like typewriting.

Project description

iTypeWriter

  • 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.

Installation

pip install itypewriter

Usage

itypewriter can be used either via the functional approach or via the object oriented approach.

Via Functional 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).

Specifying the Delay Time
>>> from itypewriter import iprint
>>> iprint("Hello Sentient Typing",delay=0.2)

OOP Approach

>>> from itypewriter import TypeText
>>> docx = """Some wonderful text"""
>>> tt = TypeText(docx,num_of_chars=1)
>>> tt.iprint()

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

itypewriter-0.0.1.tar.gz (3.5 kB view hashes)

Uploaded Source

Built Distribution

itypewriter-0.0.1-py3-none-any.whl (3.6 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page