argopy.stores.spec.ArgoStoreProto

argopy.stores.spec.ArgoStoreProto#

class ArgoStoreProto(cache: bool = False, cachedir: str = '', **kwargs)[source]#

Argo File System Prototype

All argopy file systems must inherit, directly or not, from this prototype.

Should this class inherits from fsspec.spec.AbstractFileSystem ?

__init__(cache: bool = False, cachedir: str = '', **kwargs)[source]#

Create a file storage system for Argo data

Parameters:
  • cache (bool (False))

  • cachedir (str (from OPTIONS))

  • **kwargs ((optional)) – Other arguments are passed to fsspec.filesystem()

Methods

__init__([cache,Ā cachedir])

Create a file storage system for Argo data

cachepath(uri[,Ā errors])

Return path to cached file for a given URI

clear_cache()

Remove cache files and entry from uri open with this store instance

exists(path,Ā *args)

expand_path(path,Ā **kwargs)

Turn one or more globs or directories into a list of all matching paths to files or directories.

first(path[,Ā N])

Read first N bytes of a path

full_path(path[,Ā protocol])

Return fully developed path

glob(path,Ā **kwargs)

info(path,Ā *args,Ā **kwargs)

ls(path,Ā **kwargs)

open(path,Ā *args,Ā **kwargs)

open_dataset(*args,Ā **kwargs)

read_csv()

register(uri)

Keep track of files open with this instance

store_path(uri)

unstrip_protocol(path,Ā **kwargs)

Attributes

async_impl

asynchronous

cached_files

protocol

File system name, one in fsspec.registry.known_implementations

sep

target_protocol