xarray.backends.BackendEntrypoint#

class xarray.backends.BackendEntrypoint[source]#

BackendEntrypoint is a class container and it is the main interface for the backend plugins, see BackendEntrypoint subclassing. It shall implement:

  • open_dataset method: it shall implement reading from file, variables decoding and it returns an instance of Dataset. It shall take in input at least filename_or_obj argument and drop_variables keyword argument. For more details see open_dataset.

  • guess_can_open method: it shall return True if the backend is able to open filename_or_obj, False otherwise. The implementation of this method is not mandatory.

available#

Indicate wether this backend is available given the installed packages. The setting of this attribute is not mandatory.

Type

bool, default: True

open_dataset_parameters#

A list of open_dataset method parameters. The setting of this attribute is not mandatory.

Type

tuple, default: None

description#

A short string describing the engine. The setting of this attribute is not mandatory.

Type

str, default: ""

url#

A string with the URL to the backend’s documentation. The setting of this attribute is not mandatory.

Type

str, default: ""

__init__()#

Methods

__init__()

guess_can_open(filename_or_obj)

Backend open_dataset method used by Xarray in open_dataset().

open_dataset(filename_or_obj[, drop_variables])

Backend open_dataset method used by Xarray in open_dataset().

Attributes

available

description

open_dataset_parameters

url