Simple dynamic config backend.
- See also
- dynamic_config
Definition at line 266 of file dynconf.py.
|
None | __init__ (self, *ConfigValuesDict initial_values, Optional[ConfigValuesDict] defaults, Iterable[str] config_cache_components, caches.InvalidationState cache_invalidation_state, _Changelog changelog) |
|
None | set_values (self, ConfigValuesDict values) |
|
None | set_values_unsafe (self, ConfigValuesDict values) |
|
None | set (self, **values) |
|
None | switch_to_static_default (self, *str keys) |
|
None | switch_to_dynamic_value (self, *str keys) |
|
ConfigValuesDict | get_values_unsafe (self) |
|
Set[str] | get_kill_switches_disabled_unsafe (self) |
|
Any | get (self, str key, Any default=None) |
|
None | remove_values (self, Iterable[str] keys) |
|
None | remove (self, str key) |
|
Any | modify (self, str key) |
|
Tuple[Any,...] | modify_many (self, *Tuple[str,...] keys) |
|
◆ __init__()
None pytest_userver.dynconf.DynamicConfig.__init__ |
( |
|
self, |
|
|
*ConfigValuesDict |
initial_values, |
|
|
Optional[ConfigValuesDict] |
defaults, |
|
|
Iterable[str] |
config_cache_components, |
|
|
caches.InvalidationState |
cache_invalidation_state, |
|
|
_Changelog |
changelog |
|
) |
| |
◆ _sync_with_service()
None pytest_userver.dynconf.DynamicConfig._sync_with_service |
( |
|
self | ) |
|
|
protected |
◆ get()
Any pytest_userver.dynconf.DynamicConfig.get |
( |
|
self, |
|
|
str |
key, |
|
|
Any |
default = None |
|
) |
| |
◆ get_kill_switches_disabled_unsafe()
Set[str] pytest_userver.dynconf.DynamicConfig.get_kill_switches_disabled_unsafe |
( |
|
self | ) |
|
◆ get_values_unsafe()
ConfigValuesDict pytest_userver.dynconf.DynamicConfig.get_values_unsafe |
( |
|
self | ) |
|
◆ modify()
Any pytest_userver.dynconf.DynamicConfig.modify |
( |
|
self, |
|
|
str |
key |
|
) |
| |
◆ modify_many()
Tuple[Any, ...] pytest_userver.dynconf.DynamicConfig.modify_many |
( |
|
self, |
|
|
*Tuple[str, ...] |
keys |
|
) |
| |
◆ remove()
None pytest_userver.dynconf.DynamicConfig.remove |
( |
|
self, |
|
|
str |
key |
|
) |
| |
◆ remove_values()
None pytest_userver.dynconf.DynamicConfig.remove_values |
( |
|
self, |
|
|
Iterable[str] |
keys |
|
) |
| |
◆ set()
None pytest_userver.dynconf.DynamicConfig.set |
( |
|
self, |
|
|
** |
values |
|
) |
| |
◆ set_values()
None pytest_userver.dynconf.DynamicConfig.set_values |
( |
|
self, |
|
|
ConfigValuesDict |
values |
|
) |
| |
◆ set_values_unsafe()
None pytest_userver.dynconf.DynamicConfig.set_values_unsafe |
( |
|
self, |
|
|
ConfigValuesDict |
values |
|
) |
| |
◆ switch_to_dynamic_value()
None pytest_userver.dynconf.DynamicConfig.switch_to_dynamic_value |
( |
|
self, |
|
|
*str |
keys |
|
) |
| |
◆ switch_to_static_default()
None pytest_userver.dynconf.DynamicConfig.switch_to_static_default |
( |
|
self, |
|
|
*str |
keys |
|
) |
| |
◆ _cache_invalidation_state
pytest_userver.dynconf.DynamicConfig._cache_invalidation_state |
|
protected |
◆ _changelog
pytest_userver.dynconf.DynamicConfig._changelog |
|
protected |
◆ _config_cache_components
pytest_userver.dynconf.DynamicConfig._config_cache_components |
|
protected |
◆ _defaults
pytest_userver.dynconf.DynamicConfig._defaults |
|
protected |
◆ _kill_switches_disabled
pytest_userver.dynconf.DynamicConfig._kill_switches_disabled |
|
protected |
◆ _values
pytest_userver.dynconf.DynamicConfig._values |
|
protected |
The documentation for this class was generated from the following file:
- /data/code/userver/testsuite/pytest_plugins/pytest_userver/dynconf.py