argopy.stores.httpstore

class httpstore(cache: bool = False, cachedir: str = '', **kw)[source]

Wrapper around fsspec http file store

This wrapper intend to make argopy safer to failures from http requests This wrapper is primarily used by the Erddap data/index fetchers

__init__(cache: bool = False, cachedir: str = '', **kw)

Create a file storage system for Argo data

Parameters:
cache : bool (False)
cachedir : str (from OPTIONS)

Methods

__init__(cache, cachedir, **kw) 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)
glob(path, **kwargs)
open(path, *args, **kwargs)
open_dataframe(url, **kwargs) Return a pandas.dataframe from an url with csv response, or verbose errors
open_dataset(url, **kwargs) Return a xarray.dataset from an url, or verbose errors
open_json(url, **kwargs) Return a json from an url, or verbose errors
register(uri) Keep track of files open with this instance
store_path(uri)

Attributes

protocol