An interface to read/write HDF5 files as if they where dictionaries.
Project description
H5dict
An interface to read/write HDF5 files as if they where dictionaries.
** WARNING: ** Version 0.2.0 of h5dict is NOT fully compatible with previous versions.
Instalation
h5dict can be installed with pip:
python -m pip install h5dict
Manual instalation
Clone the repository and run setup.py:
git clone https://gitlab.com/nanogennari/h5dict.git
cd h5dict
python setup.py install
Usage
Usage example:
import h5dict
import numpy as np
hdf5 = h5dict.File("file.hdf5", "r+")
hdf5["test_1"] = np.arange(100)
hdf5["test_2"] = {
"names": ["Alice", "Bob"],
"ages": [30, 25]
}
for keys in hdf5["test_2"]["names"].keys()
print(hdf5["test_2"]["names"][key])
hdf5.close()
Documentation
Documentation can be found here.
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
No source distribution files available for this release.See tutorial on generating distribution archives.
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file h5dict-0.2.3-py3-none-any.whl.
File metadata
- Download URL: h5dict-0.2.3-py3-none-any.whl
- Upload date:
- Size: 6.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.7.0 requests/2.25.1 setuptools/52.0.0.post20210125 requests-toolbelt/0.9.1 tqdm/4.56.0 CPython/3.7.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8f7f7916d91f6b6e755045ccd2007c582683b29fb16be990930f83d3bff72259
|
|
| MD5 |
7e5c24813ef6ea2bcbc3b271ecde7d1d
|
|
| BLAKE2b-256 |
42ed8742bc69e8d329a3c1887b454a4659c808f66cc62a44ad632135df1fb331
|