sciveo 0.1.13__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.
Files changed (43) hide show
  1. {sciveo-0.1.13 → sciveo-0.1.15}/PKG-INFO +1 -1
  2. {sciveo-0.1.13 → sciveo-0.1.15}/sciveo/common/tools/configuration.py +6 -6
  3. {sciveo-0.1.13 → sciveo-0.1.15}/sciveo/common/tools/logger.py +1 -2
  4. sciveo-0.1.15/sciveo/version.py +2 -0
  5. {sciveo-0.1.13 → sciveo-0.1.15}/sciveo.egg-info/PKG-INFO +1 -1
  6. sciveo-0.1.13/sciveo/version.py +0 -2
  7. {sciveo-0.1.13 → sciveo-0.1.15}/README.md +0 -0
  8. {sciveo-0.1.13 → sciveo-0.1.15}/sciveo/__init__.py +0 -0
  9. {sciveo-0.1.13 → sciveo-0.1.15}/sciveo/api/__init__.py +0 -0
  10. {sciveo-0.1.13 → sciveo-0.1.15}/sciveo/api/base.py +0 -0
  11. {sciveo-0.1.13 → sciveo-0.1.15}/sciveo/api/upload.py +0 -0
  12. {sciveo-0.1.13 → sciveo-0.1.15}/sciveo/cli.py +0 -0
  13. {sciveo-0.1.13 → sciveo-0.1.15}/sciveo/common/__init__.py +0 -0
  14. {sciveo-0.1.13 → sciveo-0.1.15}/sciveo/common/configuration.py +0 -0
  15. {sciveo-0.1.13 → sciveo-0.1.15}/sciveo/common/model.py +0 -0
  16. {sciveo-0.1.13 → sciveo-0.1.15}/sciveo/common/optimizers.py +0 -0
  17. {sciveo-0.1.13 → sciveo-0.1.15}/sciveo/common/sampling.py +0 -0
  18. {sciveo-0.1.13 → sciveo-0.1.15}/sciveo/common/tools/__init__.py +0 -0
  19. {sciveo-0.1.13 → sciveo-0.1.15}/sciveo/common/tools/daemon.py +0 -0
  20. {sciveo-0.1.13 → sciveo-0.1.15}/sciveo/common/tools/formating.py +0 -0
  21. {sciveo-0.1.13 → sciveo-0.1.15}/sciveo/common/tools/hardware.py +0 -0
  22. {sciveo-0.1.13 → sciveo-0.1.15}/sciveo/common/tools/synchronized.py +0 -0
  23. {sciveo-0.1.13 → sciveo-0.1.15}/sciveo/common/tools/timers.py +0 -0
  24. {sciveo-0.1.13 → sciveo-0.1.15}/sciveo/content/__init__.py +0 -0
  25. {sciveo-0.1.13 → sciveo-0.1.15}/sciveo/content/dataset.py +0 -0
  26. {sciveo-0.1.13 → sciveo-0.1.15}/sciveo/content/experiment.py +0 -0
  27. {sciveo-0.1.13 → sciveo-0.1.15}/sciveo/content/project.py +0 -0
  28. {sciveo-0.1.13 → sciveo-0.1.15}/sciveo/content/runner.py +0 -0
  29. {sciveo-0.1.13 → sciveo-0.1.15}/sciveo/monitoring/__init__.py +0 -0
  30. {sciveo-0.1.13 → sciveo-0.1.15}/sciveo/monitoring/monitor.py +0 -0
  31. {sciveo-0.1.13 → sciveo-0.1.15}/sciveo/monitoring/network.py +0 -0
  32. {sciveo-0.1.13 → sciveo-0.1.15}/sciveo/monitoring/start.py +0 -0
  33. {sciveo-0.1.13 → sciveo-0.1.15}/sciveo.egg-info/SOURCES.txt +0 -0
  34. {sciveo-0.1.13 → sciveo-0.1.15}/sciveo.egg-info/dependency_links.txt +0 -0
  35. {sciveo-0.1.13 → sciveo-0.1.15}/sciveo.egg-info/entry_points.txt +0 -0
  36. {sciveo-0.1.13 → sciveo-0.1.15}/sciveo.egg-info/requires.txt +0 -0
  37. {sciveo-0.1.13 → sciveo-0.1.15}/sciveo.egg-info/top_level.txt +0 -0
  38. {sciveo-0.1.13 → sciveo-0.1.15}/setup.cfg +0 -0
  39. {sciveo-0.1.13 → sciveo-0.1.15}/setup.py +0 -0
  40. {sciveo-0.1.13 → sciveo-0.1.15}/test/test_configuration.py +0 -0
  41. {sciveo-0.1.13 → sciveo-0.1.15}/test/test_monitoring.py +0 -0
  42. {sciveo-0.1.13 → sciveo-0.1.15}/test/test_runner.py +0 -0
  43. {sciveo-0.1.13 → sciveo-0.1.15}/test/test_sampling.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: sciveo
3
- Version: 0.1.13
3
+ Version: 0.1.15
4
4
  Description-Content-Type: text/markdown
5
5
  Provides-Extra: mon
6
6
  Provides-Extra: net
@@ -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, '.sciveo')
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_", "")
@@ -46,5 +46,4 @@ def error(*args):
46
46
  def critical(*args):
47
47
  _sciveo_get_logger(SCIVEO_LOGGER_NAME).critical(args)
48
48
  def exception(e, *args):
49
- e_str = ''.join(traceback.format_tb(e.__traceback__))
50
- _sciveo_get_logger(SCIVEO_LOGGER_NAME).error(e_str, args)
49
+ _sciveo_get_logger(SCIVEO_LOGGER_NAME).exception(args)
@@ -0,0 +1,2 @@
1
+
2
+ __version__ = '0.1.15'
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: sciveo
3
- Version: 0.1.13
3
+ Version: 0.1.15
4
4
  Description-Content-Type: text/markdown
5
5
  Provides-Extra: mon
6
6
  Provides-Extra: net
@@ -1,2 +0,0 @@
1
-
2
- __version__ = '0.1.13'
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