spongemock


Namespongemock JSON
Version 1.0.0 PyPI version JSON
download
home_pagehttps://github.com/nkrim/spongemock
SummaryMock some text like spongebob would. mOCk SoMe TexT lIKe SpONGebOb wOuLd.
upload_time2022-12-19 21:30:51
maintainer
docs_urlNone
authorNoah Krim
requires_python
licenseMIT License
keywords spongemock spongebob squarepants meme mock text random
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            spongemock
##########
.. line-block::
	Me: Mock some text like spongebob would.
	You: mOCk SoMe TexT lIKe SpONGebOb wOuLd.

.. image:: http://pixel.nymag.com/imgs/daily/vulture/2017/05/16/16-spongebob-explainer.w710.h473.2x.jpg
	:alt: 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 <https://github.com/dgw>`_ for their contributions.

            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/nkrim/spongemock",
    "name": "spongemock",
    "maintainer": "",
    "docs_url": null,
    "requires_python": "",
    "maintainer_email": "",
    "keywords": "spongemock spongebob squarepants meme mock text random",
    "author": "Noah Krim",
    "author_email": "nkrim62@gmail.com",
    "download_url": "https://files.pythonhosted.org/packages/50/f3/11b09b5f8ef96fb71fcbcd782997e81ebdf17fe6d5f438763d74968fea3b/spongemock-1.0.0.tar.gz",
    "platform": null,
    "description": "spongemock\n##########\n.. line-block::\n\tMe: Mock some text like spongebob would.\n\tYou: mOCk SoMe TexT lIKe SpONGebOb wOuLd.\n\n.. image:: http://pixel.nymag.com/imgs/daily/vulture/2017/05/16/16-spongebob-explainer.w710.h473.2x.jpg\n\t:alt: spongemock\n\n\nHow to Install\n==============\n``pip install spongemock``\n\nor (for python3 specifically)\n\n``pip3 install spongemock``\n\n\nHow To Use\n==========\n``spongemock [-h] [-c] [-b BIAS] [-s SEED | -S STRSEED] text [text ...]``\n\npositional arguments\n--------------------\n``text`` - the text to mock. ThE tExT tO mOCk.\n\noptional arguments\n------------------\n``-h``, ``--help`` - show this help message and exit\n\n``-c``, ``--copy`` - copy the mocked text to the clipboard.\n \n``-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``.\n\n``-s SEED``, ``--seed SEED`` - seed for random number generator. Can be any number or string (numbers are parsed).\n\n``-S STRSEED``, ``--strseed STRSEED`` - seed for random number generator. Does not attempt to parse the string to a number.\n\n\nUse as a Library\n----------------\n``from spongemock import spongemock``\n\nfor use as ``spongemock.mock()``, or\n\n``from spongemock.spongemock import mock``\n\nPass the ``text``, and optional ``diversity_bias`` or ``random_seed`` keyword arguments, to the ``mock()`` function.\n\n\nContributors\n------------\nA big thanks to `dgw <https://github.com/dgw>`_ for their contributions.\n",
    "bugtrack_url": null,
    "license": "MIT License",
    "summary": "Mock some text like spongebob would. mOCk SoMe TexT lIKe SpONGebOb wOuLd.",
    "version": "1.0.0",
    "split_keywords": [
        "spongemock",
        "spongebob",
        "squarepants",
        "meme",
        "mock",
        "text",
        "random"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "md5": "caa54f79a1b33e2e739fbb2ed9897f9f",
                "sha256": "a2149006d54aeeb82ec3f76c5f46371a12fb520499087b31d4df329d2591e9f8"
            },
            "downloads": -1,
            "filename": "spongemock-1.0.0-py2.py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "caa54f79a1b33e2e739fbb2ed9897f9f",
            "packagetype": "bdist_wheel",
            "python_version": "py2.py3",
            "requires_python": null,
            "size": 7213,
            "upload_time": "2022-12-19T21:30:49",
            "upload_time_iso_8601": "2022-12-19T21:30:49.952006Z",
            "url": "https://files.pythonhosted.org/packages/a3/33/871ad998a9d1b4414d8e832441fc0d85751eeda1724aa993b040894745cc/spongemock-1.0.0-py2.py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "md5": "840f672537d997eea5fcae025f31af2a",
                "sha256": "af609bbd149701d6f57c0264e9eb98db204c5d4b0a806e09c75991a47e8f65fb"
            },
            "downloads": -1,
            "filename": "spongemock-1.0.0.tar.gz",
            "has_sig": false,
            "md5_digest": "840f672537d997eea5fcae025f31af2a",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": null,
            "size": 4435,
            "upload_time": "2022-12-19T21:30:51",
            "upload_time_iso_8601": "2022-12-19T21:30:51.187295Z",
            "url": "https://files.pythonhosted.org/packages/50/f3/11b09b5f8ef96fb71fcbcd782997e81ebdf17fe6d5f438763d74968fea3b/spongemock-1.0.0.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2022-12-19 21:30:51",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "github_user": "nkrim",
    "github_project": "spongemock",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": false,
    "lcname": "spongemock"
}
        
Elapsed time: 0.02189s