MCPcopy Create free account
hub / github.com/datapane/datapane / get_config

Method get_config

python-client/src/datapane/_vendor/bottle.py:584–590  ·  view source on GitHub ↗

Lookup a config field and return its value, first checking the route.config, then route.app.config.

(self, key, default=None)

Source from the content-addressed store, hash-verified

582 return getargspec(self.get_undecorated_callback())[0]
583
584 def get_config(self, key, default=None):
585 """ Lookup a config field and return its value, first checking the
586 route.config, then route.app.config."""
587 depr(0, 13, "Route.get_config() is deprecated.",
588 "The Route.config property already includes values from the"
589 " application config for missing keys. Access it directly.")
590 return self.config.get(key, default)
591
592 def __repr__(self):
593 cb = self.get_undecorated_callback()

Callers

nothing calls this directly

Calls 2

deprFunction · 0.85
getMethod · 0.45

Tested by

no test coverage detected