Library for scrambled printing in terminal
Project description
scrmbl
Library and CLI for "scrambled" printing in terminal.
Have you ever wanted your text to look like some corny action movie?
Requirements
- Tested on Python >= 3.5
Install
CLI
pip3 install --user scrmbl
Library
Using pip in a virtualenv.
pip install scrmbl
Using Poetry:
poetry add scrmbl
Using Pipenv:
pipenv install scrmbl
Usage
Refer to the gif to see the effect
CLI
Usage: scrmbl [OPTIONS] [MESSAGE]
Scrmbl print the given message.
Options:
-s, --speed FLOAT Time in seconds between prints. Default: 0.05
-i, --iterations INTEGER Number of iterations per character. Default: 2
-c, --charset FILE Set of chars to scramble.
--version Show the version and exit.
--help Show this message and exit.
Can also read from stdin.
ls -lrtha | scrmbl
Library
>>> import scrmbl
>>> scrmbl.echo('09:30pm, Washington, NSA HEADQUARTERS')
'09:30pm, Washington, NSA HEADQUARTERS'
# handle multiline
>>> scrmbl.echo('09:30pm, Washington\nNSA HEADQUARTERS')
'02:56am, New-York'
'FBI HEADQUARTERS'
# custom settings:
# charset = String of characters to scramble with
# speed = Time in seconds between prints
# iterations = number of iterations before printing the final character
>>> scrmbl.echo('NSA OFFICE', charset='ABCDefg/-', speed=0.2, iterations=6)
'CIA OFFICE'
Thanks
Special thanks for contributing:
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-1.0.0.tar.gz
(3.9 kB
view details)
Built Distribution
File details
Details for the file scrmbl-1.0.0.tar.gz
.
File metadata
- Download URL: scrmbl-1.0.0.tar.gz
- Upload date:
- Size: 3.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.19.1 setuptools/40.4.3 requests-toolbelt/0.8.0 tqdm/4.26.0 CPython/3.6.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 69f01ef99d6e072936ef2dd2cad4a00db0c30dbcf5999456ecfd9bdc374f451d |
|
MD5 | b356068ad8e0837d2f04329dd8658886 |
|
BLAKE2b-256 | e9ceab259d27025e6a07164094d51ef399b3934b62afeabe6aa9eafa6c493bee |
File details
Details for the file scrmbl-1.0.0-py3-none-any.whl
.
File metadata
- Download URL: scrmbl-1.0.0-py3-none-any.whl
- Upload date:
- Size: 6.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.19.1 setuptools/40.4.3 requests-toolbelt/0.8.0 tqdm/4.26.0 CPython/3.6.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 62e9eb0f2c1a29ad44e4d492baa4ea26de4613105f3e9b0c5567168662f19b78 |
|
MD5 | dc09c6758ca9af972bb0e59d17ab8908 |
|
BLAKE2b-256 | d7a6e9d094c956d3f452719580547dd252b83c681dc2fd91ef894f0b722d8a8e |