h5max handles storing and loading of scipy.sparse data structures in h5py file objects, which is not natively supported. It assumes a simple data structure where information of individual samples are stored according to the index they occupy within datasets.
🔗 Installation
pip install h5max
📖 User guide
import h5py
import h5max
import numpy as np
fh = h5py.File('my_data.h5', 'w')
a = np.zeros((100,100))
b = np.zeros((1000,50))
a[7,1] = 1
b[1,0] = 10
m_list = [a, b]
# store both a, b
h5max.store_sparse(fh, m_list, format='csr')
# load only a (index 0)
a_out = h5max.load_sparse(fh, 0, format='csr')
# load [a,b]
m_list_out = h5max.load_sparse(fh, [0, 1], format='csr', to_numpy=True)
# load all idxs in the data
m_list_out = h5max.load_sparse(fh, format='csr')
fh.close()
✔️ Package features
- Support for
csr,csc,coosparse types - Support for
bsr,dia,dok,lilsparse types - Support for overwriting
- Flexible data loading and saving (both as sparse and numpy arrays.)
- Automatic format detection
Metadata
Release files for h5max 0.3.4
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 |
|---|---|---|---|---|
| h5max-0.3.4.tar.gz | 47.8 kB | Without provenance | Details for h5max-0.3.4.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| h5max-0.3.4-py3-none-any.whl | Python 3 | none | any | Details for h5max-0.3.4-py3-none-any.whl |
Total release size: 51.7 kB
Release files / h5max-0.3.4.tar.gz
| Download URL | h5max-0.3.4.tar.gz |
|---|---|
| Size | 47.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
0cef2a58fafd4673f7745df0f3d043a6cd200cd4735e923d5ce3731c90675b6b
|
|
BLAKE2b-256 checksum How to use checksums |
2ac7d9a915bc3f364ca239b3f7af6972e208098c0f225d49145ffef9e6b3e4c2
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.13.7
|
Release files / h5max-0.3.4-py3-none-any.whl
| Download URL | h5max-0.3.4-py3-none-any.whl |
|---|---|
| Size | 3.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
15ebe3e2a34f9ebf87002c7f0dd8ac7072d3b5ff819b32b4d9ac3c8b658ae5eb
|
|
BLAKE2b-256 checksum How to use checksums |
66e150ea30b16a2d18f0e78c07a6aa00e35bd8029930aa61da8c2360b82678e4
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.13.7
|
Security for h5max 0.3.4
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.