Skip to main content

HashableDict

A hashable immutable dictionary for Python. It lets you store dictionaries in sets or as keys to other dictionaries.

Usage

from HashableDict import HashDict

alive_list  = [("Ada Lovelace", False),
               ("Douglas Adams", False),
               ("Sylvia Plath", False),
               ("Alan Turing", False),
               ("you and your dreams", True)]

alive_dict = HashDict(alive_list)

if alive_dict["you and your dreams"]:
    print("The dream is alive!")

dict_within_dict = {alive_dict: None}
print(dict_within_dict)

Metadata

Release files for HashableDict 0.3.0

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

Source distribution (sdist)

Source distribution for HashableDict 0.3.0
File Size Uploaded
HashableDict-0.3.0.tar.gz 3.1 kB Details

Built distribution (wheel)

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

Total release size: 7.4 kB

Release files / HashableDict-0.3.0.tar.gz

Download URL HashableDict-0.3.0.tar.gz
Size 3.1 kB
Tags Source
SHA-256 checksum
How to use checksums
7219fd51ce98df4ff9fb660b0487182b90ea739b1185308611c51c3fa5f2c350
BLAKE2b-256 checksum
How to use checksums
e14c58d3c02a6fab49c613df8f22c88c829928d1ee35172e7765134988549c1a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/47.1.0 requests-toolbelt/0.9.1 tqdm/4.48.2 CPython/3.8.5

Release files / HashableDict-0.3.0-py3-none-any.whl

Download URL HashableDict-0.3.0-py3-none-any.whl
Size 4.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
8b7967fa99a8a3717387656555aa68bd28d29fdac4a081312dec374178f60655
BLAKE2b-256 checksum
How to use checksums
579a7d92143125f1be5c4c29c5498873da7de4e6afbe305e573a9033a43a03da
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/47.1.0 requests-toolbelt/0.9.1 tqdm/4.48.2 CPython/3.8.5

Release history Release notifications | RSS feed

This release

0.3.0 This release

2 release files

0.2.0

2 release files

0.1.2

2 release files

0.1.1

1 release file

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