Skip to main content

Add a 'poopcount' attribute to the str type

Project description

int has a popcount 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:

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

Project details


Release history Release notifications | RSS feed

This version

1.0

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

poopcount-1.0-py2.py3-none-any.whl (1.6 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file poopcount-1.0-py2.py3-none-any.whl.

File metadata

  • Download URL: poopcount-1.0-py2.py3-none-any.whl
  • Upload date:
  • Size: 1.6 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.4

File hashes

Hashes for poopcount-1.0-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 a55427f733df78d8fa4796ef2695e1844e68b2c0ccbef91230a0e8544423148d
MD5 4f60811ca4b4fc70bdb6870448b1e240
BLAKE2b-256 1f7fb14361bd97e3f1a6cb59509da23753ab7c68e222c401b708992e8f540b22

See more details on using hashes here.

Supported by

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