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 hashes)

Uploaded Python 2 Python 3

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