from_service_account#
- static geetools.ee_initialize.InitializeAccessor.from_service_account(private_key)#
Initialize Earthengine API using a service account.
Equivalent to the
ee.initializefunction but with a specific service account json key.- Parameters:
private_key (str) – The private key of the service account in json format.
- Return type:
None
Example
import ee import geetools private_key = "your_private_key" ee.Initialize.from_service_account(private_key)