| 1 |
# kerchunk |
| 2 |
|
| 3 |
Cloud-friendly access to archival data |
| 4 |
|
| 5 |
[](https://fsspec.github.io/kerchunk/) |
| 6 |
[](https://github.com/fsspec/kerchunk/actions/workflows/tests.yml) |
| 7 |
[](https://pypi.python.org/pypi/kerchunk/) |
| 8 |
[](https://anaconda.org/conda-forge/kerchunk) |
| 9 |
|
| 10 |
Kerchunk is a library that provides a unified way to represent a variety of chunked, compressed |
| 11 |
data formats (e.g. NetCDF, HDF5, GRIB), |
| 12 |
allowing efficient access to the data from traditional file systems or cloud object storage. |
| 13 |
It also provides a flexible way to create |
| 14 |
virtual datasets from multiple files. It does this by extracting the byte ranges, |
| 15 |
compression information and other information about the |
| 16 |
data and storing this metadata in a new, separate object. This means that you can |
| 17 |
create a virtual aggregate dataset over potentially many source |
| 18 |
files, for efficient, parallel and cloud-friendly *in-situ* access without having to copy or |
| 19 |
translate the originals. It is a gateway to in-the-cloud massive data processing while |
| 20 |
the data providers still insist on using legacy formats for archival storage. |
| 21 |
|
| 22 |
*Why Kerchunk*: |
| 23 |
|
| 24 |
We provide the following things: |
| 25 |
|
| 26 |
- completely serverless architecture |
| 27 |
- metadata consolidation, so you can understand a many-file dataset (metadata plus physical storage) in a single read |
| 28 |
- read from all of the storage backends supported by fsspec, including object storage (s3, gcs, abfs, alibaba), http, |
| 29 |
cloud user storage (dropbox, gdrive) and network protocols (ftp, ssh, hdfs, smb...) |
| 30 |
- loading of various file types (currently netcdf4/HDF, grib2, tiff, fits, zarr), potentially heterogeneous within a |
| 31 |
single dataset, without a need to go via the specific driver (e.g., no need for h5py) |
| 32 |
- asynchronous concurrent fetch of many data chunks in one go, amortizing the cost of latency |
| 33 |
- parallel access with a library like zarr without any locks |
| 34 |
- logical datasets viewing many (>~millions) data files, and direct access/subselection to them via coordinate |
| 35 |
indexing across an arbitrary number of dimensions |
| 36 |
|
| 37 |
|
| 38 |
<img alt="logo" src="./kerchunk.png" width="200"/> |
| 39 |
|
| 40 |
|
| 41 |
For further information, please see [the documentation](https://fsspec.github.io/kerchunk/). |