Skip to main content

Generate portable md5 hashes from (arbitrarily nested) dictionaries.

Project description


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:


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


    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

Code status

Build Status Coverage Status

Project details

Download files

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

Files for dicthash, version 0.0.1
Filename, size File type Python version Upload date Hashes
Filename, size dicthash-0.0.1-py2.py3-none-any.whl (5.2 kB) File type Wheel Python version py2.py3 Upload date Hashes View
Filename, size dicthash-0.0.1.tar.gz (4.5 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring DigiCert DigiCert EV certificate Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page