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_FACTORTo ensure consistency between different systems, the library multiplies floats with the
FLOAT_FACTORand then converts them to integers. -
FLOOR_SMALL_FLOATSIf the float is smaller than the inverse of the
FLOAT_FACTOR, it cannot be safely converted. IfFLOOR_SMALL_FLOATSis set to True, the library will round the float to zero. If set to False, it will throw an error in this case.
Code 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)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| dicthash-0.0.2.tar.gz | 4.7 kB | Without provenance | Details for dicthash-0.0.2.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| dicthash-0.0.2-py3-none-any.whl | Python 3 | none | any | Details for dicthash-0.0.2-py3-none-any.whl |
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 |
Security for dicthash 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.
To learn more about protecting yourself from malicious actors, visit our package security documentation.