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.

Source Distribution

scrmbl-0.1.1.tar.gz (3.2 kB view hashes)

Uploaded Source

Built Distribution

scrmbl-0.1.1-py3-none-any.whl (4.7 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