p3lib 1.1.85__tar.gz → 1.1.86__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.
- {p3lib-1.1.85 → p3lib-1.1.86}/PKG-INFO +1 -1
- {p3lib-1.1.85 → p3lib-1.1.86}/setup.cfg +1 -1
- {p3lib-1.1.85 → p3lib-1.1.86}/src/p3lib/pconfig.py +8 -7
- {p3lib-1.1.85 → p3lib-1.1.86}/src/p3lib.egg-info/PKG-INFO +1 -1
- {p3lib-1.1.85 → p3lib-1.1.86}/LICENSE +0 -0
- {p3lib-1.1.85 → p3lib-1.1.86}/README.md +0 -0
- {p3lib-1.1.85 → p3lib-1.1.86}/pyproject.toml +0 -0
- {p3lib-1.1.85 → p3lib-1.1.86}/src/p3lib/__init__.py +0 -0
- {p3lib-1.1.85 → p3lib-1.1.86}/src/p3lib/ate.py +0 -0
- {p3lib-1.1.85 → p3lib-1.1.86}/src/p3lib/bokeh_auth.py +0 -0
- {p3lib-1.1.85 → p3lib-1.1.86}/src/p3lib/bokeh_gui.py +0 -0
- {p3lib-1.1.85 → p3lib-1.1.86}/src/p3lib/boot_manager.py +0 -0
- {p3lib-1.1.85 → p3lib-1.1.86}/src/p3lib/conduit.py +0 -0
- {p3lib-1.1.85 → p3lib-1.1.86}/src/p3lib/database_if.py +0 -0
- {p3lib-1.1.85 → p3lib-1.1.86}/src/p3lib/helper.py +0 -0
- {p3lib-1.1.85 → p3lib-1.1.86}/src/p3lib/json_networking.py +0 -0
- {p3lib-1.1.85 → p3lib-1.1.86}/src/p3lib/mqtt_rpc.py +0 -0
- {p3lib-1.1.85 → p3lib-1.1.86}/src/p3lib/netif.py +0 -0
- {p3lib-1.1.85 → p3lib-1.1.86}/src/p3lib/netplotly.py +0 -0
- {p3lib-1.1.85 → p3lib-1.1.86}/src/p3lib/ngt.py +0 -0
- {p3lib-1.1.85 → p3lib-1.1.86}/src/p3lib/ssh.py +0 -0
- {p3lib-1.1.85 → p3lib-1.1.86}/src/p3lib/table_plot.py +0 -0
- {p3lib-1.1.85 → p3lib-1.1.86}/src/p3lib/uio.py +0 -0
- {p3lib-1.1.85 → p3lib-1.1.86}/src/p3lib.egg-info/SOURCES.txt +0 -0
- {p3lib-1.1.85 → p3lib-1.1.86}/src/p3lib.egg-info/dependency_links.txt +0 -0
- {p3lib-1.1.85 → p3lib-1.1.86}/src/p3lib.egg-info/requires.txt +0 -0
- {p3lib-1.1.85 → p3lib-1.1.86}/src/p3lib.egg-info/top_level.txt +0 -0
- {p3lib-1.1.85 → p3lib-1.1.86}/tests/test_conduit.py +0 -0
- {p3lib-1.1.85 → p3lib-1.1.86}/tests/test_json_networking.py +0 -0
- {p3lib-1.1.85 → p3lib-1.1.86}/tests/test_netif.py +0 -0
- {p3lib-1.1.85 → p3lib-1.1.86}/tests/test_ssh.py +0 -0
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.1
|
2
2
|
Name: p3lib
|
3
|
-
Version: 1.1.
|
3
|
+
Version: 1.1.86
|
4
4
|
Summary: A group of python modules for networking, plotting data, config storage, automating boot scripts, ssh access and user input output.
|
5
5
|
Home-page: https://github.com/pjaos/p3lib
|
6
6
|
Author: Paul Austen
|
@@ -1,6 +1,6 @@
|
|
1
1
|
[metadata]
|
2
2
|
name = p3lib
|
3
|
-
version = 1.1.
|
3
|
+
version = 1.1.86
|
4
4
|
author = Paul Austen
|
5
5
|
author_email = pausten.os@gmail.com
|
6
6
|
description = A group of python modules for networking, plotting data, config storage, automating boot scripts, ssh access and user input output.
|
@@ -474,11 +474,11 @@ class ConfigManager(object):
|
|
474
474
|
#Get the config from the stored config file.
|
475
475
|
loadedConfig = self._getDict()
|
476
476
|
#Get list of all the keys from the config file loaded.
|
477
|
-
loadedConfigKeys = loadedConfig.keys()
|
477
|
+
loadedConfigKeys = list(loadedConfig.keys())
|
478
478
|
|
479
479
|
#Get the default config
|
480
|
-
|
481
|
-
defaultConfigKeys =
|
480
|
+
defaultConfig = copy.deepcopy( self._defaultConfig )
|
481
|
+
defaultConfigKeys = list(defaultConfig.keys())
|
482
482
|
|
483
483
|
# Config parameters may be added or dropped over time. We use the default config to
|
484
484
|
# check for parameters that should be added/removed.
|
@@ -486,15 +486,16 @@ class ConfigManager(object):
|
|
486
486
|
# Add any missing keys to the loaded config from the default config.
|
487
487
|
for defaultKey in defaultConfigKeys:
|
488
488
|
if defaultKey not in loadedConfigKeys:
|
489
|
-
|
490
|
-
self._debug("----------> DEFAULT VALUE ADDED: {} = {}".format(defaultKey,
|
489
|
+
loadedConfig[defaultKey] = self._defaultConfig[defaultKey]
|
490
|
+
self._debug("----------> DEFAULT VALUE ADDED: {} = {}".format(defaultKey, loadedConfig[defaultKey]))
|
491
491
|
|
492
492
|
# If some keys have been dropped from the config, remove them.
|
493
493
|
for loadedConfigKey in loadedConfigKeys:
|
494
494
|
if loadedConfigKey not in defaultConfigKeys:
|
495
|
-
self._debug("----------> DROPPED FROM CONFIG: {} = {}".format(loadedConfigKey,
|
496
|
-
|
495
|
+
self._debug("----------> DROPPED FROM CONFIG: {} = {}".format(loadedConfigKey, loadedConfig[loadedConfigKey]))
|
496
|
+
loadedConfig.pop(loadedConfigKey, None)
|
497
497
|
|
498
|
+
self._configDict = loadedConfig
|
498
499
|
self._info("Loaded config from %s" % (self._cfgFile) )
|
499
500
|
|
500
501
|
def inputFloat(self, key, prompt, minValue=UNSET_VALUE, maxValue=UNSET_VALUE):
|
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.1
|
2
2
|
Name: p3lib
|
3
|
-
Version: 1.1.
|
3
|
+
Version: 1.1.86
|
4
4
|
Summary: A group of python modules for networking, plotting data, config storage, automating boot scripts, ssh access and user input output.
|
5
5
|
Home-page: https://github.com/pjaos/p3lib
|
6
6
|
Author: Paul Austen
|
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
|
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
|