Module Import alias Import alias Import alias Import alias ImportFrom alias ImportFrom alias identifier ImportFrom alias ImportFrom alias ImportFrom alias FunctionDef arguments args NameParam NameParam NameParam defaults body Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad decorator_list Call AttributeLoad NameLoad attr keyword Str Call AttributeLoad NameLoad attr Str keyword Num keyword Str Call AttributeLoad NameLoad attr Str keyword Num keyword Str NameLoad FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam defaults body Expr Str Assign NameStore Call NameLoad NameLoad AttributeLoad NameLoad attr NameLoad For NameStore NameLoad body If CompareIsNot NameLoad NameLoad body Expr Call AttributeLoad Call AttributeLoad Call AttributeLoad Call AttributeLoad Call AttributeLoad NameLoad attr attr attr attr keyword NameLoad keyword Dict Str ListLoad SubscriptLoad NameLoad Index Str attr Expr Call AttributeLoad NameLoad attr BinOpMod Str TupleLoad SubscriptLoad NameLoad Index Str NameLoad If CompareEq NameLoad NameLoad body Expr Call AttributeLoad Call AttributeLoad Call AttributeLoad Call AttributeLoad NameLoad attr attr attr keyword NameLoad attr Expr Call AttributeLoad NameLoad attr BinOpMod Str NameLoad Expr Call NameLoad NameLoad NameLoad Call AttributeLoad Call AttributeLoad NameLoad attr attr orelse If CompareIsNot NameLoad NameLoad body Assign NameStore Call AttributeLoad Call AttributeLoad Call AttributeLoad Call AttributeLoad NameLoad attr attr attr keyword NameLoad attr If CompareNotEq SubscriptLoad NameLoad Index Str Str body Raise Call NameLoad Str If CompareGtE Call NameLoad SubscriptLoad NameLoad Index Str Num body Raise Call NameLoad Str Expr Call AttributeLoad Call AttributeLoad Call AttributeLoad Call AttributeLoad NameLoad attr attr attr keyword NameLoad keyword Dict Str BinOpAdd SubscriptLoad NameLoad Index Str ListLoad SubscriptLoad NameLoad Index Str attr Expr Call AttributeLoad NameLoad attr BinOpMod Str TupleLoad SubscriptLoad NameLoad Index Str NameLoad decorator_list Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Str keyword Str Call AttributeLoad NameLoad attr Str keyword NameLoad keyword Str Call AttributeLoad NameLoad attr Str keyword Str Call AttributeLoad NameLoad attr Str keyword Call AttributeLoad NameLoad attr keyword NameLoad keyword NameLoad NameLoad FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign NameStore Call NameLoad NameLoad AttributeLoad NameLoad attr NameLoad decorator_list Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Str keyword Call AttributeLoad NameLoad attr keyword NameLoad keyword NameLoad NameLoad FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Str FunctionDef arguments args NameParam NameParam NameParam defaults body Return Call AttributeLoad Call AttributeLoad NameLoad attr keyword NameLoad attr decorator_list Call NameLoad Num Assign NameStore Call NameLoad Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call NameLoad NameLoad Assign NameStore ListLoad For TupleStore NameStore NameStore Call AttributeLoad NameLoad attr body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Str For NameStore NameLoad body Assign NameStore Call NameLoad NameLoad NameLoad NameLoad Expr Call AttributeLoad NameLoad attr BinOpMod Str TupleLoad SubscriptLoad NameLoad Index Str SubscriptLoad NameLoad Index Str Assign NameStore ListComp Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad SubscriptLoad NameLoad Index Str comprehension NameStore SubscriptLoad NameLoad Index Str Assign NameStore Call AttributeLoad NameLoad attr Expr Call NameLoad NameLoad SubscriptLoad NameLoad Index Str NameLoad NameLoad keyword AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr BinOpMod Str Call NameLoad BinOpDiv BinOpSub Call AttributeLoad NameLoad attr NameLoad Num Num Expr Call NameLoad NameLoad SubscriptLoad NameLoad Index Str NameLoad If Call AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Str body Expr Call NameLoad NameLoad NameLoad Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Str Expr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore ListLoad If CompareEq Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Str body Expr Call AttributeLoad NameLoad attr NameLoad orelse For TupleStore NameStore NameStore NameStore Call NameLoad NameLoad body For NameStore NameLoad body If CompareEq NameLoad Str body Expr Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad Assign NameStore Dict For NameStore NameLoad body With Call NameLoad NameLoad Str NameStore body Assign NameStore Call AttributeLoad NameLoad attr NameLoad If BoolOpAnd CompareIn Str NameLoad CompareEq SubscriptLoad NameLoad Index Str Str body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Str Assign NameStore Dict For TupleStore NameStore NameStore NameStore Call NameLoad NameLoad body For NameStore NameLoad body Assign NameStore SubscriptLoad Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Index Num If CompareNotIn NameLoad NameLoad body Assign SubscriptStore NameLoad Index NameLoad ListLoad Expr Call AttributeLoad SubscriptLoad NameLoad Index NameLoad attr NameLoad Break For TupleStore NameStore NameStore Call AttributeLoad NameLoad attr body Assign NameStore Call AttributeLoad NameLoad attr Assign SubscriptStore NameLoad Index Str NameLoad Assign SubscriptStore NameLoad Index Str ListComp Dict Str NameLoad comprehension NameStore NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad If CompareNotIn NameLoad NameLoad body Assign SubscriptStore NameLoad Index NameLoad ListLoad Expr Call AttributeLoad SubscriptLoad NameLoad Index NameLoad attr NameLoad orelse If CompareNotIn Str NameLoad body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Str For TupleStore NameStore NameStore NameStore Call NameLoad NameLoad body Assign SubscriptStore NameLoad Index Str ListComp Dict Str NameLoad comprehension NameStore NameLoad CompareNotEq NameLoad Str Break Assign SubscriptStore NameLoad Index Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad ListLoad NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Str FunctionDef arguments args NameParam NameParam defaults body Return Call AttributeLoad Call AttributeLoad Call AttributeLoad Call AttributeLoad NameLoad attr attr attr keyword NameLoad keyword NameLoad attr decorator_list Call NameLoad Num FunctionDef arguments args NameParam NameParam defaults body Return Call AttributeLoad Call AttributeLoad Call AttributeLoad Call AttributeLoad NameLoad attr attr attr keyword NameLoad attr decorator_list Call NameLoad Num With Call NameLoad NameLoad Str NameStore body Assign NameStore Call AttributeLoad NameLoad attr NameLoad For NameStore SubscriptLoad NameLoad Index Str body Assign SubscriptStore NameLoad Index Str SubscriptLoad NameLoad Index Str Assign SubscriptStore NameLoad Index Str ListLoad Dict Str SubscriptLoad NameLoad Index Str If CompareIn Str NameLoad body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str If Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad body With Call NameLoad NameLoad NameStore body Assign SubscriptStore NameLoad Index Str Call AttributeLoad NameLoad attr NameLoad Delete SubscriptDel NameLoad Index Str If CompareIn Str NameLoad body If CompareIn Str NameLoad body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str If Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad body With Call NameLoad NameLoad NameStore body If CompareNotIn Str SubscriptLoad NameLoad Index Str body Assign SubscriptStore SubscriptLoad NameLoad Index Str Index Str Dict Assign SubscriptStore SubscriptLoad SubscriptLoad NameLoad Index Str Index Str Index Str Call AttributeLoad NameLoad attr Delete SubscriptDel NameLoad Index Str Assign NameStore Call NameLoad NameLoad NameLoad Expr Call AttributeLoad NameLoad attr BinOpMod Str TupleLoad SubscriptLoad NameLoad Index Str SubscriptLoad NameLoad Index Str Expr Call NameLoad NameLoad SubscriptLoad NameLoad Index Str Call AttributeLoad Call AttributeLoad NameLoad attr attr Expr Call NameLoad NameLoad SubscriptLoad NameLoad Index Str Expr Call NameLoad NameLoad SubscriptLoad NameLoad Index Str decorator_list
N/A N/A click N/A json N/A os N/A time hodor.gme * pprintpp pprint pp os walk retries retries hodor.cli pass_context cli N/A N/A ctx chunk_size asset_processing_wait N/A N/A N/A N/A ctx chunk_size chunk_size N/A N/A ctx processing_timeout_mins asset_processing_wait N/A N/A N/A click group short_help Create assets in Google Maps Engine N/A N/A click option --chunk-size default 20971520 help File chunk size in bytes. Defaults to chunks of 20mb. Pass -1 to use native streaming in Python instead. N/A N/A click option --asset-processing-wait default 90 help Length of time in minutes we should wait for an asset to process before giving up. Defaults to 90 minutes. pass_context raster N/A N/A ctx mosaic_id process_mosaic layer_id configstore N/A N/A N/A 
  Create a new raster asset in Google Maps Engine

  Parameters
  ----------
  ctx : Context
    A Click Context object.
  configstore : Click.Path
    A pointer to the store of one or more asset configuration files.
   N/A rasters N/A hodor_uploader ctx N/A Asset RASTER configstore N/A raster rasters N/A N/A N/A mosaic_id None N/A N/A N/A N/A N/A N/A N/A N/A N/A N/A N/A N/A ctx service rasterCollections rasters batchInsert id mosaic_id body N/A ids N/A N/A raster N/A id execute N/A N/A N/A ctx log N/A Asset '%s' added to mosaic '%s' N/A N/A raster N/A id mosaic_id N/A N/A process_mosaic True N/A N/A N/A N/A N/A N/A N/A N/A N/A N/A ctx service rasterCollections process id mosaic_id execute N/A N/A N/A ctx log N/A Mosaic '%s' processing started mosaic_id N/A N/A poll_asset_processing ctx mosaic_id N/A N/A N/A N/A ctx service rasterCollections N/A N/A N/A layer_id None N/A N/A layer N/A N/A N/A N/A N/A N/A N/A N/A ctx service layers get id layer_id execute N/A N/A N/A layer N/A datasourceType image N/A N/A N/A Exception Layer datasourceType is not 'image'. N/A N/A N/A len N/A layer N/A datasources 100 N/A N/A N/A Exception The GME API currently only allows us to patch layers <= 100 datasources. Sad Keanu :( N/A N/A N/A N/A N/A N/A N/A N/A N/A ctx service layers patch id layer_id body N/A datasources N/A N/A layer N/A datasources N/A N/A raster N/A id execute N/A N/A N/A ctx log N/A Asset '%s' added to layer '%s' N/A N/A raster N/A id layer_id N/A N/A N/A cli command N/A N/A click option --mosaic-id help The raster mosaic to add the newly created raster(s) to. N/A N/A click option --process-mosaic/--no-process-mosaic default False help Whether the given raster mosaic should be processed after the raster(s) are added. Defaults to false. N/A N/A click option --layer-id help The raster layer to add the newly created raster(s) to. Not compatible with mosaic options. N/A N/A click argument configstore type N/A N/A click Path exists True resolve_path True pass_context vector N/A N/A ctx configstore N/A N/A N/A 
  Create a new vector asset in Google Maps Engine

  Parameters
  ----------
  ctx : Context
    A Click Context object.
  configstore : Click.Path
    A pointer to the store of one or more asset configuration files.
   N/A vectors N/A hodor_uploader ctx N/A Asset TABLE configstore N/A N/A N/A cli command N/A N/A click argument configstore type N/A N/A click Path exists True resolve_path True pass_context hodor_uploader N/A N/A ctx asset_type configstore N/A N/A N/A 
  Core uploader functionality for anything that adopts the
  Hodor-esque configstore system.

  Parameters
  ----------
  ctx : Context
    A Click Context object
  asset_type : int
    A GME asset type defined by the Asset class.
  configstore : Click.Path
    A pointer to the store of one or more asset configuration files.

  Returns
  -------
  list
    A list of assetIds for the assets created.
   create_asset N/A N/A ctx resource config N/A N/A N/A N/A N/A N/A N/A resource upload body config execute N/A N/A retries 10 N/A resource N/A get_asset_resource N/A N/A ctx service asset_type N/A asset_configs N/A hodor_config_builder configstore N/A asset_ids N/A N/A N/A asset_dir configs N/A N/A asset_configs iteritems N/A N/A payloaddir N/A N/A N/A os path join asset_dir payload N/A config configs N/A N/A response N/A create_asset ctx resource config N/A N/A N/A ctx log N/A Asset '%s' created with id %s N/A N/A response N/A name N/A response N/A id N/A filepaths N/A N/A N/A N/A os path join payloaddir N/A f N/A filename N/A f N/A config N/A files N/A start_time N/A N/A time time N/A N/A upload_files_multithreaded ctx N/A response N/A id asset_type filepaths chunk_size N/A ctx chunk_size N/A N/A N/A ctx log N/A All uploads completed and took %s minutes N/A round N/A N/A N/A N/A time time start_time 60 2 N/A N/A poll_asset_processing ctx N/A response N/A id resource N/A N/A N/A N/A os path isfile N/A N/A N/A os path join asset_dir layers.json N/A N/A N/A layer_creator ctx response N/A N/A N/A os path join asset_dir layers.json N/A N/A N/A asset_ids append N/A response N/A id N/A asset_ids N/A hodor_config_builder N/A N/A configstore N/A N/A N/A 
  Manages initialisation of the Hodor-esque config system.

  Parameters
  ----------
  configstore : Click.Path
    A pointer to the store of one or more asset configuration files.

  Returns
  -------
  dict
    An object representing the config files used to create the asset(s).
  {
    '/path/to/asset1': [{..asset config...}],
    '/path/to/asset2': [{..asset config...}]
  }
   N/A configfiles N/A N/A N/A N/A N/A N/A os path basename configstore config.json N/A N/A N/A N/A configfiles append configstore N/A N/A N/A dirpath dirnames filenames N/A walk configstore N/A N/A f filenames N/A N/A N/A f config.json N/A N/A N/A N/A configfiles append N/A N/A N/A os path join dirpath f N/A assets N/A N/A cf configfiles N/A N/A N/A open cf r f N/A N/A config N/A N/A json load f N/A N/A N/A name config N/A N/A config N/A name {fileName} N/A N/A payloaddir N/A N/A N/A os path join N/A N/A N/A os path dirname cf payload N/A grouped_payload N/A N/A N/A dirpath dirnames filenames N/A walk payloaddir N/A N/A f filenames N/A N/A basename N/A N/A N/A N/A os path splitext f N/A 0 N/A N/A basename grouped_payload N/A N/A N/A grouped_payload N/A basename N/A N/A N/A N/A N/A grouped_payload N/A basename append f N/A N/A N/A name payload N/A N/A grouped_payload iteritems N/A N/A asset_config N/A N/A config copy N/A N/A asset_config N/A name name N/A N/A asset_config N/A files N/A N/A filename f N/A f payload N/A asset_dir N/A N/A N/A os path dirname cf N/A N/A asset_dir assets N/A N/A N/A assets N/A asset_dir N/A N/A N/A N/A N/A assets N/A asset_dir append asset_config N/A N/A N/A files config N/A N/A payloaddir N/A N/A N/A os path join N/A N/A N/A os path dirname cf payload N/A N/A dirpath dirnames filenames N/A walk payloaddir N/A N/A N/A config N/A files N/A N/A filename f N/A f filenames N/A f .DS_Store N/A N/A N/A assets N/A N/A N/A N/A os path dirname cf N/A config N/A assets N/A layer_creator N/A N/A ctx asset configfile N/A N/A N/A Creates layers from an asset according to user-supplied config.

  ctx : Context
    A Click Context object.
  asset : dict
    A vector or raster asset in GME.
  configfile : str
    Path to a layers.json file.
   create_layer N/A N/A ctx config N/A N/A N/A N/A N/A N/A N/A N/A N/A N/A N/A ctx service layers create body config process True execute N/A N/A retries 10 publish_layer N/A N/A ctx layer_id N/A N/A N/A N/A N/A N/A N/A N/A N/A N/A N/A ctx service layers publish id layer_id execute N/A N/A retries 10 N/A N/A open configfile r f N/A N/A config N/A N/A json load f N/A layer N/A config N/A layers N/A N/A N/A layer N/A projectId N/A asset N/A projectId N/A N/A layer N/A datasources N/A N/A id N/A asset N/A id N/A N/A styleFile layer N/A N/A styleFile N/A N/A N/A os path join N/A N/A N/A os path dirname N/A configfile name N/A layer N/A styleFile N/A N/A N/A N/A os path exists styleFile N/A N/A N/A open styleFile f N/A N/A N/A layer N/A style N/A N/A json load f N/A N/A layer N/A styleFile N/A N/A infoWindowFile layer N/A N/A N/A style layer N/A N/A infoWindowFile N/A N/A N/A os path join N/A N/A N/A os path dirname N/A configfile name N/A layer N/A infoWindowFile N/A N/A N/A N/A os path exists infoWindowFile N/A N/A N/A open infoWindowFile f N/A N/A N/A featureInfo N/A layer N/A style N/A N/A N/A N/A layer N/A style N/A featureInfo N/A N/A N/A N/A N/A layer N/A style N/A featureInfo N/A content N/A N/A f read N/A N/A layer N/A infoWindowFile N/A layer N/A create_layer ctx layer N/A N/A N/A ctx log N/A Layer '%s' created with id %s N/A N/A layer N/A name N/A layer N/A id N/A N/A poll_asset_processing ctx N/A layer N/A id N/A N/A N/A N/A ctx service layers N/A N/A publish_layer ctx N/A layer N/A id N/A N/A poll_layer_publishing ctx N/A layer N/A id N/A