INNER CODE UNIT · Python
config_entry
toolsforexperiments/plottr · plottr/__init__.py:188
def config_entry(*path: str, default: Optional[Any] = None,
names: Optional[List[str]] = None) -> Any:
"""Get a specific config value.
..Example: If the config is:: python
config = {
'foo' : {
'bar' : 'spam',
},
}
.. then we can get an entry like this:: python
>>> config_entry('foo', 'bar', default=None)
'spam'
>>> config_entry('foo', 'bacon')
None