fsspec / fsspec/kerchunk

Have ZarrToZarr write to json in the function?

Open
#441 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Python
Stars
366
Forks
96
Avg merge
24m
Merged PRs (30d)
1

Description

Currently one can write to json outside of the function

zarrchunks = kerchunk.zarr.ZarrToZarr(uri)
with open(out_json, "wb") as f:
    f.write(ujson.dumps(zarrchunks))

Given this is a common operation it could be added to single_zarr

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by locating the ZarrToZarr implementation and the single_zarr entry point, then compare them with the shown external ujson-writing example. Done means the common operation can write the generated ZarrToZarr result to JSON from the function itself, with output matching the current external approach.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
backend
Issue type
Feature
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
55/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.