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.
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 Distribution
h5dict-v0.1.3.tar.gz
(4.7 kB
view hashes)
Built Distribution
h5dict-0.1.3-py3.7.egg
(10.8 kB
view hashes)