Skip to main content

hash-dict

GitHub Build Status PyPI

Allow python dict/set redefine hash and equals operations like csharp.

You are able 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 👍.

Metadata

Release files for hash-dict 0.0.2

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

Source distribution (sdist)

Source distribution for hash-dict 0.0.2
File Size Uploaded Provenance
hash_dict-0.0.2.tar.gz 2.9 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for hash-dict 0.0.2
File Interpreter ABI Platform
hash_dict-0.0.2-py3-none-any.whl Python 3 none any Details

Total release size: 8.4 kB

Release files / hash_dict-0.0.2.tar.gz

Download URL hash_dict-0.0.2.tar.gz
Size 2.9 kB
Tags Source
SHA-256 checksum
How to use checksums
9457f283fef6db5b09819ae98dadeaf7ce71180023a848357dc30ddbd0709ffd
BLAKE2b-256 checksum
How to use checksums
626d3a477ce056c587c59e012b157f887f214ffe8135ab216774d101bcb36bce
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.32.1 CPython/3.7.1

Release files / hash_dict-0.0.2-py3-none-any.whl

Download URL hash_dict-0.0.2-py3-none-any.whl
Size 5.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
d4604b109d5b185e0e26e0435502708315fbe8b41b5a34c79d97367e2297e512
BLAKE2b-256 checksum
How to use checksums
4fb8995478737f1c24fb454831969c50192b996cac43114fff7a803e8dd8b0ed
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.32.1 CPython/3.7.1

Security for hash-dict 0.0.2

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.

Release history Release notifications | RSS feed

This release

0.0.2 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