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

Method ee_init

python/ee/cli/utils.py:127–135  ·  view source on GitHub ↗

Loads the EE credentials and initializes the EE client.

(self)

Source from the content-addressed store, hash-verified

125 return self.project
126
127 def ee_init(self) -> None:
128 """Loads the EE credentials and initializes the EE client."""
129 ee.Initialize(
130 credentials=self._get_credentials(),
131 url=self.url,
132 cloud_api_key=self.cloud_api_key,
133 project=self._get_project(),
134 )
135 ee.data.setUserAgent('eecli')
136
137 def save(self) -> None:
138 config = {}

Callers 15

runMethod · 0.80
runMethod · 0.80
runMethod · 0.80
runMethod · 0.80
runMethod · 0.80
runMethod · 0.80
runMethod · 0.80
runMethod · 0.80
runMethod · 0.80
runMethod · 0.80
runMethod · 0.80
runMethod · 0.80

Calls 2

_get_credentialsMethod · 0.95
_get_projectMethod · 0.95

Tested by

no test coverage detected