From 6380817f559ee827edf699c345015ccf763fc351 Mon Sep 17 00:00:00 2001 From: benscarlson Date: Tue, 16 Sep 2014 16:44:27 -0400 Subject: [PATCH 1/4] update properties file name --- .gitignore | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.gitignore b/.gitignore index 0fa285e..85ca971 100644 --- a/.gitignore +++ b/.gitignore @@ -44,4 +44,4 @@ coverage.xml docs/_build/ # Earth Engine properties file -.ee-properties +.properties From d9278828a998ab53fa82ad7ee4738f78ee52eea9 Mon Sep 17 00:00:00 2001 From: benscarlson Date: Tue, 16 Sep 2014 16:45:01 -0400 Subject: [PATCH 2/4] update properties file name --- .ee-properties-TEMPLATE | 3 --- src/test.py | 2 +- 2 files changed, 1 insertion(+), 4 deletions(-) delete mode 100644 .ee-properties-TEMPLATE diff --git a/.ee-properties-TEMPLATE b/.ee-properties-TEMPLATE deleted file mode 100644 index 5dc4d7b..0000000 --- a/.ee-properties-TEMPLATE +++ /dev/null @@ -1,3 +0,0 @@ -[Authentication] -ServiceAccount: randomnumber@developer.gserviceaccount.com -PrivateKeyFile: /path/to/file/yourprivatekeyfile.p12 diff --git a/src/test.py b/src/test.py index 915df98..4deed1b 100644 --- a/src/test.py +++ b/src/test.py @@ -5,7 +5,7 @@ import ConfigParser Config = ConfigParser.ConfigParser() -Config.read('.ee-properties') +Config.read('.properties') MY_SERVICE_ACCOUNT = Config.get('Authentication', 'ServiceAccount') MY_PRIVATE_KEY_FILE = Config.get('Authentication', 'PrivateKeyFile') From c8d5fbd26f2210e7f0948ce9647e6a0ef3b18004 Mon Sep 17 00:00:00 2001 From: benscarlson Date: Tue, 16 Sep 2014 16:46:21 -0400 Subject: [PATCH 3/4] update properties file name --- .properties-TEMPLATE | 3 +++ 1 file changed, 3 insertions(+) create mode 100644 .properties-TEMPLATE diff --git a/.properties-TEMPLATE b/.properties-TEMPLATE new file mode 100644 index 0000000..5dc4d7b --- /dev/null +++ b/.properties-TEMPLATE @@ -0,0 +1,3 @@ +[Authentication] +ServiceAccount: randomnumber@developer.gserviceaccount.com +PrivateKeyFile: /path/to/file/yourprivatekeyfile.p12 From 052ab72edaf587e358696d8a6b57803bab7a5741 Mon Sep 17 00:00:00 2001 From: benscarlson Date: Tue, 16 Sep 2014 17:14:38 -0400 Subject: [PATCH 4/4] update .properties file name --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 926d6b7..18cccd5 100644 --- a/README.md +++ b/README.md @@ -6,8 +6,8 @@ out-of-the box project for getting started with earth engine python api This project is meant to be a quick starting point for writing earth engine scripts using python. It is set up as an aptana pydev project. 1. Download the zip for this repositry to your local machine. Don't clone! -2. Open .ee-properties-TEMPLATE, put in your service account, and point the script to your private key file. Save the file as .ee-properties - This file will be ignored by git. You can delete .ee-properties-TEMPLATE. +2. Open .properties-TEMPLATE, put in your service account, and point the script to your private key file. Save the file as .ee-properties + This file will be ignored by git. You can delete .properties-TEMPLATE. 3. Rename the ee-python folder to your-project-name 4. in .project, update to