Skip to main content

dicthash

Generate portable md5 hashes from (arbitrarily nested) dictionaries. These dictionaries can contain arbitrary Python and NumPy data types. The goal of the module is to provide a hash function that can be safely used across different platforms. Its main use is to generate unique identifiers for parameter dictionaries used in parameter scans of neural network simulations.

It exposes a single function to the user dicthash.generate_hash_from_dict.

It exposes a single function to the user: generate_hash_from_dict. The user can set two global parameters:

  • FLOAT_FACTOR

    To ensure consistency between different systems, the library multiplies floats with the FLOAT_FACTOR and then converts them to integers.

  • FLOOR_SMALL_FLOATS

    If the float is smaller than the inverse of the FLOAT_FACTOR, it cannot be safely converted. If FLOOR_SMALL_FLOATS is set to True, the library will round the float to zero. If set to False, it will throw an error in this case.

Python2.7 Python3.6 PyPI version fury.io GPL license

Code status

Build Status Coverage Status

Metadata

Release files for dicthash 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 dicthash 0.0.2
File Size Uploaded
dicthash-0.0.2.tar.gz 4.7 kB Details

Built distribution (wheel)

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

Total release size: 10.0 kB

Release files / dicthash-0.0.2.tar.gz

Download URL dicthash-0.0.2.tar.gz
Size 4.7 kB
Tags Source
SHA-256 checksum
How to use checksums
30b71bd64101295053b082b3244870e6ca7dca561bdb8f3776c42c8c40cb4af4
BLAKE2b-256 checksum
How to use checksums
99414e8b11ac5c13cbb6f7f0f7a2792ffe24d0571b091ebc2eb94c68cdd76c5c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

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

Download URL dicthash-0.0.2-py3-none-any.whl
Size 5.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
84f9f6bd521d5c0a8a1b4eda4688634958d80a7e8d34c2a6c9a7f37ef0084281
BLAKE2b-256 checksum
How to use checksums
98746a2fa58978384bd188ecca481079aa2bdd8d56f9f0facf8a8ebf9add162c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release history Release notifications | RSS feed

This release

0.0.2 This release

2 release files

0.0.1

2 release files

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