sciveo 0.0.49__tar.gz → 0.0.50__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 (40) hide show
  1. {sciveo-0.0.49 → sciveo-0.0.50}/PKG-INFO +1 -1
  2. {sciveo-0.0.49 → sciveo-0.0.50}/sciveo/monitoring/monitor.py +10 -0
  3. sciveo-0.0.50/sciveo/version.py +2 -0
  4. {sciveo-0.0.49 → sciveo-0.0.50}/sciveo.egg-info/PKG-INFO +1 -1
  5. sciveo-0.0.49/sciveo/version.py +0 -2
  6. {sciveo-0.0.49 → sciveo-0.0.50}/README.md +0 -0
  7. {sciveo-0.0.49 → sciveo-0.0.50}/sciveo/__init__.py +0 -0
  8. {sciveo-0.0.49 → sciveo-0.0.50}/sciveo/api/__init__.py +0 -0
  9. {sciveo-0.0.49 → sciveo-0.0.50}/sciveo/api/base.py +0 -0
  10. {sciveo-0.0.49 → sciveo-0.0.50}/sciveo/api/upload.py +0 -0
  11. {sciveo-0.0.49 → sciveo-0.0.50}/sciveo/common/__init__.py +0 -0
  12. {sciveo-0.0.49 → sciveo-0.0.50}/sciveo/common/configuration.py +0 -0
  13. {sciveo-0.0.49 → sciveo-0.0.50}/sciveo/common/model.py +0 -0
  14. {sciveo-0.0.49 → sciveo-0.0.50}/sciveo/common/optimizers.py +0 -0
  15. {sciveo-0.0.49 → sciveo-0.0.50}/sciveo/common/sampling.py +0 -0
  16. {sciveo-0.0.49 → sciveo-0.0.50}/sciveo/common/tools/__init__.py +0 -0
  17. {sciveo-0.0.49 → sciveo-0.0.50}/sciveo/common/tools/daemon.py +0 -0
  18. {sciveo-0.0.49 → sciveo-0.0.50}/sciveo/common/tools/formating.py +0 -0
  19. {sciveo-0.0.49 → sciveo-0.0.50}/sciveo/common/tools/hardware.py +0 -0
  20. {sciveo-0.0.49 → sciveo-0.0.50}/sciveo/common/tools/logger.py +0 -0
  21. {sciveo-0.0.49 → sciveo-0.0.50}/sciveo/common/tools/synchronized.py +0 -0
  22. {sciveo-0.0.49 → sciveo-0.0.50}/sciveo/common/tools/timers.py +0 -0
  23. {sciveo-0.0.49 → sciveo-0.0.50}/sciveo/content/__init__.py +0 -0
  24. {sciveo-0.0.49 → sciveo-0.0.50}/sciveo/content/dataset.py +0 -0
  25. {sciveo-0.0.49 → sciveo-0.0.50}/sciveo/content/experiment.py +0 -0
  26. {sciveo-0.0.49 → sciveo-0.0.50}/sciveo/content/project.py +0 -0
  27. {sciveo-0.0.49 → sciveo-0.0.50}/sciveo/content/runner.py +0 -0
  28. {sciveo-0.0.49 → sciveo-0.0.50}/sciveo/monitoring/__init__.py +0 -0
  29. {sciveo-0.0.49 → sciveo-0.0.50}/sciveo/monitoring/network.py +0 -0
  30. {sciveo-0.0.49 → sciveo-0.0.50}/sciveo/monitoring/start.py +0 -0
  31. {sciveo-0.0.49 → sciveo-0.0.50}/sciveo.egg-info/SOURCES.txt +0 -0
  32. {sciveo-0.0.49 → sciveo-0.0.50}/sciveo.egg-info/dependency_links.txt +0 -0
  33. {sciveo-0.0.49 → sciveo-0.0.50}/sciveo.egg-info/requires.txt +0 -0
  34. {sciveo-0.0.49 → sciveo-0.0.50}/sciveo.egg-info/top_level.txt +0 -0
  35. {sciveo-0.0.49 → sciveo-0.0.50}/setup.cfg +0 -0
  36. {sciveo-0.0.49 → sciveo-0.0.50}/setup.py +0 -0
  37. {sciveo-0.0.49 → sciveo-0.0.50}/test/test_configuration.py +0 -0
  38. {sciveo-0.0.49 → sciveo-0.0.50}/test/test_monitoring.py +0 -0
  39. {sciveo-0.0.49 → sciveo-0.0.50}/test/test_runner.py +0 -0
  40. {sciveo-0.0.49 → sciveo-0.0.50}/test/test_sampling.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: sciveo
3
- Version: 0.0.49
3
+ Version: 0.0.50
4
4
  Description-Content-Type: text/markdown
5
5
  Provides-Extra: mon
6
6
  Provides-Extra: net
@@ -33,6 +33,7 @@ class BaseMonitor(DaemonBase):
33
33
  self.data.setdefault("CPU", {})
34
34
  self.data.setdefault("DISK", {})
35
35
  self.data.setdefault("NET", {})
36
+ self.data.setdefault("TEMP", {})
36
37
  self.data["RAM"] = {}
37
38
  self.data["LOG"] = {}
38
39
  self.list_logs = []
@@ -58,6 +59,7 @@ class BaseMonitor(DaemonBase):
58
59
 
59
60
  def loop(self):
60
61
  self.get_cpu_usage()
62
+ self.get_temperatures()
61
63
  self.get_memory()
62
64
  self.get_gpu()
63
65
  self.get_disk()
@@ -82,6 +84,14 @@ class BaseMonitor(DaemonBase):
82
84
  except Exception:
83
85
  pass
84
86
 
87
+ def get_temperatures(self):
88
+ try:
89
+ temperatures = psutil.sensors_temperatures()
90
+ for k, v in temperatures.items():
91
+ self.data["TEMP"][k] = [t.current for t in v]
92
+ except Exception:
93
+ pass
94
+
85
95
  def get_memory(self):
86
96
  try:
87
97
  memory = psutil.virtual_memory()
@@ -0,0 +1,2 @@
1
+
2
+ __version__ = '0.0.50'
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: sciveo
3
- Version: 0.0.49
3
+ Version: 0.0.50
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.0.49'
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