A dictionary that de-duplicates values.
Project description
DeDuplicationDict
A dictionary that de-duplicates values.
A dictionary-like class that deduplicates values by storing them in a separate dictionary and replacing them with their corresponding hash values. This class is particularly useful for large dictionaries with repetitive entries, as it can save memory by storing values only once and substituting recurring values with their hash representations.
This class supports nested structures by automatically converting nested dictionaries into
DeDuplicationDict
instances. It also provides various conversion methods to convert between regular
dictionaries and DeDuplicationDict
instances.
Installation
pip install deduplicationdict
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
Hashes for deduplicationdict-1.0.0rc2.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | a021df0e0012e256f41165b054f5e389f772ef1ff505853a85aa59de00804325 |
|
MD5 | a46a4e294a3340a01d37fd5ba8f45268 |
|
BLAKE2b-256 | 0d87059ebd77a310e103241ed0e4b08f70f47fe4ba8d46cb39f92f34927fd94d |
Hashes for deduplicationdict-1.0.0rc2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b699edbf4fe368f4b7e82abad0f2d99f29fe17cebb7a8b554631eff4c3deef6b |
|
MD5 | 4e4cc93cfd7bb56cf8d59f970c4f8044 |
|
BLAKE2b-256 | c484cbb50df2af053169c9d860fdd1ff00f277393629cd6414a05cd26aa2692a |