Skip to main content

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

Project description

Snail Print

GitHub release lint Code style: black

This library includes a print funtion that slowly shows the output in console in real time.

Getting started

Install the library with:

pip install -U snail_print

Usage

Presentation Demo Video

Gif 1: Example of use of this real life print library

Moreover, every console log in this video was made with the library and with this file

Documentation

snail_print

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

Parameters

  • objects: Can be any python object.

The object wicth will be printed slowly in real time.

  • delay: float or int, default 0.1.

The time between the addition in console of the next character.

  • sep: str, default " ".

In case of having mutiple arguments this may be separated by this string.

  • 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

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

snail_print-0.1.7.tar.gz (3.9 kB view hashes)

Uploaded Source

Built Distribution

snail_print-0.1.7-py3-none-any.whl (4.1 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