MCPcopy Index your code
hub / github.com/googleapis/google-api-python-client / main

Function main

samples/maps_engine/maps_engine.py:152–172  ·  view source on GitHub ↗
(argv)

Source from the content-addressed store, hash-verified

150
151
152def main(argv):
153 # Authenticate and construct service.
154 service, flags = sample_tools.init(
155 argv,
156 "mapsengine",
157 "v1",
158 __doc__,
159 __file__,
160 parents=[argparser],
161 scope="https://www.googleapis.com/auth/mapsengine",
162 )
163
164 if flags.project_id:
165 # ListTables(service, flags.project_id)
166 # The example polygons shapefile should be in this directory.
167 filename = flags.shapefile or "polygons"
168 table_id = UploadShapefile(service, flags.project_id, filename)
169 logging.info("Sucessfully created table: %s", table_id)
170 else:
171 ListProjects(service)
172 return
173
174
175if __name__ == "__main__":

Callers 1

maps_engine.pyFile · 0.70

Calls 3

UploadShapefileFunction · 0.85
ListProjectsFunction · 0.85
infoMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…