Skip to content

A library that contains a print funtion that slowly shows the output in console in real time

License

Notifications You must be signed in to change notification settings

Baelfire18/snail_print

Repository files navigation

Snail Print

GitHub release codeclimate Tests & Linter Code style: black

This library includes a print funtion that slows down the showing of output in console, character by character, as though typed by a typewriter.

Getting started

Install the library with:

pip install -U snail_print

Usage

Presentation Demo Video

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)

Documentation

snail_print

function snail_print(*objects, delay=0.1, sep=" ", end="\n")

Parameters

  • objects: Can be any or even multiple python objects.

The objects whose string representation will be "snail printed".

  • delay: float or int, default 0.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.

Testing

Run the test suite with:

python -m unittest tests

Install local

To install it locally from the source code:

python setup.py develop

About

A library that contains a print funtion that slowly shows the output in console in real time

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages