Skip to content

Update py-hamt to 3.4.0 - #10

Closed
Faolain wants to merge 1 commit into
mainfrom
agent/update-py-hamt-3-4-0
Closed

Update py-hamt to 3.4.0#10
Faolain wants to merge 1 commit into
mainfrom
agent/update-py-hamt-3-4-0

Conversation

@Faolain

@Faolain Faolain commented Jul 7, 2026

Copy link
Copy Markdown
Collaborator

Summary

Updates the client to use py-hamt 3.4.0 and adapts IPFS Zarr loading for the new sharded store behavior introduced in dClimate/py-hamt#86.

What changed

  • Bumped py_hamt to >=3.4.0 and refreshed uv.lock to resolve py-hamt 3.4.0.
  • Added optional zarr_group support to dClimateClient.load_dataset() and the legacy CID loader.
  • Auto-opens group "0" when a py-hamt v2 sharded store reports multiple top-level groups and that safe default is available.
  • Suppresses py-hamt's legacy v1 deprecation warning inside the client read path.
  • Keeps post-sharded-open Zarr/group errors from being masked by the HAMT fallback.
  • Documents the new zarr_group option and metadata field.

Why

py-hamt 3.4.0 adds path-aware sharded Zarr v2 support and can require explicit Zarr groups for pyramid/multi-group layouts. The client now handles the common group "0" layout automatically while still allowing callers to specify another group explicitly.

Validation

  • uv run --extra testing pytest tests/test_ipfs_retrieval.py -q
  • uv run --extra dev ruff check dclimate_client_py/ipfs_retrieval.py dclimate_client_py/dclimate_client.py dclimate_client_py/datasets.py tests/test_ipfs_retrieval.py

@coderabbitai

coderabbitai Bot commented Jul 7, 2026

Copy link
Copy Markdown

Important

Review skipped

Draft detected.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro

Run ID: 25955ebe-b874-49b3-8159-c0e0b94e6035

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch agent/update-py-hamt-3-4-0

Comment @coderabbitai help to get the list of available commands.

@0xSwego 0xSwego closed this Jul 7, 2026
@0xSwego
0xSwego deleted the agent/update-py-hamt-3-4-0 branch July 7, 2026 18:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants