Skip to main content

Library for scrambled printing in terminal

Project description

scrmbl

🕵️ Library for "scrambled" printing in terminal

demo gif

Requirements

  • Tested on Python >= 3.5

Install

Using pip in a virtualenv.

pip install scrmbl

Using Poetry:

poetry add scrmbl

Using pipenv:

pipenv install scrmbl

Usage

>>> import scrmbl

# refer to the gif to see the effect
>>> scrmbl.echo('09:30pm, Washington, NSA HEADQUARTERS')
'09:30pm, Washington, NSA HEADQUARTERS'

# handle multiline
>>> scrmbl.echo('09:30pm, Washington\nNSA HEADQUARTERS')
'09:30pm, Washington'
'NSA HEADQUARTERS'

# custom settings:
# charset = List of characters to randomly iterate through
# speed = Milliseconds to wait between each iteration
# iterations = number of iterations before printing the final character
>>> scrmbl.echo('NSA OFFICE', charset=['N', 'S', 'A'], speed=0.2, iterations=6)
'NSA OFFICE'

# premade charsets:
# LETTERS_LOWER
# LETTERS_UPPER
# FIGURES
# SPECIALS
# LETTERS (LETTERS_LOWER + LETTERS_UPPER)
# ALPHANUMERICS (LETTERS + FIGURES)
# ALL (ALPHANUMERICS + SPECIALS)
>>> scrmbl.echo('NSA OFFICE', charset=scrmbl.charsets.LETTERS)
'NSA OFFICE'

Project details


Download files

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

Files for scrmbl, version 0.1.1
Filename, size File type Python version Upload date Hashes
Filename, size scrmbl-0.1.1.tar.gz (3.2 kB) File type Source Python version None Upload date Hashes View
Filename, size scrmbl-0.1.1-py3-none-any.whl (4.7 kB) File type Wheel Python version py3 Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Huawei Huawei PSF Sponsor Microsoft Microsoft PSF Sponsor NVIDIA NVIDIA PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page