toolchemy 0.2.193__tar.gz → 0.2.194__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 (34) hide show
  1. {toolchemy-0.2.193 → toolchemy-0.2.194}/PKG-INFO +1 -1
  2. {toolchemy-0.2.193 → toolchemy-0.2.194}/pyproject.toml +1 -1
  3. {toolchemy-0.2.193 → toolchemy-0.2.194}/toolchemy/ai/trackers/common.py +18 -0
  4. {toolchemy-0.2.193 → toolchemy-0.2.194}/toolchemy/ai/trackers/mlflow_tracker.py +10 -0
  5. {toolchemy-0.2.193 → toolchemy-0.2.194}/toolchemy/ai/trackers/neptune_tracker.py +4 -0
  6. {toolchemy-0.2.193 → toolchemy-0.2.194}/LICENSE +0 -0
  7. {toolchemy-0.2.193 → toolchemy-0.2.194}/toolchemy/__main__.py +0 -0
  8. {toolchemy-0.2.193 → toolchemy-0.2.194}/toolchemy/ai/clients/__init__.py +0 -0
  9. {toolchemy-0.2.193 → toolchemy-0.2.194}/toolchemy/ai/clients/common.py +0 -0
  10. {toolchemy-0.2.193 → toolchemy-0.2.194}/toolchemy/ai/clients/dummy_model_client.py +0 -0
  11. {toolchemy-0.2.193 → toolchemy-0.2.194}/toolchemy/ai/clients/factory.py +0 -0
  12. {toolchemy-0.2.193 → toolchemy-0.2.194}/toolchemy/ai/clients/gemini_client.py +0 -0
  13. {toolchemy-0.2.193 → toolchemy-0.2.194}/toolchemy/ai/clients/ollama_client.py +0 -0
  14. {toolchemy-0.2.193 → toolchemy-0.2.194}/toolchemy/ai/clients/openai_client.py +0 -0
  15. {toolchemy-0.2.193 → toolchemy-0.2.194}/toolchemy/ai/clients/pricing.py +0 -0
  16. {toolchemy-0.2.193 → toolchemy-0.2.194}/toolchemy/ai/clients/whisper_client.py +0 -0
  17. {toolchemy-0.2.193 → toolchemy-0.2.194}/toolchemy/ai/prompter.py +0 -0
  18. {toolchemy-0.2.193 → toolchemy-0.2.194}/toolchemy/ai/trackers/__init__.py +0 -0
  19. {toolchemy-0.2.193 → toolchemy-0.2.194}/toolchemy/db/lightdb.py +0 -0
  20. {toolchemy-0.2.193 → toolchemy-0.2.194}/toolchemy/utils/__init__.py +0 -0
  21. {toolchemy-0.2.193 → toolchemy-0.2.194}/toolchemy/utils/at_exit_collector.py +0 -0
  22. {toolchemy-0.2.193 → toolchemy-0.2.194}/toolchemy/utils/cacher/__init__.py +0 -0
  23. {toolchemy-0.2.193 → toolchemy-0.2.194}/toolchemy/utils/cacher/cacher_diskcache.py +0 -0
  24. {toolchemy-0.2.193 → toolchemy-0.2.194}/toolchemy/utils/cacher/cacher_pickle.py +0 -0
  25. {toolchemy-0.2.193 → toolchemy-0.2.194}/toolchemy/utils/cacher/cacher_shelve.py +0 -0
  26. {toolchemy-0.2.193 → toolchemy-0.2.194}/toolchemy/utils/cacher/common.py +0 -0
  27. {toolchemy-0.2.193 → toolchemy-0.2.194}/toolchemy/utils/datestimes.py +0 -0
  28. {toolchemy-0.2.193 → toolchemy-0.2.194}/toolchemy/utils/locations.py +0 -0
  29. {toolchemy-0.2.193 → toolchemy-0.2.194}/toolchemy/utils/logger.py +0 -0
  30. {toolchemy-0.2.193 → toolchemy-0.2.194}/toolchemy/utils/timer.py +0 -0
  31. {toolchemy-0.2.193 → toolchemy-0.2.194}/toolchemy/utils/utils.py +0 -0
  32. {toolchemy-0.2.193 → toolchemy-0.2.194}/toolchemy/vision/__init__.py +0 -0
  33. {toolchemy-0.2.193 → toolchemy-0.2.194}/toolchemy/vision/caption_overlay.py +0 -0
  34. {toolchemy-0.2.193 → toolchemy-0.2.194}/toolchemy/vision/image.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: toolchemy
3
- Version: 0.2.193
3
+ Version: 0.2.194
4
4
  Summary: a set of auxiliary programming tools
5
5
  License-File: LICENSE
6
6
  Author: Cyprian Nosek
@@ -1,6 +1,6 @@
1
1
  [tool.poetry]
2
2
  name = "toolchemy"
3
- version = "0.2.193"
3
+ version = "0.2.194"
4
4
  description = "a set of auxiliary programming tools"
5
5
  authors = ["Cyprian Nosek <cyprian.nosek@protonmail.com>"]
6
6
 
@@ -11,11 +11,21 @@ class ITracker(ABC):
11
11
  def experiment_name(self) -> str:
12
12
  pass
13
13
 
14
+ @property
15
+ @abstractmethod
16
+ def experiment_id(self) -> str:
17
+ pass
18
+
14
19
  @property
15
20
  @abstractmethod
16
21
  def run_name(self) -> str:
17
22
  pass
18
23
 
24
+ @property
25
+ @abstractmethod
26
+ def run_id(self) -> str:
27
+ pass
28
+
19
29
  @abstractmethod
20
30
  def start_run(
21
31
  self, run_id: str = None,
@@ -101,6 +111,10 @@ class TrackerBase(ITracker, ABC):
101
111
  def experiment_name(self) -> str:
102
112
  return self._experiment_name
103
113
 
114
+ @property
115
+ def experiment_id(self) -> str:
116
+ return self._experiment_name
117
+
104
118
  def get_max_metric_value(self, name: str) -> float:
105
119
  return max(self._metrics[name], key=lambda el: el['value'])
106
120
 
@@ -166,6 +180,10 @@ class InMemoryTracker(TrackerBase):
166
180
  def run_name(self) -> str:
167
181
  return self._run_name
168
182
 
183
+ @property
184
+ def run_id(self) -> str:
185
+ return self._run_name
186
+
169
187
  def start_run(
170
188
  self, run_id: str = None,
171
189
  run_name: str = None,
@@ -39,6 +39,16 @@ class MLFlowTracker(TrackerBase):
39
39
  raise RuntimeError("There is no active run!")
40
40
  return self._active_run.info.run_name
41
41
 
42
+ @property
43
+ def run_id(self) -> str:
44
+ if not self._active_run:
45
+ raise RuntimeError("There is no active run!")
46
+ return self._active_run.info.run_id
47
+
48
+ @property
49
+ def experiment_id(self) -> str:
50
+ return self._experiment_id
51
+
42
52
  def start_run(
43
53
  self, run_id: str = None,
44
54
  run_name: str = None,
@@ -20,6 +20,10 @@ class NeptuneAITracker(TrackerBase):
20
20
  raise RuntimeError("There is no active run!")
21
21
  return self._active_run_id
22
22
 
23
+ @property
24
+ def run_id(self) -> str:
25
+ return self.run_name
26
+
23
27
 
24
28
  def start_run(
25
29
  self, run_id: str = None,
File without changes