sciveo 0.1.14__tar.gz → 0.1.15__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.
- {sciveo-0.1.14 → sciveo-0.1.15}/PKG-INFO +1 -1
- {sciveo-0.1.14 → sciveo-0.1.15}/sciveo/common/tools/configuration.py +6 -6
- {sciveo-0.1.14 → sciveo-0.1.15}/sciveo/common/tools/logger.py +1 -3
- sciveo-0.1.15/sciveo/version.py +2 -0
- {sciveo-0.1.14 → sciveo-0.1.15}/sciveo.egg-info/PKG-INFO +1 -1
- sciveo-0.1.14/sciveo/version.py +0 -2
- {sciveo-0.1.14 → sciveo-0.1.15}/README.md +0 -0
- {sciveo-0.1.14 → sciveo-0.1.15}/sciveo/__init__.py +0 -0
- {sciveo-0.1.14 → sciveo-0.1.15}/sciveo/api/__init__.py +0 -0
- {sciveo-0.1.14 → sciveo-0.1.15}/sciveo/api/base.py +0 -0
- {sciveo-0.1.14 → sciveo-0.1.15}/sciveo/api/upload.py +0 -0
- {sciveo-0.1.14 → sciveo-0.1.15}/sciveo/cli.py +0 -0
- {sciveo-0.1.14 → sciveo-0.1.15}/sciveo/common/__init__.py +0 -0
- {sciveo-0.1.14 → sciveo-0.1.15}/sciveo/common/configuration.py +0 -0
- {sciveo-0.1.14 → sciveo-0.1.15}/sciveo/common/model.py +0 -0
- {sciveo-0.1.14 → sciveo-0.1.15}/sciveo/common/optimizers.py +0 -0
- {sciveo-0.1.14 → sciveo-0.1.15}/sciveo/common/sampling.py +0 -0
- {sciveo-0.1.14 → sciveo-0.1.15}/sciveo/common/tools/__init__.py +0 -0
- {sciveo-0.1.14 → sciveo-0.1.15}/sciveo/common/tools/daemon.py +0 -0
- {sciveo-0.1.14 → sciveo-0.1.15}/sciveo/common/tools/formating.py +0 -0
- {sciveo-0.1.14 → sciveo-0.1.15}/sciveo/common/tools/hardware.py +0 -0
- {sciveo-0.1.14 → sciveo-0.1.15}/sciveo/common/tools/synchronized.py +0 -0
- {sciveo-0.1.14 → sciveo-0.1.15}/sciveo/common/tools/timers.py +0 -0
- {sciveo-0.1.14 → sciveo-0.1.15}/sciveo/content/__init__.py +0 -0
- {sciveo-0.1.14 → sciveo-0.1.15}/sciveo/content/dataset.py +0 -0
- {sciveo-0.1.14 → sciveo-0.1.15}/sciveo/content/experiment.py +0 -0
- {sciveo-0.1.14 → sciveo-0.1.15}/sciveo/content/project.py +0 -0
- {sciveo-0.1.14 → sciveo-0.1.15}/sciveo/content/runner.py +0 -0
- {sciveo-0.1.14 → sciveo-0.1.15}/sciveo/monitoring/__init__.py +0 -0
- {sciveo-0.1.14 → sciveo-0.1.15}/sciveo/monitoring/monitor.py +0 -0
- {sciveo-0.1.14 → sciveo-0.1.15}/sciveo/monitoring/network.py +0 -0
- {sciveo-0.1.14 → sciveo-0.1.15}/sciveo/monitoring/start.py +0 -0
- {sciveo-0.1.14 → sciveo-0.1.15}/sciveo.egg-info/SOURCES.txt +0 -0
- {sciveo-0.1.14 → sciveo-0.1.15}/sciveo.egg-info/dependency_links.txt +0 -0
- {sciveo-0.1.14 → sciveo-0.1.15}/sciveo.egg-info/entry_points.txt +0 -0
- {sciveo-0.1.14 → sciveo-0.1.15}/sciveo.egg-info/requires.txt +0 -0
- {sciveo-0.1.14 → sciveo-0.1.15}/sciveo.egg-info/top_level.txt +0 -0
- {sciveo-0.1.14 → sciveo-0.1.15}/setup.cfg +0 -0
- {sciveo-0.1.14 → sciveo-0.1.15}/setup.py +0 -0
- {sciveo-0.1.14 → sciveo-0.1.15}/test/test_configuration.py +0 -0
- {sciveo-0.1.14 → sciveo-0.1.15}/test/test_monitoring.py +0 -0
- {sciveo-0.1.14 → sciveo-0.1.15}/test/test_runner.py +0 -0
- {sciveo-0.1.14 → sciveo-0.1.15}/test/test_sampling.py +0 -0
|
@@ -18,9 +18,9 @@ class GlobalConfiguration:
|
|
|
18
18
|
config = None
|
|
19
19
|
lock_config = threading.Lock()
|
|
20
20
|
|
|
21
|
-
def __init__(self) -> None:
|
|
21
|
+
def __init__(self, name) -> None:
|
|
22
22
|
home = os.path.expanduser('~')
|
|
23
|
-
self.base_path = os.path.join(home, '.
|
|
23
|
+
self.base_path = os.path.join(home, f'.{name}')
|
|
24
24
|
self.data = {}
|
|
25
25
|
|
|
26
26
|
self.default = {
|
|
@@ -35,15 +35,15 @@ class GlobalConfiguration:
|
|
|
35
35
|
error(type(self).__name__, "Exception", e)
|
|
36
36
|
|
|
37
37
|
@staticmethod
|
|
38
|
-
def get():
|
|
38
|
+
def get(name='sciveo', reload=False):
|
|
39
39
|
with GlobalConfiguration.lock_config:
|
|
40
|
-
if GlobalConfiguration.config is None:
|
|
41
|
-
GlobalConfiguration.config = GlobalConfiguration()
|
|
40
|
+
if GlobalConfiguration.config is None or reload:
|
|
41
|
+
GlobalConfiguration.config = GlobalConfiguration(name)
|
|
42
42
|
return GlobalConfiguration.config
|
|
43
43
|
|
|
44
44
|
def __getitem__(self, key):
|
|
45
45
|
key = key.lower()
|
|
46
|
-
return self.data.get(key, self.default.get(key,
|
|
46
|
+
return self.data.get(key, self.default.get(key, None))
|
|
47
47
|
|
|
48
48
|
def save_kv(self, key, value):
|
|
49
49
|
key = key.strip().lower().replace("sciveo_", "")
|
|
@@ -11,7 +11,6 @@
|
|
|
11
11
|
|
|
12
12
|
import os
|
|
13
13
|
import logging
|
|
14
|
-
import traceback
|
|
15
14
|
from threading import Lock
|
|
16
15
|
|
|
17
16
|
from sciveo.common.tools.configuration import GlobalConfiguration
|
|
@@ -47,5 +46,4 @@ def error(*args):
|
|
|
47
46
|
def critical(*args):
|
|
48
47
|
_sciveo_get_logger(SCIVEO_LOGGER_NAME).critical(args)
|
|
49
48
|
def exception(e, *args):
|
|
50
|
-
|
|
51
|
-
_sciveo_get_logger(SCIVEO_LOGGER_NAME).error(e_str, args)
|
|
49
|
+
_sciveo_get_logger(SCIVEO_LOGGER_NAME).exception(args)
|
sciveo-0.1.14/sciveo/version.py
DELETED
|
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
|
|
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
|