#!/usr/bin/env python
"""Handles Earth Engine service account configuration."""

import ee

# The service account email address authorized by your Google contact.
# Set up a service account as described in the README.
EE_ACCOUNT = 'your-service-account-id@developer.gserviceaccount.com'

# The private key associated with your service account in Privacy Enhanced
# Email format (.pem suffix).  To convert a private key from the RSA format
# (.p12 suffix) to .pem, run the openssl command like this:
# openssl pkcs12 -in downloaded-privatekey.p12 -nodes -nocerts > privatekey.pem
EE_PRIVATE_KEY_FILE = 'privatekey.pem'

EE_CREDENTIALS = ee.ServiceAccountCredentials(EE_ACCOUNT, EE_PRIVATE_KEY_FILE)

[((16, 17, 16, 78), 'ee.ServiceAccountCredentials', 'ee.ServiceAccountCredentials', ({(16, 46, 16, 56): 'EE_ACCOUNT', (16, 58, 16, 77): 'EE_PRIVATE_KEY_FILE'}, {}), '(EE_ACCOUNT, EE_PRIVATE_KEY_FILE)', False, 'import ee\n')]