stores 0.1.2__py3-none-any.whl → 0.1.3__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.
@@ -93,6 +93,7 @@ def init_venv_tools(index_folder: os.PathLike, env_var: dict | None = None):
93
93
  tool_id=tool_id,
94
94
  index_folder=index_folder,
95
95
  venv=VENV_NAME,
96
+ env_var=env_var,
96
97
  )
97
98
  tool = parse_tool_signature(
98
99
  signature_dict=tool_sig,
@@ -105,9 +106,15 @@ def init_venv_tools(index_folder: os.PathLike, env_var: dict | None = None):
105
106
 
106
107
 
107
108
  # TODO: Sanitize tool_id, args, and kwargs
108
- def get_tool_signature(tool_id: str, index_folder: os.PathLike, venv: str = VENV_NAME):
109
+ def get_tool_signature(
110
+ tool_id: str,
111
+ index_folder: os.PathLike,
112
+ venv: str = VENV_NAME,
113
+ env_var: dict | None = None,
114
+ ):
109
115
  module_name = ".".join(tool_id.split(".")[:-1])
110
116
  tool_name = tool_id.split(".")[-1]
117
+ env_var = env_var or {}
111
118
 
112
119
  runner = f"""
113
120
  import pickle, sys, traceback, inspect, enum
@@ -197,6 +204,7 @@ except Exception as e:
197
204
  [f"{venv}/bin/python", "-c", runner],
198
205
  capture_output=True,
199
206
  cwd=index_folder,
207
+ env=env_var,
200
208
  )
201
209
  try:
202
210
  response = pickle.loads(result.stdout)
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: stores
3
- Version: 0.1.2
3
+ Version: 0.1.3
4
4
  Summary: Repository of Python functions and tools for LLMs
5
5
  License-File: LICENSE
6
6
  Requires-Python: >=3.10
@@ -8,8 +8,8 @@ stores/indexes/base_index.py,sha256=K4--_OAFyPNESaisD0JPNRIEffCnjw9nziahDgjdZHU,
8
8
  stores/indexes/index.py,sha256=X8q2Pe6PCmzQ9j0KVvJmqZid1A1RB0jUe-JugcOrl7o,2330
9
9
  stores/indexes/local_index.py,sha256=NS4AWzeMVZ51YPo0eJ_udbF5aASuksG-88YXLDn41fQ,2880
10
10
  stores/indexes/remote_index.py,sha256=dp84keyEDyL-cQrmshwHd4QqDGMw0CTSJcQxqZQiULY,2983
11
- stores/indexes/venv_utils.py,sha256=Nakh2L7gMXpP_0_g7pnjQkB1g-P-jUCxpWSxg68JjbQ,12388
12
- stores-0.1.2.dist-info/METADATA,sha256=GDKpmD4EPbitZaIA2BSEu7r-CWBoo9Y7bO-90f79u6k,3076
13
- stores-0.1.2.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
14
- stores-0.1.2.dist-info/licenses/LICENSE,sha256=VTidYE7_Dam0Dwyq095EhhDIqi47g03oVpLAHQgKws0,1066
15
- stores-0.1.2.dist-info/RECORD,,
11
+ stores/indexes/venv_utils.py,sha256=U69UsHn9APTc615TchW2aZmrBORgbZhuZunv4zQv_hU,12514
12
+ stores-0.1.3.dist-info/METADATA,sha256=4ta-OcEHDgCulY7lk_yxkBb_JDOxbY0keiLisgPS8_U,3076
13
+ stores-0.1.3.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
14
+ stores-0.1.3.dist-info/licenses/LICENSE,sha256=VTidYE7_Dam0Dwyq095EhhDIqi47g03oVpLAHQgKws0,1066
15
+ stores-0.1.3.dist-info/RECORD,,
File without changes