Immutable, hashable Counter for Python (inspired by Python Issue #40411)
Project description
FrozenCounter is a lightweight, immutable wrapper around Python's collections.Counter that adds hashability. This allows you to use frequency counts as dictionary keys, making it perfect for grouping anagrams, finding duplicate patterns, or any scenario where you need to use counted data as a map key.
This package provides the functionality requested in Python Issue #40411 and frozen collection.Counter #84591, which proposed adding a frozen, hashable version of collections.Counter to the Python standard library.
The proposal was postponed as the use cases were considered too specialized for stdlib inclusion. This package makes that functionality available for those who need it.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file frozencounter-0.1.0.tar.gz.
File metadata
- Download URL: frozencounter-0.1.0.tar.gz
- Upload date:
- Size: 1.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c7260de2a22f7475c205364ea4fa81660af29e0a9f3d601bc969789d70f7f7dc
|
|
| MD5 |
62405fcb210f63319950e0156c1c346d
|
|
| BLAKE2b-256 |
f72982ad343e37458845f2f893c75ad38611238a5af5b0577c9d5513f78b2971
|
File details
Details for the file frozencounter-0.1.0-py3-none-any.whl.
File metadata
- Download URL: frozencounter-0.1.0-py3-none-any.whl
- Upload date:
- Size: 2.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
cbb4992702092b3d4b400e93045f28108262d7ab3e917a450aad090863fcb2b2
|
|
| MD5 |
c1070cb89434cb0ff4aa7c26a6f8b1a1
|
|
| BLAKE2b-256 |
a7b92a96062eff7747718e28e61f93ad82d43c45e94b617d79e5ae37b5019844
|