toolchemy 0.2.194__tar.gz → 0.2.195__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.194 → toolchemy-0.2.195}/PKG-INFO +1 -1
  2. {toolchemy-0.2.194 → toolchemy-0.2.195}/pyproject.toml +1 -1
  3. {toolchemy-0.2.194 → toolchemy-0.2.195}/toolchemy/ai/trackers/common.py +7 -0
  4. {toolchemy-0.2.194 → toolchemy-0.2.195}/toolchemy/ai/trackers/mlflow_tracker.py +6 -0
  5. {toolchemy-0.2.194 → toolchemy-0.2.195}/LICENSE +0 -0
  6. {toolchemy-0.2.194 → toolchemy-0.2.195}/toolchemy/__main__.py +0 -0
  7. {toolchemy-0.2.194 → toolchemy-0.2.195}/toolchemy/ai/clients/__init__.py +0 -0
  8. {toolchemy-0.2.194 → toolchemy-0.2.195}/toolchemy/ai/clients/common.py +0 -0
  9. {toolchemy-0.2.194 → toolchemy-0.2.195}/toolchemy/ai/clients/dummy_model_client.py +0 -0
  10. {toolchemy-0.2.194 → toolchemy-0.2.195}/toolchemy/ai/clients/factory.py +0 -0
  11. {toolchemy-0.2.194 → toolchemy-0.2.195}/toolchemy/ai/clients/gemini_client.py +0 -0
  12. {toolchemy-0.2.194 → toolchemy-0.2.195}/toolchemy/ai/clients/ollama_client.py +0 -0
  13. {toolchemy-0.2.194 → toolchemy-0.2.195}/toolchemy/ai/clients/openai_client.py +0 -0
  14. {toolchemy-0.2.194 → toolchemy-0.2.195}/toolchemy/ai/clients/pricing.py +0 -0
  15. {toolchemy-0.2.194 → toolchemy-0.2.195}/toolchemy/ai/clients/whisper_client.py +0 -0
  16. {toolchemy-0.2.194 → toolchemy-0.2.195}/toolchemy/ai/prompter.py +0 -0
  17. {toolchemy-0.2.194 → toolchemy-0.2.195}/toolchemy/ai/trackers/__init__.py +0 -0
  18. {toolchemy-0.2.194 → toolchemy-0.2.195}/toolchemy/ai/trackers/neptune_tracker.py +0 -0
  19. {toolchemy-0.2.194 → toolchemy-0.2.195}/toolchemy/db/lightdb.py +0 -0
  20. {toolchemy-0.2.194 → toolchemy-0.2.195}/toolchemy/utils/__init__.py +0 -0
  21. {toolchemy-0.2.194 → toolchemy-0.2.195}/toolchemy/utils/at_exit_collector.py +0 -0
  22. {toolchemy-0.2.194 → toolchemy-0.2.195}/toolchemy/utils/cacher/__init__.py +0 -0
  23. {toolchemy-0.2.194 → toolchemy-0.2.195}/toolchemy/utils/cacher/cacher_diskcache.py +0 -0
  24. {toolchemy-0.2.194 → toolchemy-0.2.195}/toolchemy/utils/cacher/cacher_pickle.py +0 -0
  25. {toolchemy-0.2.194 → toolchemy-0.2.195}/toolchemy/utils/cacher/cacher_shelve.py +0 -0
  26. {toolchemy-0.2.194 → toolchemy-0.2.195}/toolchemy/utils/cacher/common.py +0 -0
  27. {toolchemy-0.2.194 → toolchemy-0.2.195}/toolchemy/utils/datestimes.py +0 -0
  28. {toolchemy-0.2.194 → toolchemy-0.2.195}/toolchemy/utils/locations.py +0 -0
  29. {toolchemy-0.2.194 → toolchemy-0.2.195}/toolchemy/utils/logger.py +0 -0
  30. {toolchemy-0.2.194 → toolchemy-0.2.195}/toolchemy/utils/timer.py +0 -0
  31. {toolchemy-0.2.194 → toolchemy-0.2.195}/toolchemy/utils/utils.py +0 -0
  32. {toolchemy-0.2.194 → toolchemy-0.2.195}/toolchemy/vision/__init__.py +0 -0
  33. {toolchemy-0.2.194 → toolchemy-0.2.195}/toolchemy/vision/caption_overlay.py +0 -0
  34. {toolchemy-0.2.194 → toolchemy-0.2.195}/toolchemy/vision/image.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: toolchemy
3
- Version: 0.2.194
3
+ Version: 0.2.195
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.194"
3
+ version = "0.2.195"
4
4
  description = "a set of auxiliary programming tools"
5
5
  authors = ["Cyprian Nosek <cyprian.nosek@protonmail.com>"]
6
6
 
@@ -93,6 +93,10 @@ class ITracker(ABC):
93
93
  def get_data(self) -> dict:
94
94
  pass
95
95
 
96
+ @abstractmethod
97
+ def get_traces(self, filter_name: str | None = None):
98
+ pass
99
+
96
100
 
97
101
  class TrackerBase(ITracker, ABC):
98
102
  def __init__(self, experiment_name: str, with_artifact_logging: bool = True, disabled: bool = False):
@@ -132,6 +136,9 @@ class TrackerBase(ITracker, ABC):
132
136
  "tags": self._tags.copy(),
133
137
  }
134
138
 
139
+ def get_traces(self, filter_name: str | None = None):
140
+ raise NotImplementedError()
141
+
135
142
  def _store_param(self, name: str, value: Any):
136
143
  if self._disabled:
137
144
  raise RuntimeError(f"Disabled trackers cannot store params!")
@@ -195,6 +195,12 @@ class MLFlowTracker(TrackerBase):
195
195
  self._store_tag(name, value)
196
196
  self._client.set_experiment_tag(self._experiment_id, name, value)
197
197
 
198
+ def get_traces(self, filter_name: str | None = None):
199
+ filter_string = None
200
+ if filter_name:
201
+ filter_string = f"trace.name = '{filter_name}'"
202
+ return self._client.search_traces(experiment_ids=[self.experiment_id], run_id=self.run_id, filter_string=filter_string)
203
+
198
204
  def _reset_run(self):
199
205
  self._active_run = None
200
206
  self._active_run_id = None
File without changes