Skip to main content

yoki5

License PyPI Python Version CI codecov

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
cd yoki5
uv venv
uv pip install -e '.[dev]'
uv run --no-sync pytest

Build the source distribution and wheel with uv build. CI tests the built wheel on Python 3.10-3.14 and reuses the same distributions for tagged releases. Weekly runs also test prerelease dependencies.

Metadata

Release files for yoki5 0.1.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for yoki5 0.1.3
File Size Uploaded Provenance Actions
yoki5-0.1.3.tar.gz 20.5 kB Without provenance Details for yoki5-0.1.3.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for yoki5 0.1.3
File Interpreter ABI Platform Actions
yoki5-0.1.3-py3-none-any.whl Python 3 none any Details for yoki5-0.1.3-py3-none-any.whl

Total release size: 39.0 kB

Release files / yoki5-0.1.3.tar.gz

Download URL yoki5-0.1.3.tar.gz
Size 20.5 kB
Tags Source
SHA-256 checksum
How to use checksums
d64ba6d0a260ab3c72015257844a5c57126cf0ac700b81b96ebb5f94047a294d
BLAKE2b-256 checksum
How to use checksums
7502efa1a3384e632f6d9f53ef7f1b2fe092f57497eb70f1b20545be52a8daed
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.16

Release files / yoki5-0.1.3-py3-none-any.whl

Download URL yoki5-0.1.3-py3-none-any.whl
Size 18.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
c358e614e8ca84cfd2e300285e6531e0aaba82360a10faebb20c030b455c84ee
BLAKE2b-256 checksum
How to use checksums
4f249570fa596b998b2f8a4dfc27f3908f7bb6d14cbea8667af1e7073dac0939
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.16

Security for yoki5 0.1.3

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.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page