Skip to main content

Mock some text like spongebob would. mOCk SoMe TexT lIKe SpONGebOb wOuLd.

Project description

Me: Mock some text like spongebob would.
You: mOCk SoMe TexT lIKe SpONGebOb wOuLd.
spongemock

How to Install

pip install spongemock

or (for python3 specifically)

pip3 install spongemock

How To Use

spongemock [-h] [-c] [-b BIAS] [-s SEED | -S STRSEED] text [text ...]

positional arguments

text - the text to mock. ThE tExT tO mOCk.

optional arguments

-h, --help - show this help message and exit

-c, --copy - copy the mocked text to the clipboard.

-b BIAS, --bias BIAS - this bias is used to successively increase the chance of swapping from the previously-mocked case. A value of 0 will ensure the chance is always 50/50, and a value of 1 will ensure that after the first random choice the capitalization perfectly oscilates. Default is 0.5.

-s SEED, --seed SEED - seed for random number generator. Can be any number or string (numbers are parsed).

-S STRSEED, --strseed STRSEED - seed for random number generator. Does not attempt to parse the string to a number.

Use as a Library

from spongemock import spongemock

for use as spongemock.mock(), or

from spongemock.spongemock import mock

Pass the text, and optional diversity_bias or random_seed keyword arguments, to the mock() function.

Contributors

A big thanks to dgw for their contributions.

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

spongemock-1.0.0.tar.gz (4.4 kB view details)

Uploaded Source

Built Distribution

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

spongemock-1.0.0-py2.py3-none-any.whl (7.2 kB view details)

Uploaded Python 2Python 3

File details

Details for the file spongemock-1.0.0.tar.gz.

File metadata

  • Download URL: spongemock-1.0.0.tar.gz
  • Upload date:
  • Size: 4.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.2

File hashes

Hashes for spongemock-1.0.0.tar.gz
Algorithm Hash digest
SHA256 af609bbd149701d6f57c0264e9eb98db204c5d4b0a806e09c75991a47e8f65fb
MD5 840f672537d997eea5fcae025f31af2a
BLAKE2b-256 50f311b09b5f8ef96fb71fcbcd782997e81ebdf17fe6d5f438763d74968fea3b

See more details on using hashes here.

File details

Details for the file spongemock-1.0.0-py2.py3-none-any.whl.

File metadata

  • Download URL: spongemock-1.0.0-py2.py3-none-any.whl
  • Upload date:
  • Size: 7.2 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.2

File hashes

Hashes for spongemock-1.0.0-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 a2149006d54aeeb82ec3f76c5f46371a12fb520499087b31d4df329d2591e9f8
MD5 caa54f79a1b33e2e739fbb2ed9897f9f
BLAKE2b-256 a333871ad998a9d1b4414d8e832441fc0d85751eeda1724aa993b040894745cc

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