Skip to main content

provides a convenient and efficient way to count the occurrences of items (hashable and unhashable)

pip install screwhashcounter

Tested against Windows 10 / Python 3.10 / Anaconda

Count the occurrences of items in a list, tuple and return a list of tuples with the item and its count.

Args:
	arg (list|tuple): The list|tuple containing items to be counted.

Returns:
	list[tuple]: A list of tuples where each tuple contains an item and its count.

Example:
	from screwhashcounter import countitems
	counted_items = countitems(
		["mississippi", [1, 2], [1, 2], {34, 4, 3}, {1: 2}, {1: 2}, None, 3]
	)
	print(counted_items)
	# Output: [('mississippi', 1), ([1, 2], 2), ({34, 3, 4}, 1), ({1: 2}, 2), (None, 1), (3, 1)]

Metadata

Release files for screwhashcounter 0.10

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

Source distribution (sdist)

Source distribution for screwhashcounter 0.10
File Size Uploaded Provenance Actions
screwhashcounter-0.10.tar.gz 3.1 kB Without provenance Details for screwhashcounter-0.10.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for screwhashcounter 0.10
File Interpreter ABI Platform Actions
screwhashcounter-0.10-py3-none-any.whl Python 3 none any Details for screwhashcounter-0.10-py3-none-any.whl

Total release size: 7.3 kB

Release files / screwhashcounter-0.10.tar.gz

Download URL screwhashcounter-0.10.tar.gz
Size 3.1 kB
Tags Source
SHA-256 checksum
How to use checksums
334feab6477938c1e2fe6aef0dabfa48159128b4305a93899d607396508c97e1
BLAKE2b-256 checksum
How to use checksums
854eef82543c6d2681f1697f8f4c4af3b04f2d19a023902ab371fd515b84085f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.10.10

Release files / screwhashcounter-0.10-py3-none-any.whl

Download URL screwhashcounter-0.10-py3-none-any.whl
Size 4.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
4df679deee8604323777d642c788de207689ce73e023afce7b89decdf463c1bd
BLAKE2b-256 checksum
How to use checksums
f76f73400e53dd5b8c23f34d045312c41b221599b5031df913eb96a3e2c65c1e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.10.10

Security for screwhashcounter 0.10

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.10 This release

2 release files No provenance

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