Thanks to visit codestin.com
Credit goes to github.com

Skip to content

scottyhq/fsspec-reference-maker

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

fsspec-reference-maker

Functions to make reference descriptions for ReferenceFileSystem

Proposed spec for the structure required by ReferenceFileSystem:

{
  "key0": "data",
  "key1": {
    ["protocol://target_url", 100, 100]
  }
}

where:

  • key0 includes data as-is (stored as text)
  • key1 refers to a data file URL, the offset within the file (in bytes), and the length of the data item (in bytes).

For example, Zarr data might be represented as:

{
  ".zgroup": "{\n    \"zarr_format\": 2\n"},
  ".zattrs": "{\n    \"Conventions\": \"UGRID-0.9.0\n\"},
  "x/.zattrs": "{\n    \"_ARRAY_DIMENSIONS\": [\n        \"node\"\n ...",
  "x/.zarray": "{\n    \"chunks\": [\n        9228245\n    ],\n    \"compressor\": null,\n    \"dtype\": \"<f8\",\n  ...",
  "x/0": ["s3://bucket/path/file.nc", 294094376, 73825960]
},

About

Functions to make reference descriptions for ReferenceFileSystem

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%