Library for scrambled printing in terminal
Project description
scrmbl
🕵️ Library for "scrambled" printing in terminal
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
Release history Release notifications | RSS feed
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)
Built Distribution
scrmbl-0.1.1-py3-none-any.whl
(4.7 kB
view hashes)