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__(self, cache:bool=False, cachedir:str='', **kw)

Create a file storage system for Argo data

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

Methods

__init__(self, cache, cachedir, **kw) Create a file storage system for Argo data
cachepath(self, uri, errors) Return path to cached file for a given URI
clear_cache(self) Remove cache files and entry from uri open with this store instance
exists(self, path, *args)
glob(self, path, **kwargs)
open(self, path, *args, **kwargs)
open_dataframe(self, url, **kwargs) Return a pandas.dataframe from an url with csv response, or verbose errors
open_dataset(self, url, **kwargs) Return a xarray.dataset from an url, or verbose errors
open_json(self, url, **kwargs) Return a json from an url, or verbose errors
register(self, uri) Keep track of files open with this instance
store_path(self, uri)

Attributes

protocol