-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbulkloader.yaml
86 lines (69 loc) · 2.21 KB
/
bulkloader.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
# Autogenerated bulkloader.yaml file.
# You must edit this file before using it. TODO: Remove this line when done.
# At a minimum address the items marked with TODO:
# * Fill in connector and connector_options
# * Review the property_map.
# - Ensure the 'external_name' matches the name of your CSV column,
# XML tag, etc.
# - Check that __key__ property is what you want. Its value will become
# the key name on import, and on export the value will be the Key
# object. If you would like automatic key generation on import and
# omitting the key on export, you can remove the entire __key__
# property from the property map.
# If you have module(s) with your model classes, add them here. Also
# change the kind properties to model_class.
python_preamble:
- import: base64
- import: re
- import: google.appengine.ext.bulkload.transform
- import: google.appengine.ext.bulkload.bulkloader_wizard
- import: google.appengine.ext.db
- import: google.appengine.api.datastore
- import: google.appengine.api.users
transformers:
- kind: AnnualSolarPotential
connector: csv
property_map:
- property: __key__
import_template: "%(lat)s:%(lng)s"
- property: lat
external_name: lat
import_transform: float
- property: lng
external_name: lng
import_transform: float
- property: country
external_name: country
- property: region
external_name: region
- property: city
external_name: city
- property: potential
external_name: potential
import_transform: float
- property: actual
external_name: actual
import_transform: float
- kind: AnnualWindPotential
connector: csv
property_map:
- property: __key__
import_template: "%(lat)s:%(lng)s"
- property: lat
external_name: lat
import_transform: float
- property: lng
external_name: lng
import_transform: float
- property: country
external_name: country
- property: region
external_name: region
- property: city
external_name: city
- property: potential
external_name: potential
import_transform: float
- property: actual
external_name: actual
import_transform: float