toolchemy 0.2.185__py3-none-any.whl → 0.2.186__py3-none-any.whl

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.
toolchemy/__main__.py CHANGED
@@ -1,9 +1,18 @@
1
- from toolchemy.utils.logger import get_logger
1
+ import click
2
2
 
3
+ from toolchemy.ai.prompter import run_studio
4
+
5
+
6
+ @click.group(context_settings=dict(allow_interspersed_args=False))
7
+ def cli():
8
+ pass
9
+
10
+
11
+ @cli.command(name="prompt-studio")
12
+ @click.option("--registry-dir", "-r", type=str, required=False, default=None, help="Optional path to the registry dir")
13
+ def prompt_studio(registry_dir: str | None = None):
14
+ run_studio(registry_path=registry_dir)
3
15
 
4
- def main():
5
- logger = get_logger(log_dir="/tmp")
6
- logger.info("test")
7
16
 
8
17
  if __name__ == '__main__':
9
- main()
18
+ cli()
toolchemy/ai/prompter.py CHANGED
@@ -27,8 +27,8 @@ class IPrompter(ABC):
27
27
  pass
28
28
 
29
29
 
30
- def run_studio():
31
- prompter = PrompterMLflow()
30
+ def run_studio(registry_path: str | None = None):
31
+ prompter = PrompterMLflow(registry_store_dir=registry_path)
32
32
  prompter.run_studio()
33
33
 
34
34
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: toolchemy
3
- Version: 0.2.185
3
+ Version: 0.2.186
4
4
  Summary: a set of auxiliary programming tools
5
5
  License-File: LICENSE
6
6
  Author: Cyprian Nosek
@@ -16,7 +16,7 @@ Requires-Dist: mlflow (>=3.8.1,<4.0.0)
16
16
  Requires-Dist: neptune-scale (>=0.13.0,<0.14.0)
17
17
  Requires-Dist: numpy (==2.0.2)
18
18
  Requires-Dist: ollama (>=0.6.0,<0.7.0)
19
- Requires-Dist: openai (>=1.82.1,<2.0.0)
19
+ Requires-Dist: openai (>=2.16.0,<3.0.0)
20
20
  Requires-Dist: pillow (>=11.2.1,<12.0.0)
21
21
  Requires-Dist: python-dateutil (>=2.9.0.post0,<3.0.0)
22
22
  Requires-Dist: tenacity (>=9.1.2,<10.0.0)
@@ -1,4 +1,4 @@
1
- toolchemy/__main__.py,sha256=WSJ1UlOGt4ZcWWGB7HRAdeAFcna0Dx7hhiWCi7QjCqM,163
1
+ toolchemy/__main__.py,sha256=mhNcxy1nsZAlN9IU3Yzeksgju8VbJci0xP7o7osZWR0,439
2
2
  toolchemy/ai/clients/__init__.py,sha256=MaTGkzEWZL6BVhgAdd2zfFc9bzYD5p8DRYIc2m_hbus,640
3
3
  toolchemy/ai/clients/common.py,sha256=Ccb3Y1jNZUxtburSk5kddO8rrnaBjgxKtAADlb1WLV8,18943
4
4
  toolchemy/ai/clients/dummy_model_client.py,sha256=hBCVzXFfV61OYdgU4hIJNIxlm9-w63ME-jfQyTo1GFg,2417
@@ -8,7 +8,7 @@ toolchemy/ai/clients/ollama_client.py,sha256=_PYI_udyTBmtKZlvRECzeWKrrR-NwTlaGJS
8
8
  toolchemy/ai/clients/openai_client.py,sha256=20Yt8azldRzbd8ylKqoD5frIEj8LhScjSYhGCt0WcWk,3611
9
9
  toolchemy/ai/clients/pricing.py,sha256=FuAuarQIaLl-e6KLzLbiWawWpqjY_kV4poO_qiTuHfA,1953
10
10
  toolchemy/ai/clients/whisper_client.py,sha256=AQcY2FiGLu0JTYw0zzjjH-7WyZ6NbQWrtxFa6iYhR4M,5252
11
- toolchemy/ai/prompter.py,sha256=vp6IrCu3c8IJmXGzVjFjOWdf3EvnUW0Z1Bn5STHAIbs,4933
11
+ toolchemy/ai/prompter.py,sha256=29s1vWOL-ROacqprAmRCLMd_MlEOfUWjT48ZdVoZIAQ,4997
12
12
  toolchemy/ai/trackers/__init__.py,sha256=FUv2NuGSmCpDrbE7rmeG0VmQr9rJRC-Y_D0MuQa0e-M,214
13
13
  toolchemy/ai/trackers/common.py,sha256=Y8_QHD1BAsJcBEHAekO-0Txe2MeBwGqh9TM53Ta49qk,6202
14
14
  toolchemy/ai/trackers/mlflow_tracker.py,sha256=fVX3YdNEDs9aS5UhlY4boaAsz2ArKnawrhLKli0AS2s,8627
@@ -29,8 +29,8 @@ toolchemy/utils/utils.py,sha256=JCRNRBJ4vRWzl-GtbetJs8GM72ImVAbDkPIXrvp3IE0,5167
29
29
  toolchemy/vision/__init__.py,sha256=p-sQaVd1FUQ1LMGdF51y28Z9IJvMVWaCdvrL0-jKDgc,141
30
30
  toolchemy/vision/caption_overlay.py,sha256=fLxHMD7IPSh5XJC5pvdPf1wZvHidlOvnXt_wgW7UJjk,2825
31
31
  toolchemy/vision/image.py,sha256=5q7MRK2SEyqWPB62duuzJqGmqBfQP1Tgphu01nP7O8s,2392
32
- toolchemy-0.2.185.dist-info/METADATA,sha256=wJElgbNStdDSNOu1GnJR4WyA26XSyBAVsXiCnUxEzzg,942
33
- toolchemy-0.2.185.dist-info/WHEEL,sha256=3ny-bZhpXrU6vSQ1UPG34FoxZBp3lVcvK0LkgUz6VLk,88
34
- toolchemy-0.2.185.dist-info/entry_points.txt,sha256=6l1k81pMAx7Ap1FaX8qW8SDwsONnNLOb28QQD9t6gto,66
35
- toolchemy-0.2.185.dist-info/licenses/LICENSE,sha256=JY5EPk3yvwZqQHk8JrQ-TFARdyfVTK9uUKV6CuKo_Bs,1062
36
- toolchemy-0.2.185.dist-info/RECORD,,
32
+ toolchemy-0.2.186.dist-info/METADATA,sha256=j4lN0O8uj6hTqaRDMmWqrLrnPwOMe97L8jz6VTgveYo,942
33
+ toolchemy-0.2.186.dist-info/WHEEL,sha256=3ny-bZhpXrU6vSQ1UPG34FoxZBp3lVcvK0LkgUz6VLk,88
34
+ toolchemy-0.2.186.dist-info/entry_points.txt,sha256=6l1k81pMAx7Ap1FaX8qW8SDwsONnNLOb28QQD9t6gto,66
35
+ toolchemy-0.2.186.dist-info/licenses/LICENSE,sha256=JY5EPk3yvwZqQHk8JrQ-TFARdyfVTK9uUKV6CuKo_Bs,1062
36
+ toolchemy-0.2.186.dist-info/RECORD,,