Skip to main content

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

Project description

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

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.9.tar.gz (4.0 kB view details)

Uploaded Source

Built Distribution

snail_print-0.1.9-py3-none-any.whl (4.2 kB view details)

Uploaded Python 3

File details

Details for the file snail_print-0.1.9.tar.gz.

File metadata

  • Download URL: snail_print-0.1.9.tar.gz
  • Upload date:
  • Size: 4.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.1.0 CPython/3.10.4 Linux/5.13.0-1025-azure

File hashes

Hashes for snail_print-0.1.9.tar.gz
Algorithm Hash digest
SHA256 e1200635da16ad41612039496c11d99e12403d17731fafaf5154a695bb80c788
MD5 10c4aece7fb8874bdc23dbeb9f7be40f
BLAKE2b-256 640549dfdebe12e687280ba0d14606112870658c75f3773f90473bb308deb7e1

See more details on using hashes here.

File details

Details for the file snail_print-0.1.9-py3-none-any.whl.

File metadata

  • Download URL: snail_print-0.1.9-py3-none-any.whl
  • Upload date:
  • Size: 4.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.1.0 CPython/3.10.4 Linux/5.13.0-1025-azure

File hashes

Hashes for snail_print-0.1.9-py3-none-any.whl
Algorithm Hash digest
SHA256 6454893a326d2445bc595a8614162d2d4798be4aab3a4a87b3ed5b9598edbfde
MD5 4c9622be7a64f1275ec266370d4d9ab1
BLAKE2b-256 b9c6d1967acef98d38a2e0d1be30a6b051de5bc93a01595bc28b6f20aa935961

See more details on using hashes here.

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