No project description provided
Project description
hash-dict
Allow python dict use comparer.
Uou can easy to create your own comparers.
Usage
For example, for str ignore case:
from hash_dict import HashDict, StringComparers
data = HashDict(StringComparers.IgnoreCaseComparer)
data['a'] = 1
assert list(data) == ['a']
assert data['a'] == 1
assert data['A'] == 1
Unhashable
How about some strange unhashable object?
You can use AnyComparer
to handle 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
hash_dict-0.0.1.tar.gz
(2.8 kB
view hashes)
Built Distribution
Close
Hashes for hash_dict-0.0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | aafdf7491b5b029f7bd5625949961613c7ec313f7a32d772f03c74317c4cfd6c |
|
MD5 | e402be621f71ab377ee139ad4a250f9e |
|
BLAKE2b-256 | ef41f785f90fcd419411de0789d2d6396c73ba4774f8f9900775faf2ffdbf689 |