squirrel.zarr.key
¶
Module Contents¶
Functions¶
|
Flatten a nested list of keys. |
|
Infers if a given key is for a folder or not (.zip files are considered as files). |
|
Check if the given key is a key set by squirrel. |
|
Determines whether a key contains zarr chunk pattern (e.g. ‘0.0.0’) or not. |
|
Check if the given key is a zarr key. |
|
Split the key with separator and return the last token. |
|
Normalize keys. |
Attributes¶
-
squirrel.zarr.key.
ZARR_CHUNK_PATTERN
¶
-
squirrel.zarr.key.
flatten
(nested_keys: List[Iterable[str]]) → List[str]¶ Flatten a nested list of keys.
-
squirrel.zarr.key.
is_dir
(key: str) → bool¶ Infers if a given key is for a folder or not (.zip files are considered as files).
-
squirrel.zarr.key.
is_squirrel_key
(key: str) → bool¶ Check if the given key is a key set by squirrel.
-
squirrel.zarr.key.
is_zarr_chunk
(key: str) → bool¶ Determines whether a key contains zarr chunk pattern (e.g. ‘0.0.0’) or not.