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)

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

HashableDict-0.3.0.tar.gz (3.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

HashableDict-0.3.0-py3-none-any.whl (4.3 kB view details)

Uploaded Python 3

File details

Details for the file HashableDict-0.3.0.tar.gz.

File metadata

  • Download URL: HashableDict-0.3.0.tar.gz
  • Upload date:
  • Size: 3.1 kB
  • Tags: Source
  • Uploaded using 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

File hashes

Hashes for HashableDict-0.3.0.tar.gz
Algorithm Hash digest
SHA256 7219fd51ce98df4ff9fb660b0487182b90ea739b1185308611c51c3fa5f2c350
MD5 52b933e743cf504563001bf74b3a3852
BLAKE2b-256 e14c58d3c02a6fab49c613df8f22c88c829928d1ee35172e7765134988549c1a

See more details on using hashes here.

File details

Details for the file HashableDict-0.3.0-py3-none-any.whl.

File metadata

  • Download URL: HashableDict-0.3.0-py3-none-any.whl
  • Upload date:
  • Size: 4.3 kB
  • Tags: Python 3
  • Uploaded using 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

File hashes

Hashes for HashableDict-0.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 8b7967fa99a8a3717387656555aa68bd28d29fdac4a081312dec374178f60655
MD5 21e7576201d5b4e09eb438a6e8d826a7
BLAKE2b-256 579a7d92143125f1be5c4c29c5498873da7de4e6afbe305e573a9033a43a03da

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

0.3.0 This release

2 files

0.2.0

2 files

0.1.2

2 files

0.1.1

1 file

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page