sferriol-zarr
sferriol-zarr is a module with new zarr storage class TarStore (only read-only).
It also has the create_store shortcut that returns the store corresponding to the specified url
Installation
pip install git+https://gitlab.in2p3.fr/sferriol-ip2i/sferriol-zarr.git
TarStore Usage
import zarr
import sferriol.zarr
# original zarr storage
dir_store = zarr.DirectoryStore('data/example.zarr')
z = zarr.create(store=dir_store, overwrite=True, shape=1000000, dtype='i4')
# convert it to tar file ('data/example.zarr.tar')
tar_fpath = sferriol.zarr.create_tar('data/example.zarr')
# now use TarStore
tar_store = sferriol.zarr.TarStore('data/example.zarr.tar')
tz = zarr.open(store=tar_store, mode='r')
tar_store.close() # don't forget to call this when you're done
# or in a with statement
with sferriol.zarr.TarStore('data/example.zarr.tar') as tar_store:
tz = zarr.open(store=tar_store, mode='r')
create_store Usage
from sferriol.zarr import create_store
# local storage
store = create_store('/.../my_data.zarr')
store = create_store('/.../my_data.zarr.tar')
store = create_store('/.../my_data.zarr.zip')
# xrootd storage
store = create_store('root://host:port///.../my_data.zarr')
store = create_store('root://host:port///.../my_data.zarr.tar')
store = create_store('root://host:port///.../my_data.zarr.zip')
Metadata
Release files for sferriol-zarr 0.4.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| sferriol_zarr-0.4.0-py3-none-any.whl | Python 3 | none | any | Details for sferriol_zarr-0.4.0-py3-none-any.whl |
Release files / sferriol_zarr-0.4.0-py3-none-any.whl
| Download URL | sferriol_zarr-0.4.0-py3-none-any.whl |
|---|---|
| Size | 4.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
a91c7f0e3c2befe4d9b3f34fe4d4f11652e88af700712153fabfeb599aad05da
|
|
BLAKE2b-256 checksum How to use checksums |
a6dcf4626cdf14c5df56e41e55f3a810b246336cc4758773ffe7977f8bb42ca8
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.13.5
|
Security for sferriol-zarr 0.4.0
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.