A simple configuration class.
Configuration is defined with keyword arguments, in which the value must
be an instance of :py:class:`Entry`. Different subclasses of `Entry` can
be used to handle common types and conversions.
Example::
cfg = Configuration(name=StringEntry('initial'),
age=IntegerEntry('42'))
assert cfg.name == initial
assert cfg.age == 42
cfg.update(name='John Doe')
assert cfg.name == 'John Doe'
Definition at line 40 of file config.py.
| def SSHLibrary.config.Configuration.update |
( |
|
self, |
|
|
** |
entries |
|
) |
| |
Update configuration entries.
:param entries: entries to be updated, keyword argument names must
match existing entry names. If any value in `**entries` is None,
the corresponding entry is *not* updated.
See `__init__` for an example.
Definition at line 55 of file config.py.