poopcount


Namepoopcount JSON
Version 1.0 PyPI version JSON
download
home_pagehttps://github.com/wimglenn/poopcount
SummaryAdd a 'poopcount' attribute to the str type
upload_time2023-08-04 03:26:18
maintainer
docs_urlNone
authorWim Glenn
requires_python
licenseMIT
keywords
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            Poopcount
=========

``int`` has a `popcount <https://docs.python.org/3/library/stdtypes.html#int.bit_count>`_ method, but why should numbers have all the fun?
This package adds a ``poopcount`` attribute on strings, which contains the (integer) amount of poop in the string.

Installation:
-------------

.. code-block:: bash

   pip install poopcount

Usage:
------

>>> "hello world".poopcount
0
>>> "💩".poopcount
1
>>> "💩".join("012345").poopcount
5
>>> s = "holy 💩, this one's 💩really 💩💩crappy💩💩💩"
>>> (s * 100).poopcount
700


            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/wimglenn/poopcount",
    "name": "poopcount",
    "maintainer": "",
    "docs_url": null,
    "requires_python": "",
    "maintainer_email": "",
    "keywords": "",
    "author": "Wim Glenn",
    "author_email": "hey@wimglenn.com",
    "download_url": "",
    "platform": null,
    "description": "Poopcount\n=========\n\n``int`` has a `popcount <https://docs.python.org/3/library/stdtypes.html#int.bit_count>`_ method, but why should numbers have all the fun?\nThis package adds a ``poopcount`` attribute on strings, which contains the (integer) amount of poop in the string.\n\nInstallation:\n-------------\n\n.. code-block:: bash\n\n   pip install poopcount\n\nUsage:\n------\n\n>>> \"hello world\".poopcount\n0\n>>> \"\ud83d\udca9\".poopcount\n1\n>>> \"\ud83d\udca9\".join(\"012345\").poopcount\n5\n>>> s = \"holy \ud83d\udca9, this one's \ud83d\udca9really \ud83d\udca9\ud83d\udca9crappy\ud83d\udca9\ud83d\udca9\ud83d\udca9\"\n>>> (s * 100).poopcount\n700\n\n",
    "bugtrack_url": null,
    "license": "MIT",
    "summary": "Add a 'poopcount' attribute to the str type",
    "version": "1.0",
    "project_urls": {
        "Homepage": "https://github.com/wimglenn/poopcount"
    },
    "split_keywords": [],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "1f7fb14361bd97e3f1a6cb59509da23753ab7c68e222c401b708992e8f540b22",
                "md5": "4f60811ca4b4fc70bdb6870448b1e240",
                "sha256": "a55427f733df78d8fa4796ef2695e1844e68b2c0ccbef91230a0e8544423148d"
            },
            "downloads": -1,
            "filename": "poopcount-1.0-py2.py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "4f60811ca4b4fc70bdb6870448b1e240",
            "packagetype": "bdist_wheel",
            "python_version": "py2.py3",
            "requires_python": null,
            "size": 1586,
            "upload_time": "2023-08-04T03:26:18",
            "upload_time_iso_8601": "2023-08-04T03:26:18.831128Z",
            "url": "https://files.pythonhosted.org/packages/1f/7f/b14361bd97e3f1a6cb59509da23753ab7c68e222c401b708992e8f540b22/poopcount-1.0-py2.py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2023-08-04 03:26:18",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "wimglenn",
    "github_project": "poopcount",
    "github_not_found": true,
    "lcname": "poopcount"
}
        
Elapsed time: 0.18787s