Skip to main content
Join the official 2019 Python Developers SurveyStart the survey!

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?

demo gif

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


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 1.0.0
Filename, size File type Python version Upload date Hashes
Filename, size scrmbl-1.0.0-py3-none-any.whl (6.4 kB) File type Wheel Python version py3 Upload date Hashes View hashes
Filename, size scrmbl-1.0.0.tar.gz (3.9 kB) File type Source Python version None Upload date Hashes View hashes

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page