MCPcopy
hub / github.com/camelot-dev/excalibur / get

Method get

excalibur/configuration.py:65–80  ·  view source on GitHub ↗
(self, section, key, **kwargs)

Source from the content-addressed store, hash-verified

63 self.is_validated = True
64
65 def get(self, section, key, **kwargs):
66 section = str(section).lower()
67 key = str(key).lower()
68
69 if super().has_option(section, key):
70 return expand_env_var(super().get(section, key, **kwargs))
71
72 if self.excalibur_defaults.has_option(section, key):
73 return expand_env_var(self.excalibur_defaults.get(section, key, **kwargs))
74
75 else:
76 raise ValueError(
77 "section/key [{section}/{key}] not found in" " config".format(
78 **locals()
79 )
80 )
81
82 def read(self, filename):
83 super().read(filename)

Callers 9

_validateMethod · 0.95
webserverFunction · 0.80
workerFunction · 0.80
configuration.pyFile · 0.80
configure_varsFunction · 0.80
get_default_executorFunction · 0.80
__init__.pyFile · 0.80
celery_executor.pyFile · 0.80
default_celery.pyFile · 0.80

Calls 1

expand_env_varFunction · 0.85

Tested by

no test coverage detected