diff --git a/.github/workflows/client-sync-check.yml b/.github/workflows/client-sync-check.yml index ee567da..071fab2 100644 --- a/.github/workflows/client-sync-check.yml +++ b/.github/workflows/client-sync-check.yml @@ -36,10 +36,11 @@ jobs: uses: astral-sh/setup-uv@v5 with: version: "latest" + python-version: "3.12" - name: Install Python dependencies working-directory: dclimate-client-py - run: uv sync --extra dev --extra testing + run: uv sync --locked --extra dev --extra testing - name: Setup Node.js uses: actions/setup-node@v4 diff --git a/.github/workflows/pre-commit.yml b/.github/workflows/pre-commit.yml index d0707c1..77a0916 100644 --- a/.github/workflows/pre-commit.yml +++ b/.github/workflows/pre-commit.yml @@ -11,4 +11,6 @@ jobs: steps: - uses: actions/checkout@v4 - uses: actions/setup-python@v5 + with: + python-version: "3.12" - uses: pre-commit/action@v3.0.1 diff --git a/.github/workflows/python-app.yml b/.github/workflows/python-app.yml index 5b3102f..3cc7eb0 100644 --- a/.github/workflows/python-app.yml +++ b/.github/workflows/python-app.yml @@ -19,11 +19,26 @@ jobs: steps: - uses: actions/checkout@v4 - - name: Install IPFS - uses: ibnesayeed/setup-ipfs@c779340c110024feeb46579fef211c89332caf85 - with: - ipfs_version: ${{vars.IPFS_VERSION}} - run_daemon: true + - name: Install and start Kubo + working-directory: ${{ runner.temp }} + run: | + archive=kubo_v0.33.2_linux-amd64.tar.gz + checksum=9be2ba96fb313c5f85fb9539d1bbca3d0036f0bb2affff3879dc1ba485acbe17e22c7eb3cad88ed0420ea56ab739947ea26123c5ecd1d46445a83804308760fa + curl --fail --silent --show-error --location --retry 3 --max-time 60 \ + --output "$archive" "https://github.com/ipfs/kubo/releases/download/v0.33.2/$archive" + printf '%s %s\n' "$checksum" "$archive" | sha512sum --check + tar -xzf "$archive" kubo/ipfs + + export IPFS_PATH="$(mktemp -d)" + ./kubo/ipfs init + nohup ./kubo/ipfs daemon > kubo.log 2>&1 & + if ! curl --fail --silent --retry 20 --retry-delay 1 --retry-connrefused \ + --max-time 2 --request POST http://127.0.0.1:5001/api/v0/id > /dev/null; then + cat kubo.log + exit 1 + fi + echo "$RUNNER_TEMP/kubo" >> "$GITHUB_PATH" + echo "IPFS_PATH=$IPFS_PATH" >> "$GITHUB_ENV" - name: Swarm peering add to our IPFS Servers run: | @@ -35,9 +50,10 @@ jobs: uses: astral-sh/setup-uv@v5 with: version: "latest" + python-version: "3.12" - name: Install all dependencies - run: uv sync --extra dev --extra testing + run: uv sync --locked --extra dev --extra testing - name: Run pytest with coverage run: uv run pytest --cov=dclimate_client_py tests/ --cov-report=xml diff --git a/dclimate_client_py/geotemporal_data.py b/dclimate_client_py/geotemporal_data.py index d28e464..15d13b7 100644 --- a/dclimate_client_py/geotemporal_data.py +++ b/dclimate_client_py/geotemporal_data.py @@ -156,13 +156,17 @@ def forecast( 3D dataset with forecast hour added to time dimension """ if not {"forecast_reference_time", "step"}.issubset(self.data.coords): - raise errors.InvalidSelectionError("Forecasts are not available for this dataset") + raise errors.InvalidSelectionError( + "Forecasts are not available for this dataset" + ) try: requested = pd.Timestamp(forecast_reference_time) if requested.tzinfo is not None: requested = requested.tz_convert("UTC").tz_localize(None) requested = requested.to_datetime64() - indices = np.flatnonzero(self.data.forecast_reference_time.values == requested) + indices = np.flatnonzero( + self.data.forecast_reference_time.values == requested + ) if len(indices) == 0: raise ValueError("No exact forecast run") except (TypeError, ValueError, OverflowError) as exc: @@ -175,12 +179,25 @@ def forecast( leads = steps.values else: units = str(steps.attrs.get("units", "hours")).lower() - unit_map = {"d": "D", "day": "D", "days": "D", - "h": "h", "hour": "h", "hours": "h", - "m": "m", "min": "m", "minute": "m", "minutes": "m", - "s": "s", "second": "s", "seconds": "s"} + unit_map = { + "d": "D", + "day": "D", + "days": "D", + "h": "h", + "hour": "h", + "hours": "h", + "m": "m", + "min": "m", + "minute": "m", + "minutes": "m", + "s": "s", + "second": "s", + "seconds": "s", + } if units not in unit_map: - raise errors.InvalidSelectionError(f"Unsupported forecast step units: {units}") + raise errors.InvalidSelectionError( + f"Unsupported forecast step units: {units}" + ) leads = pd.to_timedelta(steps.values, unit=unit_map[units]).to_numpy() data = data.assign_coords(step=requested + leads).rename({"step": "time"}) return self._new(data) @@ -455,16 +472,26 @@ def polygons( # otherwise pass metre-valued positions to latitude/longitude tests. mask = gpd.GeoSeries(polygons_mask, crs=epsg_crs).to_crs(4326) if mask.empty or mask.is_empty.any() or mask.isna().any(): - raise errors.InvalidSelectionError("Polygon input must contain nonempty polygons") + raise errors.InvalidSelectionError( + "Polygon input must contain nonempty polygons" + ) for geometry in mask: - parts = list(geometry.geoms) if geometry.geom_type == "MultiPolygon" else [geometry] + parts = ( + list(geometry.geoms) + if geometry.geom_type == "MultiPolygon" + else [geometry] + ) for part in parts: if part.geom_type != "Polygon" or not part.is_valid: - raise errors.InvalidSelectionError("Polygon input must contain valid polygons") + raise errors.InvalidSelectionError( + "Polygon input must contain valid polygons" + ) for ring in [part.exterior, *part.interiors]: coordinates = np.asarray(ring.coords) if (np.abs(np.diff(coordinates[:, 0])) > 180).any(): - raise errors.InvalidSelectionError("Polygon crosses the antimeridian; split it first") + raise errors.InvalidSelectionError( + "Polygon crosses the antimeridian; split it first" + ) normalized_polygons = mask.array min_lon, min_lat, max_lon, max_lat = mask.total_bounds @@ -502,7 +529,9 @@ def polygons( inside = inside.isel(latitude=rows, longitude=columns) shaped_ds = box_ds.copy() - shaped_ds.attrs = {k: v for k, v in shaped_ds.attrs.items() if k != "polygon_fallback"} + shaped_ds.attrs = { + k: v for k, v in shaped_ds.attrs.items() if k != "polygon_fallback" + } for name, variable in box_ds.data_vars.items(): if "latitude" in variable.dims and "longitude" in variable.dims: shaped_ds[name] = variable.where(inside) @@ -606,7 +635,11 @@ def reduce_polygon_to_point( best_width = -1.0 point = None for geometry in polygons_mask: - parts = list(geometry.geoms) if geometry.geom_type == "MultiPolygon" else [geometry] + parts = ( + list(geometry.geoms) + if geometry.geom_type == "MultiPolygon" + else [geometry] + ) for polygon in parts: _, south, _, north = polygon.bounds latitude = (south + north) / 2 @@ -615,13 +648,18 @@ def reduce_polygon_to_point( positions = list(ring.coords) for (xi, yi), (xj, yj) in zip(positions, positions[1:]): if (yi > latitude) != (yj > latitude): - crossings.append(xi + (latitude - yi) * (xj - xi) / (yj - yi)) + crossings.append( + xi + (latitude - yi) * (xj - xi) / (yj - yi) + ) crossings.sort() for index in range(0, len(crossings) - 1, 2): width = crossings[index + 1] - crossings[index] if width > best_width: best_width = width - point = ((crossings[index] + crossings[index + 1]) / 2, latitude) + point = ( + (crossings[index] + crossings[index + 1]) / 2, + latitude, + ) if point is None: raise errors.InvalidSelectionError("Polygon has no interior point") longitude, latitude = point @@ -658,8 +696,6 @@ def spatial_aggregation( spatial_dims = [ dim for dim in self.data.dims if str(dim).lower() in _SPATIAL_DIMS ] - # Aggregate by the specified method across all time periods - aggregator = getattr(xr.Dataset, agg_method) targets = list(self.data.data_vars) if variables is None else variables unknown = set(targets) - set(self.data.data_vars) if unknown: @@ -670,11 +706,16 @@ def spatial_aggregation( dims = [dim for dim in variable.dims if dim in spatial_dims] if dims: finite = variable.where(np.isfinite(variable)) - reduced = getattr(finite, agg_method)(dim=dims, skipna=True, keep_attrs=True) + reduced = getattr(finite, agg_method)( + dim=dims, skipna=True, keep_attrs=True + ) result[name] = reduced.where(finite.count(dim=dims) > 0) # Rebuild so reduced spatial coordinates do not remain as unused dimensions. - return self._new(xr.Dataset({name: result[name] for name in result.data_vars}, - attrs=self.data.attrs)) + return self._new( + xr.Dataset( + {name: result[name] for name in result.data_vars}, attrs=self.data.attrs + ) + ) def temporal_aggregation( self, diff --git a/pyproject.toml b/pyproject.toml index 13146a8..d162de9 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -6,7 +6,7 @@ build-backend = "pdm.backend" [project] name = "dclimate-client-py" -version = "0.12.0" # Set a static version or handle it in versioning strategy +version = "0.13.0" # Set a static version or handle it in versioning strategy description = "Python client library for accessing dClimate weather and climate data" readme = "README.md" license = {text = "MIT"} @@ -26,14 +26,12 @@ classifiers = [ dependencies = [ "aiobotocore>=2.13.0", "aiohttp>=3.9.0", - "xarray>=2025.3.0", + "xarray>=2025.10.1", "rioxarray>=0.15.0", - "zarr>=3.0.8", - # numcodecs 0.16's zarr3 compatibility module requires zarr >=3.1.3, - # while py-hamt 3.x currently constrains zarr below 3.1. - "numcodecs[crc32c]>=0.14,<0.16", + "zarr>=3.1.3,<3.2", + "numcodecs[crc32c]>=0.16.6,<0.17", "numpy>=2.1.3", - "py_hamt>=3.6.0", + "py_hamt>=4.0.0", "dclimate-tabular-py>=0.4.0", "multiformats>=0.3.1", "geopandas>=1.0.0", diff --git a/tests/test_forecast_parity.py b/tests/test_forecast_parity.py index 150394b..b2935ac 100644 --- a/tests/test_forecast_parity.py +++ b/tests/test_forecast_parity.py @@ -7,18 +7,36 @@ def cube(): - return GeotemporalData(xr.Dataset({"value": (("forecast_reference_time", "step", "number"), - np.arange(6).reshape(2, 3, 1))}, coords={ - "forecast_reference_time": np.array(["2024-01-01T00", "2024-01-01T12"], dtype="datetime64[ns]"), - "step": ("step", [0, 6, 12], {"units": "hours"}), "number": [0]}), "forecast") + return GeotemporalData( + xr.Dataset( + { + "value": ( + ("forecast_reference_time", "step", "number"), + np.arange(6).reshape(2, 3, 1), + ) + }, + coords={ + "forecast_reference_time": np.array( + ["2024-01-01T00", "2024-01-01T12"], dtype="datetime64[ns]" + ), + "step": ("step", [0, 6, 12], {"units": "hours"}), + "number": [0], + }, + ), + "forecast", + ) def test_forecast_selects_exact_midnight_and_preserves_singleton_axes(): result = cube().forecast("2024-01-01").data assert result.value.dims == ("time", "number") assert result.value.values[:, 0].tolist() == [0, 1, 2] - np.testing.assert_array_equal(result.time.values, - np.array(["2024-01-01T00", "2024-01-01T06", "2024-01-01T12"], dtype="datetime64[ns]")) + np.testing.assert_array_equal( + result.time.values, + np.array( + ["2024-01-01T00", "2024-01-01T06", "2024-01-01T12"], dtype="datetime64[ns]" + ), + ) def test_missing_run_has_client_selection_error(): diff --git a/tests/test_polygon_selection.py b/tests/test_polygon_selection.py index a02327f..5f123a8 100644 --- a/tests/test_polygon_selection.py +++ b/tests/test_polygon_selection.py @@ -216,6 +216,10 @@ def test_spatial_variable_subset_and_point_count(): def test_fallback_chooses_widest_polygon_like_js(): - selected = _grid().polygons(_mask(box(10.1, 0.1, 10.2, 0.2), box(11.2, 1.1, 11.9, 1.2))).data + selected = ( + _grid() + .polygons(_mask(box(10.1, 0.1, 10.2, 0.2), box(11.2, 1.1, 11.9, 1.2))) + .data + ) assert selected.attrs["polygon_fallback"] == "nearest_cell" assert selected.value.values.tolist() == [12, 112, 212] diff --git a/tests/test_zarr_encryption_ipfs.py b/tests/test_zarr_encryption_ipfs.py index 7262510..ecd2391 100644 --- a/tests/test_zarr_encryption_ipfs.py +++ b/tests/test_zarr_encryption_ipfs.py @@ -8,9 +8,7 @@ import pytest import zarr import json - -# from zarr.codecs import BytesCodec -from numcodecs.zarr3 import Blosc +from zarr.codecs.numcodecs import Blosc from Crypto.Random import get_random_bytes @@ -128,6 +126,16 @@ def test_compute_encoded_size(): assert EncryptionCodec().compute_encoded_size(100, "RANDOM VALUE") == 140 +def test_encrypted_blosc_round_trip(random_zarr_dataset: tuple[str, xr.Dataset]): + zarr_path, expected_ds = random_zarr_dataset + + with xr.open_zarr(zarr_path, consolidated=False, chunks=None) as loaded_ds: + compressor, encryption = loaded_ds["temp"].encoding["compressors"] + assert isinstance(compressor, Blosc) + assert isinstance(encryption, EncryptionCodec) + xr.testing.assert_identical(loaded_ds, expected_ds) + + @pytest.mark.asyncio @pytest.mark.ipfs @pytest.mark.ipfs_rpc diff --git a/uv.lock b/uv.lock index d8b0838..73ba23f 100644 --- a/uv.lock +++ b/uv.lock @@ -677,7 +677,7 @@ wheels = [ [[package]] name = "dclimate-client-py" -version = "0.12.0" +version = "0.13.0" source = { editable = "." } dependencies = [ { name = "aiobotocore" }, @@ -727,12 +727,12 @@ requires-dist = [ { name = "httpx", specifier = ">=0.27.0" }, { name = "multiformats", specifier = ">=0.3.1" }, { name = "mypy", marker = "extra == 'testing'", specifier = ">=1.14" }, - { name = "numcodecs", extras = ["crc32c"], specifier = ">=0.14,<0.16" }, + { name = "numcodecs", extras = ["crc32c"], specifier = ">=0.16.6,<0.17" }, { name = "numpy", specifier = ">=2.1.3" }, { name = "opentelemetry-api", specifier = ">=1.30.0" }, { name = "pandas", specifier = ">=2.2.0" }, { name = "pre-commit", marker = "extra == 'dev'", specifier = ">=4.1.0" }, - { name = "py-hamt", specifier = ">=3.6.0" }, + { name = "py-hamt", specifier = ">=4.0.0" }, { name = "pycryptodome", specifier = ">=3.21.0" }, { name = "pystac", specifier = ">=1.10.0" }, { name = "pytest", marker = "extra == 'testing'" }, @@ -746,8 +746,8 @@ requires-dist = [ { name = "scipy", specifier = ">=1.12.0" }, { name = "shapely", specifier = ">=2.0.0" }, { name = "x402", extras = ["evm", "httpx"], specifier = ">=2.1.0" }, - { name = "xarray", specifier = ">=2025.3.0" }, - { name = "zarr", specifier = ">=3.0.8" }, + { name = "xarray", specifier = ">=2025.10.1" }, + { name = "zarr", specifier = ">=3.1.3,<3.2" }, ] provides-extras = ["testing", "dev", "examples"] @@ -768,18 +768,6 @@ wheels = [ { url = "https://files.pythonhosted.org/packages/53/1b/607964bf12d0da5dad4309a60457855e2425abf63adaff4a28472857ce4c/dclimate_tabular_py-0.4.0-py3-none-any.whl", hash = "sha256:74259dbb737ddf89b80327d24d4d368cacc89e64f097a109afcf88fe8108e06c", size = 60125, upload-time = "2026-09-23T18:34:27.643Z" }, ] -[[package]] -name = "deprecated" -version = "1.2.18" -source = { registry = "https://pypi.org/simple" } -dependencies = [ - { name = "wrapt" }, -] -sdist = { url = "https://files.pythonhosted.org/packages/98/97/06afe62762c9a8a86af0cfb7bfdab22a43ad17138b07af5b1a58442690a2/deprecated-1.2.18.tar.gz", hash = "sha256:422b6f6d859da6f2ef57857761bfb392480502a64c3028ca9bbe86085d72115d", size = 2928744, upload-time = "2025-01-27T10:46:25.7Z" } -wheels = [ - { url = "https://files.pythonhosted.org/packages/6e/c6/ac0b6c1e2d138f1002bcf799d330bd6d85084fece321e662a14223794041/Deprecated-1.2.18-py2.py3-none-any.whl", hash = "sha256:bd5011788200372a32418f888e326a09ff80d0214bd961147cfed01b5c018eec", size = 9998, upload-time = "2025-01-27T10:46:09.186Z" }, -] - [[package]] name = "distlib" version = "0.3.9" @@ -993,6 +981,34 @@ wheels = [ { url = "https://files.pythonhosted.org/packages/c4/64/7d344cfcef5efddf9cf32f59af7f855828e9d74b5f862eddf5bfd9f25323/geopandas-1.0.1-py3-none-any.whl", hash = "sha256:01e147d9420cc374d26f51fc23716ac307f32b49406e4bd8462c07e82ed1d3d6", size = 323587, upload-time = "2024-07-02T12:26:50.876Z" }, ] +[[package]] +name = "google-crc32c" +version = "1.9.0" +source = { registry = "https://pypi.org/simple" } +sdist = { url = "https://files.pythonhosted.org/packages/fa/25/9cb0c1c31c45b893eb8f11ae70b3f4309432d59b5acaebca5dbe791729a4/google_crc32c-1.9.0.tar.gz", hash = "sha256:7b8c84c3d159ab6817fe3f74e6e6cef099c3f95dcec3abc0d8afb1404642efbe", size = 14857, upload-time = "2026-09-24T21:39:32.067Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/e4/5d/0730e1b3a14d054d1466f2fec88dadf978509c749a3d96d8b069cc56d38a/google_crc32c-1.9.0-cp312-cp312-macosx_12_0_arm64.whl", hash = "sha256:53fdafef58e230d0c946ab5f8446d123d9f548230a73b29c8b41c9546f268bc1", size = 31961, upload-time = "2026-09-24T21:19:01.724Z" }, + { url = "https://files.pythonhosted.org/packages/dd/32/d085abaf2fd907121975b92245bb3480fb8be40c37d03f9d6c41857f84c3/google_crc32c-1.9.0-cp312-cp312-macosx_12_0_x86_64.whl", hash = "sha256:8b91f41645b15a720357183fa5716682ada441873e3c462c15f9714be36f146b", size = 31804, upload-time = "2026-09-24T21:22:25.81Z" }, + { url = "https://files.pythonhosted.org/packages/94/78/dd1935432337e5da7af391a6fc9f161c1c8e9b9002a402b9190135fe1b59/google_crc32c-1.9.0-cp312-cp312-manylinux2014_aarch64.manylinux_2_17_aarch64.whl", hash = "sha256:16865b477d7941712cb0e0aad8ad4815e984fb5fc16d3fdaef7d986e26e53c95", size = 37775, upload-time = "2026-09-24T21:38:09.249Z" }, + { url = "https://files.pythonhosted.org/packages/9e/43/9db03635bb10188d93dcbab9baa2a8670a0da4e868b4370cdbd98d65fed8/google_crc32c-1.9.0-cp312-cp312-manylinux2014_x86_64.manylinux_2_17_x86_64.whl", hash = "sha256:3abb18297d9ef0ab120531838be0e6d68c9fa876570e11c229c48f2edac23ce7", size = 36347, upload-time = "2026-09-24T21:38:10.141Z" }, + { url = "https://files.pythonhosted.org/packages/cf/eb/94dee516c846bd9382c3f566d8f8e5fb9e90599e45afeb697f9fc2533528/google_crc32c-1.9.0-cp312-cp312-win_amd64.whl", hash = "sha256:fb63a8d7fa2e95dcff1ca16af2f4d88b526fa5ff72d1696285884ac2d49b6963", size = 35097, upload-time = "2026-09-24T21:39:28.934Z" }, + { url = "https://files.pythonhosted.org/packages/3f/34/cb484e8b6174f130f8c6dc79c733a9dd8869b410ad6511fb6104c46b973a/google_crc32c-1.9.0-cp313-cp313-macosx_12_0_arm64.whl", hash = "sha256:f1dc17d987ddcc5eba12a7ce48f0eb93141dea236b170c1101151396edf2f0cf", size = 31960, upload-time = "2026-09-24T21:19:02.454Z" }, + { url = "https://files.pythonhosted.org/packages/af/25/3e8e567bd48448e225ea27318ccf2b94e05124e7b8b97b13eaec9e127199/google_crc32c-1.9.0-cp313-cp313-macosx_12_0_x86_64.whl", hash = "sha256:f894a2877650b56201d26a012a257b76d54a68834dc3913a93830ca8a047b075", size = 31803, upload-time = "2026-09-24T21:22:27.008Z" }, + { url = "https://files.pythonhosted.org/packages/f0/18/bee0dd59ae622482dc6463636c79e4bde7c954d061c859c9256362c9931a/google_crc32c-1.9.0-cp313-cp313-manylinux2014_aarch64.manylinux_2_17_aarch64.whl", hash = "sha256:4488f1553a9ab7e86cdedc833374a7e904031803b995dc0bd0be48c271fa6556", size = 37776, upload-time = "2026-09-24T21:38:11.056Z" }, + { url = "https://files.pythonhosted.org/packages/fd/b6/e76e80fed5f2558273c7839e622f98095c9b36c719c7147e38e3c055cb70/google_crc32c-1.9.0-cp313-cp313-manylinux2014_x86_64.manylinux_2_17_x86_64.whl", hash = "sha256:0568b17ed90ac596f29400d99e243fd0cc6276766183def888d1bf8d1dc13827", size = 36350, upload-time = "2026-09-24T21:38:12.138Z" }, + { url = "https://files.pythonhosted.org/packages/87/34/165542bfa99dfef91a76471cc48cce74b8ff4e295722896087ab2b8e8611/google_crc32c-1.9.0-cp313-cp313-win_amd64.whl", hash = "sha256:8583ec21d56b565d68ab2963cc7e21b3b271247c29b04286068255ef65f221bd", size = 35090, upload-time = "2026-09-24T21:39:29.764Z" }, + { url = "https://files.pythonhosted.org/packages/8f/eb/43ea41f4061a1cad87b2b6559c98e960e45bf551fe66f83d833b98aaf0c9/google_crc32c-1.9.0-cp314-cp314-macosx_12_0_arm64.whl", hash = "sha256:6a3b2c8a343c570ed8100a7627c20badfd92c6caa2067093a86be45af27f5b1b", size = 31963, upload-time = "2026-09-24T21:19:03.208Z" }, + { url = "https://files.pythonhosted.org/packages/45/d2/a968c0c29ccd2b0c980ff4f9e3f7035cee28c23a1c57541825cc8221858c/google_crc32c-1.9.0-cp314-cp314-macosx_12_0_x86_64.whl", hash = "sha256:13179f7e3282617923e957b8e54b8f9c3968030f48640a9f47fd7c5c38c4a215", size = 31805, upload-time = "2026-09-24T21:22:27.917Z" }, + { url = "https://files.pythonhosted.org/packages/03/73/388e493d6c3e252e37165d22efe5a1361f872a24425391b999822861b23a/google_crc32c-1.9.0-cp314-cp314-manylinux2014_aarch64.manylinux_2_17_aarch64.whl", hash = "sha256:265233aff33d835f5b909584fe36ab29647b598c271b661a300001099109e53e", size = 37925, upload-time = "2026-09-24T21:38:13.32Z" }, + { url = "https://files.pythonhosted.org/packages/98/36/190d32caa363ef25d685f422ed1bbf93ff1140fb22fd4d90f24cec209977/google_crc32c-1.9.0-cp314-cp314-manylinux2014_x86_64.manylinux_2_17_x86_64.whl", hash = "sha256:dee799544cae42a42b17a88e38b59cf2c271051dc001da2117a8ff240ffa0548", size = 36495, upload-time = "2026-09-24T21:38:14.211Z" }, + { url = "https://files.pythonhosted.org/packages/d3/fd/81cefea6adae7bd92abb23d4567d199f6485a20ec0a305ca5fa04c52b9c5/google_crc32c-1.9.0-cp314-cp314-win_amd64.whl", hash = "sha256:af73200fa9791ccd380f3598235dba8d82b8af0905df045b3dc60b59836e8ddd", size = 35535, upload-time = "2026-09-24T21:39:30.52Z" }, + { url = "https://files.pythonhosted.org/packages/c5/18/19d4f17f3f33f8fdffcb3e1e69219d6f7ec2c359c160867b04dac1d0a64d/google_crc32c-1.9.0-cp315-cp315-macosx_12_0_arm64.whl", hash = "sha256:e6e8be8a94436079cb5340f6d495d9d7ba30124d8b952703994c739c7c06e236", size = 31977, upload-time = "2026-09-24T21:19:03.976Z" }, + { url = "https://files.pythonhosted.org/packages/81/b4/8010372c4b46f2ee2352dfdb630c397570cd85522a315df024ad2f9459aa/google_crc32c-1.9.0-cp315-cp315-macosx_12_0_x86_64.whl", hash = "sha256:f2b64641bca27497b986b9d87883014035aa904cb4fa333407c6752b3afee9ba", size = 31809, upload-time = "2026-09-24T21:22:29.1Z" }, + { url = "https://files.pythonhosted.org/packages/c5/f8/7e33845d6b90ce1cf37cfabf25cb859277c7d3533ef1b6b1e1ca58581549/google_crc32c-1.9.0-cp315-cp315-manylinux2014_aarch64.manylinux_2_17_aarch64.whl", hash = "sha256:f97c3806dcea41c29c04965347b0e12481561b75e0045dc7a4f69d75dec5d9b1", size = 38359, upload-time = "2026-09-24T21:38:14.983Z" }, + { url = "https://files.pythonhosted.org/packages/36/ff/556b2423f449a7515af6b8222a4d7833cbe09ff3e8d2f0b80471f5f6d02e/google_crc32c-1.9.0-cp315-cp315-manylinux2014_x86_64.manylinux_2_17_x86_64.whl", hash = "sha256:0abe7e202c25909869c35672ab0f2fe748a7acf276eb78577332a7c38999740f", size = 36858, upload-time = "2026-09-24T21:38:15.799Z" }, + { url = "https://files.pythonhosted.org/packages/40/71/4733f1b7c921d04a2bb9b9916cf66498bf7ad0860a06289413830da83192/google_crc32c-1.9.0-cp315-cp315-win_amd64.whl", hash = "sha256:5695c8b9327e040b2aba12c6659b0acb5995314ef0af0192da66e662e011103b", size = 35534, upload-time = "2026-09-24T21:39:31.337Z" }, +] + [[package]] name = "h11" version = "0.16.0" @@ -1420,22 +1436,29 @@ wheels = [ [[package]] name = "numcodecs" -version = "0.15.1" +version = "0.16.6" source = { registry = "https://pypi.org/simple" } dependencies = [ - { name = "deprecated" }, { name = "numpy" }, + { name = "typing-extensions" }, ] -sdist = { url = "https://files.pythonhosted.org/packages/63/fc/bb532969eb8236984ba65e4f0079a7da885b8ac0ce1f0835decbb3938a62/numcodecs-0.15.1.tar.gz", hash = "sha256:eeed77e4d6636641a2cc605fbc6078c7a8f2cc40f3dfa2b3f61e52e6091b04ff", size = 6267275, upload-time = "2025-02-10T10:23:33.254Z" } -wheels = [ - { url = "https://files.pythonhosted.org/packages/e7/7e/f12fc32d3beedc6a8f1ec69ea0ba72e93cb99c0350feed2cff5d04679bc3/numcodecs-0.15.1-cp312-cp312-macosx_10_13_x86_64.whl", hash = "sha256:b0a9d9cd29a0088220682dda4a9898321f7813ff7802be2bbb545f6e3d2f10ff", size = 1691889, upload-time = "2025-02-10T10:23:12.934Z" }, - { url = "https://files.pythonhosted.org/packages/81/38/88e40d40288b73c3b3a390ed5614a34b0661d00255bdd4cfb91c32101364/numcodecs-0.15.1-cp312-cp312-macosx_11_0_arm64.whl", hash = "sha256:a34f0fe5e5f3b837bbedbeb98794a6d4a12eeeef8d4697b523905837900b5e1c", size = 1189149, upload-time = "2025-02-10T10:23:15.803Z" }, - { url = "https://files.pythonhosted.org/packages/28/7d/7527d9180bc76011d6163c848c9cf02cd28a623c2c66cf543e1e86de7c5e/numcodecs-0.15.1-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:c3a09e22140f2c691f7df26303ff8fa2dadcf26d7d0828398c0bc09b69e5efa3", size = 8879163, upload-time = "2025-02-10T10:23:18.582Z" }, - { url = "https://files.pythonhosted.org/packages/ab/bc/b6c3cde91c754860a3467a8c058dcf0b1a5ca14d82b1c5397c700cf8b1eb/numcodecs-0.15.1-cp312-cp312-win_amd64.whl", hash = "sha256:daed6066ffcf40082da847d318b5ab6123d69ceb433ba603cb87c323a541a8bc", size = 836785, upload-time = "2025-02-10T10:23:22.314Z" }, - { url = "https://files.pythonhosted.org/packages/78/57/acbc54b3419e5be65015e47177c76c0a73e037fd3ae2cde5808169194d4d/numcodecs-0.15.1-cp313-cp313-macosx_10_13_x86_64.whl", hash = "sha256:e3d82b70500cf61e8d115faa0d0a76be6ecdc24a16477ee3279d711699ad85f3", size = 1688220, upload-time = "2025-02-10T10:23:23.79Z" }, - { url = "https://files.pythonhosted.org/packages/b6/56/9863fa6dc679f40a31bea5e9713ee5507a31dcd3ee82ea4b1a9268ce52e8/numcodecs-0.15.1-cp313-cp313-macosx_11_0_arm64.whl", hash = "sha256:1d471a1829ce52d3f365053a2bd1379e32e369517557c4027ddf5ac0d99c591e", size = 1180294, upload-time = "2025-02-10T10:23:25.533Z" }, - { url = "https://files.pythonhosted.org/packages/fa/91/d96999b41e3146b6c0ce6bddc5ad85803cb4d743c95394562c2a4bb8cded/numcodecs-0.15.1-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:1dfdea4a67108205edfce99c1cb6cd621343bc7abb7e16a041c966776920e7de", size = 8834323, upload-time = "2025-02-10T10:23:27.46Z" }, - { url = "https://files.pythonhosted.org/packages/c3/32/233e5ede6568bdb044e6f99aaa9fa39827ff3109c6487fc137315f733586/numcodecs-0.15.1-cp313-cp313-win_amd64.whl", hash = "sha256:a4f7bdb26f1b34423cb56d48e75821223be38040907c9b5954eeb7463e7eb03c", size = 831955, upload-time = "2025-02-10T10:23:30.601Z" }, +sdist = { url = "https://files.pythonhosted.org/packages/f9/03/c82563fffd81245a5b0239be8ff7743b30fe35d044080261458ae3c6aee5/numcodecs-0.16.6.tar.gz", hash = "sha256:5e446928af7c40b4dc8f51e960b4c9fb14f617846577d2fcf35ae2f92738f00f", size = 6288989, upload-time = "2026-10-20T19:42:43.925Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/53/02/26a65f7639089b378b79713340d59aa7f691f21ff9e1e44918da8dc36833/numcodecs-0.16.6-cp312-cp312-macosx_10_13_x86_64.whl", hash = "sha256:3ff7c380b40e855ae8caf6c19c368f1c43bf75dcac876445286320bd9fce7753", size = 1666738, upload-time = "2026-10-20T19:42:20.352Z" }, + { url = "https://files.pythonhosted.org/packages/10/c9/1ca1e577f54851126dd1652ec8352ffddef30b9b5eb4ffbade149b12eb6e/numcodecs-0.16.6-cp312-cp312-macosx_11_0_arm64.whl", hash = "sha256:524278af1f81cdf4d47b4300650458096822bbdf073c8b3417fa10147e1f73d9", size = 1174596, upload-time = "2026-10-20T19:42:21.968Z" }, + { url = "https://files.pythonhosted.org/packages/a0/31/96be58c5acc480ba389b8c37f66d688e86e9e694aad8a275a455c9a1b296/numcodecs-0.16.6-cp312-cp312-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:58a02c60f9e4497f7a2c9653f58e8884fd2b7bf5b86ea205f965e363d495ecfd", size = 8710129, upload-time = "2026-10-20T19:42:23.403Z" }, + { url = "https://files.pythonhosted.org/packages/e0/13/01081ae906ae7574289818b08f076ab6663d220f0283b46837962a50ce0f/numcodecs-0.16.6-cp312-cp312-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:609fd6f5ab1dd27fcde21d3e2bbf7e05846d5d5fdd23cf34e02375278a44252f", size = 9346139, upload-time = "2026-10-20T19:42:25.563Z" }, + { url = "https://files.pythonhosted.org/packages/de/d1/5639161aa9524b609d9ce9088bd691ec228a027b141ffc5a88faebc686d2/numcodecs-0.16.6-cp312-cp312-win_amd64.whl", hash = "sha256:c9492c7d79674aac222cb11aba7d48de8b95a2dabadeab501ffe61c124aee664", size = 841956, upload-time = "2026-10-20T19:42:27.243Z" }, + { url = "https://files.pythonhosted.org/packages/c4/2a/829aada6ab1df933a7ebe2693ce6c243a4c4bbbe3040dca175e39005ee31/numcodecs-0.16.6-cp313-cp313-macosx_10_13_x86_64.whl", hash = "sha256:e3b113eecf5509b116982ab7f30a8c861b158045f0702234322bad7bfdeab728", size = 1665051, upload-time = "2026-10-20T19:42:28.451Z" }, + { url = "https://files.pythonhosted.org/packages/8e/87/48fa19e087df8a1a1bd6157c345bef0cdc1133c0fe927219fd43b21cc8f2/numcodecs-0.16.6-cp313-cp313-macosx_11_0_arm64.whl", hash = "sha256:e7e41920099df1aec14d6112e3e1ab028b2451b9ed92e33163510667bfa2e384", size = 1172068, upload-time = "2026-10-20T19:42:29.77Z" }, + { url = "https://files.pythonhosted.org/packages/af/16/670283fc6aeccace1ed426fe223e73e4dba42ae714efad70e75f004942ad/numcodecs-0.16.6-cp313-cp313-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:0ea78370626cdf1436a9d1fa0984a4f7a227a0dc643abbbc2d1558e6d4afafeb", size = 8659446, upload-time = "2026-10-20T19:42:31.073Z" }, + { url = "https://files.pythonhosted.org/packages/fe/4e/0088e3a9a8e1c466a8c8500aa90f613f9aa418b79d303008f6b2e8a641ba/numcodecs-0.16.6-cp313-cp313-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:a063fbac0403e8609a649c5fd716d05c8ac3f2fed0aa19d03c0d0ab2194a9527", size = 9301961, upload-time = "2026-10-20T19:42:32.904Z" }, + { url = "https://files.pythonhosted.org/packages/9e/73/875f008f7e4d8ac5e65a90222e27c14ea4e062192d5452a15e7d266beeb5/numcodecs-0.16.6-cp313-cp313-win_amd64.whl", hash = "sha256:40ed58a808c8a629391be8918ea251a884715deaf077d1618327429adf06c2f4", size = 838867, upload-time = "2026-10-20T19:42:34.603Z" }, + { url = "https://files.pythonhosted.org/packages/fc/a5/338e2fe244a285c9edb5d8764def8d726ccdb5cca83cca914780b27333f7/numcodecs-0.16.6-cp314-cp314-macosx_10_13_x86_64.whl", hash = "sha256:ba4b67038a0542158c5a99004f571c5e11a27d4b7c62290e745dd98e86f15d67", size = 1664019, upload-time = "2026-10-20T19:42:35.814Z" }, + { url = "https://files.pythonhosted.org/packages/53/fd/b8a52c063f59f4e56747e9b116e7b1ced32420fcdd661a673035a82ea259/numcodecs-0.16.6-cp314-cp314-macosx_11_0_arm64.whl", hash = "sha256:c69ef06c1ba0c308e62cc8724627291248a4933ee2897ad61bf272258f1a2f12", size = 1174119, upload-time = "2026-10-20T19:42:36.987Z" }, + { url = "https://files.pythonhosted.org/packages/0e/bc/3b96459c6dd906a7a67d387541aadac207c5330c84d246bfa0dcecb93824/numcodecs-0.16.6-cp314-cp314-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:5bee914099138110137ad1be750a8ac7be395b8a63873c9c2408551bec6f3d81", size = 8654534, upload-time = "2026-10-20T19:42:38.312Z" }, + { url = "https://files.pythonhosted.org/packages/14/71/b29cab99bd25b09de92749e4e98473877e7fcbf2a6ac492d4631f55946c1/numcodecs-0.16.6-cp314-cp314-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:9de40cfbc9764313d9badabbe103def759d0676d64292805f80d08b9dee8c39d", size = 9276387, upload-time = "2026-10-20T19:42:40.408Z" }, + { url = "https://files.pythonhosted.org/packages/46/10/1594ab5a44a7104efdd440d28857425cc524d139b38212d5b52e58304d02/numcodecs-0.16.6-cp314-cp314-win_amd64.whl", hash = "sha256:37f665249aa848ea1600f7513789767753c324d33ca6d7ea887150c2f3ff34e5", size = 858556, upload-time = "2026-10-20T19:42:42.352Z" }, ] [package.optional-dependencies] @@ -1650,20 +1673,21 @@ wheels = [ [[package]] name = "py-hamt" -version = "3.6.0" +version = "4.0.0" source = { registry = "https://pypi.org/simple" } dependencies = [ { name = "dag-cbor" }, { name = "httpx", extra = ["http2"] }, { name = "msgspec" }, { name = "multiformats", extra = ["full"] }, + { name = "numcodecs" }, { name = "opentelemetry-api" }, { name = "pycryptodome" }, { name = "zarr" }, ] -sdist = { url = "https://files.pythonhosted.org/packages/a6/4a/783c03018f642a8df17b1dbfb46968209c656636dd0e5c1008cb80320609/py_hamt-3.6.0.tar.gz", hash = "sha256:7839aeb9a5ec8fede281521b10afdfc632a119c2db1dd7fd7d2374e9eca0fd09", size = 326698, upload-time = "2026-07-30T12:15:35.036Z" } +sdist = { url = "https://files.pythonhosted.org/packages/8e/94/15f58fd12307126310ec7cb176e4c2f535cd2efcbb03ffb0b200b2e9dc9e/py_hamt-4.0.0.tar.gz", hash = "sha256:63765514ea28cb9f9b9c142a7f577bc5fc309c1dea49d091ac7d9c69957733f0", size = 353753, upload-time = "2026-12-03T19:16:21.799Z" } wheels = [ - { url = "https://files.pythonhosted.org/packages/c1/f3/8ea8b9d21e0b36490bff3e3524994d64d3365ef184138f2b568fa0326ed7/py_hamt-3.6.0-py3-none-any.whl", hash = "sha256:9b20fa474b84f5a112ebd61093fbab2613117b0ede8fa4fd5114605110e647da", size = 81309, upload-time = "2026-07-30T12:15:33.917Z" }, + { url = "https://files.pythonhosted.org/packages/35/07/768afd085196d7f7e17b60ba456990e534f3c7a41626ee5cb77bb3992e36/py_hamt-4.0.0-py3-none-any.whl", hash = "sha256:c511a5bb80f01c4742c11db1b54015649c87c76456016a868b0280765d47e793", size = 86086, upload-time = "2026-12-03T19:16:20.748Z" }, ] [[package]] @@ -2556,16 +2580,16 @@ httpx = [ [[package]] name = "xarray" -version = "2025.3.0" +version = "2025.10.1" source = { registry = "https://pypi.org/simple" } dependencies = [ { name = "numpy" }, { name = "packaging" }, { name = "pandas" }, ] -sdist = { url = "https://files.pythonhosted.org/packages/8a/8c/e56820a2c682834d8fb4a940956cd41b9f2532fee9692bfaf43b14f33c6e/xarray-2025.3.0.tar.gz", hash = "sha256:531cf6d64e6ab54c19239930a840654f1a79d2140e9f0d11d1e8d69dcc581d0f", size = 3292399, upload-time = "2025-03-20T04:50:58.903Z" } +sdist = { url = "https://files.pythonhosted.org/packages/7b/ce/f5dd613ddd0b3f839c59e6c2fa20c62469bf671bf4c92a12b09dc0972326/xarray-2025.10.1.tar.gz", hash = "sha256:3c2b5ad7389825bd624ada5ff26b01ac54b1aae72e2fe0d724d81d40a2bf5785", size = 3058736, upload-time = "2025-10-07T20:25:56.708Z" } wheels = [ - { url = "https://files.pythonhosted.org/packages/91/19/5dbac77ca82f009f8267d0e7cca4fd3be2a435d83ed98f6f8b9c5cb1747e/xarray-2025.3.0-py3-none-any.whl", hash = "sha256:022b7eac5ebc26d70d34211de732ec1a15127a40455f9492acdde7fbe5bbf091", size = 1270849, upload-time = "2025-03-20T04:50:56.457Z" }, + { url = "https://files.pythonhosted.org/packages/c3/78/4d6d68555a92cb97b4c192759c4ab585c5cb23490f64d4ddf12c66a3b051/xarray-2025.10.1-py3-none-any.whl", hash = "sha256:a4e699433b87a7fac340951bc36648645eeef72bdd915ff055ac2fd99865a73d", size = 1365202, upload-time = "2025-10-07T20:25:54.964Z" }, ] [[package]] @@ -2616,16 +2640,17 @@ wheels = [ [[package]] name = "zarr" -version = "3.0.9" +version = "3.1.6" source = { registry = "https://pypi.org/simple" } dependencies = [ { name = "donfig" }, - { name = "numcodecs", extra = ["crc32c"] }, + { name = "google-crc32c" }, + { name = "numcodecs" }, { name = "numpy" }, { name = "packaging" }, { name = "typing-extensions" }, ] -sdist = { url = "https://files.pythonhosted.org/packages/5a/5c/8f7875034629ce58adb7724acf64b06fc4b933e30978faf1b8d72ba28267/zarr-3.0.9.tar.gz", hash = "sha256:7635084efec55511d2940975528c42b8885634fb09e7ab75591a980122950d1e", size = 263587, upload-time = "2025-07-01T08:31:12.825Z" } +sdist = { url = "https://files.pythonhosted.org/packages/31/5a/b8a0cf39a14c770c30bd1f2d120c54000c8cd9e84e8e79f38d9a7ce58071/zarr-3.1.6.tar.gz", hash = "sha256:d95e72cbea4b90e9a70679468b8266400331756232576ae2b43400ac5108d0eb", size = 386531, upload-time = "2026-03-23T17:25:18.748Z" } wheels = [ - { url = "https://files.pythonhosted.org/packages/54/69/9d703fee22236dc8c610eb6d728f102340fb8a1dfb4ae649564d77c6fb79/zarr-3.0.9-py3-none-any.whl", hash = "sha256:90775a238a56f98b79d0a9853a04b5ba6236f643c7c8560740583126a409b529", size = 209583, upload-time = "2025-07-01T08:31:11.143Z" }, + { url = "https://files.pythonhosted.org/packages/de/7c/ba8ca8cbe9dbef8e83a95fc208fed8e6686c98b4719aaa0aa7f3d31fe390/zarr-3.1.6-py3-none-any.whl", hash = "sha256:b5a82c5079d1c3d4ee8f06746fa3b9a98a7d804300fa3f4be154362a33e1207e", size = 295655, upload-time = "2026-03-23T17:25:17.189Z" }, ]