geetools.accessors#

Generic accessor to add extra function to the base GEE API classes.

Functions#

register_class_accessor(klass, name)

Create an accessor through the provided namespace to a given class.

register_function_accessor(func, name)

Create an accessor through the provided namespace to a given function.

Module Contents#

geetools.accessors.register_class_accessor(klass, name)[source]#

Create an accessor through the provided namespace to a given class.

Parameters:
  • klass (Type) – The class to set the accessor to.

  • name (str) – The name of the accessor namespace

Returns:

The accessor function to to the class.

Return type:

Callable

geetools.accessors.register_function_accessor(func, name)[source]#

Create an accessor through the provided namespace to a given function.

Parameters:
  • func (Type) – The function to set the accessor to.

  • name (str) – The name of the accessor namespace

Returns:

The accessor function to to the function.

Return type:

Callable