pygeodes.utils.decorators#

This module regroups all decorators used in pygeodes

Functions

not_implemented(func)

This decorator, placed on a function, raises an error when the function is called, saying it's not implemented yet

requires_api_key([_func, ...])

This decorator, on a Provider method, makes an api_key mandatory for this method, and raises an error if the provider config does not contain any api_key

uses_session(func)

This decorator, placed on a method from pygeodes.utils.request.SyncRequestMaker, opens an http session before executing the function and closes it after