Dictionary H5 — a package that enables the seamless manipulation of HDF5 files by treating them like traditional dictionaries.
-
Concerned about losing your data in case of a kernel crash?
DH5has a save_on_edit method to ensure your data is always saved. -
Need to update a single element in an array without a full re-save? No problem –
DH5only updates the changes you make. -
Want to save tricky data like strings, mixed object arrays, or even functions, which can be challenging with
h5py?DH5simplifies the process of saving a wide variety of object types.
Give dh5 a try and streamline your data management.
Install
pip install dh5
Installation in dev mode
pip install -e .[dev] or python setup.py develop
Usage
# Save {'a': 5} to `somedata.h5`
>>> sd = DH5('somedata.h5', 'w')
>>> sd['a'] = 5
>>> sd.save()
# Open 'somedata.h5' in read mode
>>> sd_read = DH5('somedata.h5', 'r')
>>> sd_read['a'] # access data as an item
5
>>> sd_read.a # access data as an attribute
5
# Open 'somedata.h5' in append mode. Allows to add data to existing file.
>>> sd_append = DH5('somedata.h5', 'a')
>>> sd_append['b'] = 6
>>> sd_append.save()
# In the end, `samedata.h5` contains {'a': 5, 'b': 6}
>>> sd_read = DH5('somedata.h5', 'r')
>>> sd_read['a'], sd_read['b']
(5, 6)
To see more look at the documentation
Metadata
Release files for dh5 0.8.1
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 |
|---|---|---|---|---|
| dh5-0.8.1.tar.gz | 27.6 kB | Without provenance | Details for dh5-0.8.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| dh5-0.8.1-py3-none-any.whl | Python 3 | none | any | Details for dh5-0.8.1-py3-none-any.whl |
Total release size: 54.8 kB
Release files / dh5-0.8.1.tar.gz
| Download URL | dh5-0.8.1.tar.gz |
|---|---|
| Size | 27.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
bdb83b2381482e753d31a7caf858eba81a9220407ec5e0835e8c81526bdee3c6
|
|
BLAKE2b-256 checksum How to use checksums |
e2414e3a8e065e49d4b42781d84e45468b2c48fc487587c8b7970606cfb0f62d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.12.4
|
Release files / dh5-0.8.1-py3-none-any.whl
| Download URL | dh5-0.8.1-py3-none-any.whl |
|---|---|
| Size | 27.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
522f0657a05dc276695fad38f1cf6c07ae6e03c8f0d81bd387987b1fc6b2e331
|
|
BLAKE2b-256 checksum How to use checksums |
c0a5ac7a06c80ac17e8f9e9a2b7a9a0f917f08aa52ad8d0dc4df07eae0d8096c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.12.4
|
Security for dh5 0.8.1
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.