yoki5
Overview
A simple wrapper around h5py to give easier interface around complex HDF5 files.
This library is designed to simplify the process of reading and writing HDF5 files by providing several methods that make it easy to add/remove datasets or groups.
Getting started
import numpy as np
from yoki5.base import Store
from scipy.sparse import csr_matrix
# Create a new HDF5 file
store = Store('path/to/file.h5')
store.add_data_to_group(
"group-1",
{"data": np.random.rand(100, 100)},
{"attribute": "value"},
compression="gzip",
chunks=(10, 10),
)
# Retrieve the array
array = store.get_array("group-1", "data")
# Add sparse matrix
store.add_data_to_group(
"group-2",
csr_matrix(np.random.randint(0, 255, (100, 100))),
{"attribute": "value"},
)
# Retrieve the data
matrix = store.get_sparse_array("group-2")
Contributing
Contributions are always welcome. Please feel free to submit PRs with new features, bug fixes, or documentation improvements.
git clone https://github.com/lukasz-migas/yoki5.git
pip install -e .[dev]
Metadata
Release files for yoki5 0.1.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 |
|---|---|---|---|---|
| yoki5-0.1.2.tar.gz | 17.4 kB | Without provenance | Details for yoki5-0.1.2.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| yoki5-0.1.2-py3-none-any.whl | Python 3 | none | any | Details for yoki5-0.1.2-py3-none-any.whl |
Total release size: 33.9 kB
Release files / yoki5-0.1.2.tar.gz
| Download URL | yoki5-0.1.2.tar.gz |
|---|---|
| Size | 17.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
ebf7e76434a65a6907a0873de9e884d97d1be50e12a1f7518b0d31606ecfc542
|
|
BLAKE2b-256 checksum How to use checksums |
2940a4ebd2a969fc7abbca553d042be23fdf1fd9397ece4d2eeafb24fd6b599e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.12.9
|
Release files / yoki5-0.1.2-py3-none-any.whl
| Download URL | yoki5-0.1.2-py3-none-any.whl |
|---|---|
| Size | 16.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
e9affbeb4d4ab7b50052f4f4645594089279ca62276ad6f3e266be8ed48ef52c
|
|
BLAKE2b-256 checksum How to use checksums |
c1c278e862e9e95559390b9e11a507629754654bb4ba45dedef75977d165bf45
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.12.9
|
Security for yoki5 0.1.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.