Package mapproxy :: Package core :: Module config
[hide private]
[frames] | no frames]

Module config

source code

System-wide configuration.
Classes [hide private]
  Options
Dictionary with attribute style access.
Functions [hide private]
 
base_config()
Returns the system wide configuration.
source code
 
_to_options_map(mapping) source code
 
abspath(path)
Convert path to absolute path.
source code
 
load_base_config(config_file=None, clear_existing=False)
Load system wide base configuration.
source code
 
load_config(config, config_file=None, config_dict=None, clear_existing=False) source code
Variables [hide private]
  _config = Options({'http_client_timeout': 60, 'tiles': Options...
Function Details [hide private]

abspath(path)

source code 
Convert path to absolute path. Uses conf_base_dir as base, if path is relative.

load_base_config(config_file=None, clear_existing=False)

source code 
Load system wide base configuration.
Parameters:
  • config_file - the file name of the proxy.yaml configuration. if None, load the internal proxylib/default.yaml conf
  • clear_existing - if True remove the existing configuration settings, else overwrite the settings.

Variables Details [hide private]

_config

Value:
Options({'http_client_timeout': 60, 'tiles': Options({'expires_hours':\
 72}), 'http': Options({'ssl': Options({'ca_certs': None, 'insecure': \
False})}), 'services_conf': 'services.yaml', 'image': Options({'palett\
ed': False, 'jpeg_quality': 90, 'stretch_factor': 1.1499999999999999, \
'resampling_method': 'bicubic', 'max_shrink_factor': 4.0}), 'cache': O\
ptions({'meta_buffer': 80, 'meta_size': (4, 4), 'lock_dir': '../tmp/ti\
le_locks', 'base_dir': '../var/cache_data', 'max_tile_limit': 500}), '\
server': ['wms', 'tms', 'kml'], 'srs': Options({'axis_order_en_': set(\
...