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 details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

scrmbl-0.1.1-py3-none-any.whl (4.7 kB view details)

Uploaded Python 3

File details

Details for the file scrmbl-0.1.1.tar.gz.

File metadata

  • Download URL: scrmbl-0.1.1.tar.gz
  • Upload date:
  • Size: 3.2 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

Hashes for scrmbl-0.1.1.tar.gz
Algorithm Hash digest
SHA256 d261024ddc5b2e802e7d47c778546be76582d033677b3669bced87962187ecba
MD5 af767599bd171e317ea06f8b654fb554
BLAKE2b-256 4a88cc1c82641b415150c6617cafd442ddef80669c1b14d3ec5fb80f923ccf18

See more details on using hashes here.

File details

Details for the file scrmbl-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: scrmbl-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 4.7 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

Hashes for scrmbl-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 d585e3ca0fe03d828df39f4e30c5eb84b2b14396854a16e558d82909bfee3e2b
MD5 1696e5e2ded28d6bdbfec08a868ada7a
BLAKE2b-256 5e3228de0ce1ac140313f15ffb329da7bf35e998ed729399287ecc48d46b01e8

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page