MCPcopy
hub / github.com/google/earthengine-api / lookup

Method lookup

python/ee/apifunction.py:130–144  ·  view source on GitHub ↗

Looks up an API function by name. Args: name: The name of the function to get. Returns: The requested ApiFunction.

(cls, name: str)

Source from the content-addressed store, hash-verified

128 # TODO(user): Any -> ApiFunction for the return type.
129 @classmethod
130 def lookup(cls, name: str) -> Any:
131 """Looks up an API function by name.
132
133 Args:
134 name: The name of the function to get.
135
136 Returns:
137 The requested ApiFunction.
138 """
139 result = cls.lookupInternal(name)
140 # TODO(user): name -> result?
141 if not name:
142 raise ee_exception.EEException(
143 'Unknown built-in function name: %s' % name)
144 return result
145
146 @classmethod
147 def lookupInternal(cls, name: str) -> ApiFunction | None:

Callers 15

__init__Method · 0.80
_decodeValueFunction · 0.80
__init__Method · 0.80
__init__Method · 0.80
callFunction · 0.80
applyFunction · 0.80
profilePrintingFunction · 0.80
_PromoteFunction · 0.80
__init__Method · 0.80
call_Method · 0.80
apply_Method · 0.80

Calls 1

lookupInternalMethod · 0.80