Skip to main content

spongemock

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.

Metadata

Release files for spongemock 1.0.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for spongemock 1.0.0
File Size Uploaded
spongemock-1.0.0.tar.gz 4.4 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for spongemock 1.0.0
File Interpreter ABI Platform
spongemock-1.0.0-py2.py3-none-any.whl Python 3, Python 2 none any Details

Total release size: 11.6 kB

Release files / spongemock-1.0.0.tar.gz

Download URL spongemock-1.0.0.tar.gz
Size 4.4 kB
Tags Source
SHA-256 checksum
How to use checksums
af609bbd149701d6f57c0264e9eb98db204c5d4b0a806e09c75991a47e8f65fb
BLAKE2b-256 checksum
How to use checksums
50f311b09b5f8ef96fb71fcbcd782997e81ebdf17fe6d5f438763d74968fea3b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.10.2

Release files / spongemock-1.0.0-py2.py3-none-any.whl

Download URL spongemock-1.0.0-py2.py3-none-any.whl
Size 7.2 kB
Tags Python 2 Python 3
SHA-256 checksum
How to use checksums
a2149006d54aeeb82ec3f76c5f46371a12fb520499087b31d4df329d2591e9f8
BLAKE2b-256 checksum
How to use checksums
a333871ad998a9d1b4414d8e832441fc0d85751eeda1724aa993b040894745cc
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.10.2

Release history Release notifications | RSS feed

This release

1.0.0 This release

2 release files

0.3.4

2 release files

0.2.1

2 release files

0.2

2 release files

0.1.3

2 release files

0.1.2

2 release files

0.1.1

1 release file

0.1

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page