cpp-zarr 1.0.0__cp313-cp313-win_amd64.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- cpp_zarr-1.0.0.dist-info/METADATA +12 -0
- cpp_zarr-1.0.0.dist-info/RECORD +11 -0
- cpp_zarr-1.0.0.dist-info/WHEEL +5 -0
- cpp_zarr-1.0.0.dist-info/top_level.txt +1 -0
- cppzarr/__init__.py +1 -0
- cppzarr/cppzarr.cp313-win_amd64.pyd +0 -0
- cppzarr/cppzarrwrappers.py +21 -0
- cppzarr/libcppZarr.dll +0 -0
- cppzarr/libgcc_s_seh-1.dll +0 -0
- cppzarr/libgomp-1.dll +0 -0
- cppzarr/libwinpthread-1.dll +0 -0
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
Metadata-Version: 2.1
|
|
2
|
+
Name: cpp-zarr
|
|
3
|
+
Version: 1.0.0
|
|
4
|
+
Summary: Python wrappers for cpp-zarr
|
|
5
|
+
Home-page: https://github.com/abcucberkeley/cpp-zarr
|
|
6
|
+
Author: Matthew Mueller
|
|
7
|
+
Author-email: matthewmueller@berkeley.edu
|
|
8
|
+
Classifier: Programming Language :: Python :: 3
|
|
9
|
+
Classifier: Operating System :: OS Independent
|
|
10
|
+
Requires-Python: >=3.8
|
|
11
|
+
Requires-Dist: numpy >=1.20
|
|
12
|
+
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
cppzarr/__init__.py,sha256=iUjiBJ8tj6nezgdrCiDK5Mr40Z9M6FsYnFAwmFKsV0I,50
|
|
2
|
+
cppzarr/cppzarr.cp313-win_amd64.pyd,sha256=uGYeA8dzUOHcU4P4QkEm2Q0IhXTH9MhhY7Y--jOpVLM,284160
|
|
3
|
+
cppzarr/cppzarrwrappers.py,sha256=3MvBf91eR86jJ6RnEt3CuRODrcw1ttYTq4s4NxdcF0Q,800
|
|
4
|
+
cppzarr/libcppZarr.dll,sha256=MzLYqJg_jdWyV-gdYqBMIXfDwHEtsW0OP_dmjD5yPyU,4808529
|
|
5
|
+
cppzarr/libgcc_s_seh-1.dll,sha256=1tpM-hmVu1L0DawZCrNtsdD1017zD3iDIb4NnEIWYBg,101376
|
|
6
|
+
cppzarr/libgomp-1.dll,sha256=tmxzZP1_KK79N2oKVtnp2bzXiB50EAxJhmr1yEh6Izw,258048
|
|
7
|
+
cppzarr/libwinpthread-1.dll,sha256=4BuOhf1nwrhh9k1MzH32B1m1iapBAACij6K4SiCJF1s,54784
|
|
8
|
+
cpp_zarr-1.0.0.dist-info/METADATA,sha256=9S4NLjo_tUPi0immp42xVEhe-rZrcSB-wkeEtt0juFg,368
|
|
9
|
+
cpp_zarr-1.0.0.dist-info/WHEEL,sha256=Cv3kb_0eCrY3e81u1ru5JoyzKr1NHqAjZwmUAZze2Cc,101
|
|
10
|
+
cpp_zarr-1.0.0.dist-info/top_level.txt,sha256=J0NyVJpD0yKL_9AbF7QpZJ5l4tmcudbQDRDlq3SLohs,8
|
|
11
|
+
cpp_zarr-1.0.0.dist-info/RECORD,,
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
cppzarr
|
cppzarr/__init__.py
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
from .cppzarrwrappers import read_zarr, write_zarr
|
|
Binary file
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import numpy as np
|
|
2
|
+
import os
|
|
3
|
+
from .cppzarr import pybind11_read_zarr, pybind11_write_zarr
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
def read_zarr(file_name, start_coords=None, end_coords=None):
|
|
7
|
+
if not os.path.isfile(os.path.join(file_name, '.zarray')):
|
|
8
|
+
raise Exception(f'{file_name} does not exist. The .zarray metadata file was not found')
|
|
9
|
+
if start_coords is None:
|
|
10
|
+
start_coords = [0, 0, 0]
|
|
11
|
+
if end_coords is None:
|
|
12
|
+
end_coords = [0, 0, 0]
|
|
13
|
+
im = pybind11_read_zarr(file_name, start_coords, end_coords)
|
|
14
|
+
return im
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
def write_zarr(file_name, data, cname='zstd', clevel=1, order='F', chunks=None, dimension_separator='.'):
|
|
18
|
+
if chunks is None:
|
|
19
|
+
chunks = [256, 256, 256]
|
|
20
|
+
pybind11_write_zarr(file_name, data, cname, clevel, order, chunks, dimension_separator)
|
|
21
|
+
return
|
cppzarr/libcppZarr.dll
ADDED
|
Binary file
|
|
Binary file
|
cppzarr/libgomp-1.dll
ADDED
|
Binary file
|
|
Binary file
|