xenoslib 0.1.29.23__tar.gz → 0.1.29.24__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {xenoslib-0.1.29.23/xenoslib.egg-info → xenoslib-0.1.29.24}/PKG-INFO +1 -1
- {xenoslib-0.1.29.23 → xenoslib-0.1.29.24}/xenoslib/about.py +1 -1
- {xenoslib-0.1.29.23 → xenoslib-0.1.29.24}/xenoslib/extend.py +8 -0
- {xenoslib-0.1.29.23 → xenoslib-0.1.29.24/xenoslib.egg-info}/PKG-INFO +1 -1
- {xenoslib-0.1.29.23 → xenoslib-0.1.29.24}/LICENSE +0 -0
- {xenoslib-0.1.29.23 → xenoslib-0.1.29.24}/README.md +0 -0
- {xenoslib-0.1.29.23 → xenoslib-0.1.29.24}/setup.cfg +0 -0
- {xenoslib-0.1.29.23 → xenoslib-0.1.29.24}/setup.py +0 -0
- {xenoslib-0.1.29.23 → xenoslib-0.1.29.24}/xenoslib/__init__.py +0 -0
- {xenoslib-0.1.29.23 → xenoslib-0.1.29.24}/xenoslib/__main__.py +0 -0
- {xenoslib-0.1.29.23 → xenoslib-0.1.29.24}/xenoslib/base.py +0 -0
- {xenoslib-0.1.29.23 → xenoslib-0.1.29.24}/xenoslib/dev.py +0 -0
- {xenoslib-0.1.29.23 → xenoslib-0.1.29.24}/xenoslib/linux.py +0 -0
- {xenoslib-0.1.29.23 → xenoslib-0.1.29.24}/xenoslib/mail.py +0 -0
- {xenoslib-0.1.29.23 → xenoslib-0.1.29.24}/xenoslib/mock.py +0 -0
- {xenoslib-0.1.29.23 → xenoslib-0.1.29.24}/xenoslib/onedrive.py +0 -0
- {xenoslib-0.1.29.23 → xenoslib-0.1.29.24}/xenoslib/win_trayicon.py +0 -0
- {xenoslib-0.1.29.23 → xenoslib-0.1.29.24}/xenoslib/windows.py +0 -0
- {xenoslib-0.1.29.23 → xenoslib-0.1.29.24}/xenoslib.egg-info/SOURCES.txt +0 -0
- {xenoslib-0.1.29.23 → xenoslib-0.1.29.24}/xenoslib.egg-info/dependency_links.txt +0 -0
- {xenoslib-0.1.29.23 → xenoslib-0.1.29.24}/xenoslib.egg-info/requires.txt +0 -0
- {xenoslib-0.1.29.23 → xenoslib-0.1.29.24}/xenoslib.egg-info/top_level.txt +0 -0
|
@@ -362,6 +362,13 @@ class SectionProxy:
|
|
|
362
362
|
"""Dictionary-style access to configuration values."""
|
|
363
363
|
return self._loader.get(self._section, key)
|
|
364
364
|
|
|
365
|
+
def get(self, key, default=None):
|
|
366
|
+
"""Dictionary-style access to configuration values."""
|
|
367
|
+
try:
|
|
368
|
+
return self._loader.get(self._section, key)
|
|
369
|
+
except KeyError:
|
|
370
|
+
return default
|
|
371
|
+
|
|
365
372
|
def __getattr__(self, key):
|
|
366
373
|
"""Attribute-style access to configuration values."""
|
|
367
374
|
try:
|
|
@@ -384,3 +391,4 @@ if __name__ == "__main__":
|
|
|
384
391
|
|
|
385
392
|
print("With Vault:", config_with_vault.test.test)
|
|
386
393
|
print("With Vault:", config_with_vault["cis"]["cis_client_id"])
|
|
394
|
+
print("Try val not exists: ", config_with_vault.test.get("not_exists"))
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|