stores 0.1.7.dev4__tar.gz → 0.1.7.dev5__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 (55) hide show
  1. {stores-0.1.7.dev4 → stores-0.1.7.dev5}/PKG-INFO +1 -1
  2. {stores-0.1.7.dev4 → stores-0.1.7.dev5}/pyproject.toml +1 -1
  3. {stores-0.1.7.dev4 → stores-0.1.7.dev5}/run_browser_use.py +7 -3
  4. stores-0.1.7.dev5/run_sandbox.py +16 -0
  5. {stores-0.1.7.dev4 → stores-0.1.7.dev5}/stores/indexes/venv_utils.py +22 -10
  6. {stores-0.1.7.dev4 → stores-0.1.7.dev5}/uv.lock +1 -1
  7. {stores-0.1.7.dev4 → stores-0.1.7.dev5}/.gitignore +0 -0
  8. {stores-0.1.7.dev4 → stores-0.1.7.dev5}/.python-version +0 -0
  9. {stores-0.1.7.dev4 → stores-0.1.7.dev5}/LICENSE +0 -0
  10. {stores-0.1.7.dev4 → stores-0.1.7.dev5}/README.md +0 -0
  11. {stores-0.1.7.dev4 → stores-0.1.7.dev5}/examples/README.md +0 -0
  12. {stores-0.1.7.dev4 → stores-0.1.7.dev5}/examples/quickstarts/anthropic_api.py +0 -0
  13. {stores-0.1.7.dev4 → stores-0.1.7.dev5}/examples/quickstarts/google_gemini_auto_call.py +0 -0
  14. {stores-0.1.7.dev4 → stores-0.1.7.dev5}/examples/quickstarts/google_gemini_manual_call.py +0 -0
  15. {stores-0.1.7.dev4 → stores-0.1.7.dev5}/examples/quickstarts/langchain_w_tool_calling.py +0 -0
  16. {stores-0.1.7.dev4 → stores-0.1.7.dev5}/examples/quickstarts/langgraph_agent.py +0 -0
  17. {stores-0.1.7.dev4 → stores-0.1.7.dev5}/examples/quickstarts/litellm_w_tool_calling.py +0 -0
  18. {stores-0.1.7.dev4 → stores-0.1.7.dev5}/examples/quickstarts/llamaindex_agent.py +0 -0
  19. {stores-0.1.7.dev4 → stores-0.1.7.dev5}/examples/quickstarts/openai_agent.py +0 -0
  20. {stores-0.1.7.dev4 → stores-0.1.7.dev5}/examples/quickstarts/openai_chat_completions.py +0 -0
  21. {stores-0.1.7.dev4 → stores-0.1.7.dev5}/examples/quickstarts/openai_responses.py +0 -0
  22. {stores-0.1.7.dev4 → stores-0.1.7.dev5}/local_generator.py +0 -0
  23. {stores-0.1.7.dev4 → stores-0.1.7.dev5}/run_remote_tool.py +0 -0
  24. {stores-0.1.7.dev4 → stores-0.1.7.dev5}/stores/__init__.py +0 -0
  25. {stores-0.1.7.dev4 → stores-0.1.7.dev5}/stores/constants.py +0 -0
  26. {stores-0.1.7.dev4 → stores-0.1.7.dev5}/stores/format.py +0 -0
  27. {stores-0.1.7.dev4 → stores-0.1.7.dev5}/stores/indexes/__init__.py +0 -0
  28. {stores-0.1.7.dev4 → stores-0.1.7.dev5}/stores/indexes/base_index.py +0 -0
  29. {stores-0.1.7.dev4 → stores-0.1.7.dev5}/stores/indexes/index.py +0 -0
  30. {stores-0.1.7.dev4 → stores-0.1.7.dev5}/stores/indexes/local_index.py +0 -0
  31. {stores-0.1.7.dev4 → stores-0.1.7.dev5}/stores/indexes/remote_index.py +0 -0
  32. {stores-0.1.7.dev4 → stores-0.1.7.dev5}/stores/parse.py +0 -0
  33. {stores-0.1.7.dev4 → stores-0.1.7.dev5}/stores/utils.py +0 -0
  34. {stores-0.1.7.dev4 → stores-0.1.7.dev5}/tests/README.md +0 -0
  35. {stores-0.1.7.dev4 → stores-0.1.7.dev5}/tests/mock_index/hello/__init__.py +0 -0
  36. {stores-0.1.7.dev4 → stores-0.1.7.dev5}/tests/mock_index/tools.py +0 -0
  37. {stores-0.1.7.dev4 → stores-0.1.7.dev5}/tests/mock_index/tools.toml +0 -0
  38. {stores-0.1.7.dev4 → stores-0.1.7.dev5}/tests/mock_index_custom_class/foo.py +0 -0
  39. {stores-0.1.7.dev4 → stores-0.1.7.dev5}/tests/mock_index_custom_class/tools.toml +0 -0
  40. {stores-0.1.7.dev4 → stores-0.1.7.dev5}/tests/mock_index_function_error/foo.py +0 -0
  41. {stores-0.1.7.dev4 → stores-0.1.7.dev5}/tests/mock_index_function_error/tools.toml +0 -0
  42. {stores-0.1.7.dev4 → stores-0.1.7.dev5}/tests/mock_index_w_deps/mock_index/__init__.py +0 -0
  43. {stores-0.1.7.dev4 → stores-0.1.7.dev5}/tests/mock_index_w_deps/pyproject.toml +0 -0
  44. {stores-0.1.7.dev4 → stores-0.1.7.dev5}/tests/mock_index_w_deps/requirements.txt +0 -0
  45. {stores-0.1.7.dev4 → stores-0.1.7.dev5}/tests/mock_index_w_deps/tools.toml +0 -0
  46. {stores-0.1.7.dev4 → stores-0.1.7.dev5}/tests/test_format/conftest.py +0 -0
  47. {stores-0.1.7.dev4 → stores-0.1.7.dev5}/tests/test_format/test_format.py +0 -0
  48. {stores-0.1.7.dev4 → stores-0.1.7.dev5}/tests/test_indexes/conftest.py +0 -0
  49. {stores-0.1.7.dev4 → stores-0.1.7.dev5}/tests/test_indexes/test_base_index.py +0 -0
  50. {stores-0.1.7.dev4 → stores-0.1.7.dev5}/tests/test_indexes/test_index.py +0 -0
  51. {stores-0.1.7.dev4 → stores-0.1.7.dev5}/tests/test_indexes/test_local_index.py +0 -0
  52. {stores-0.1.7.dev4 → stores-0.1.7.dev5}/tests/test_indexes/test_remote_index.py +0 -0
  53. {stores-0.1.7.dev4 → stores-0.1.7.dev5}/tests/test_indexes/test_venv_utils.py +0 -0
  54. {stores-0.1.7.dev4 → stores-0.1.7.dev5}/tests/test_parse/conftest.py +0 -0
  55. {stores-0.1.7.dev4 → stores-0.1.7.dev5}/tests/test_parse/test_parse.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: stores
3
- Version: 0.1.7.dev4
3
+ Version: 0.1.7.dev5
4
4
  Summary: Repository of Python functions and tools for LLMs
5
5
  License-File: LICENSE
6
6
  Requires-Python: >=3.10
@@ -1,6 +1,6 @@
1
1
  [project]
2
2
  name = "stores"
3
- version = "0.1.7dev4"
3
+ version = "0.1.7dev5"
4
4
  description = "Repository of Python functions and tools for LLMs"
5
5
  readme = "README.md"
6
6
  requires-python = ">=3.10"
@@ -1,5 +1,3 @@
1
- import asyncio
2
-
3
1
  import stores # noqa
4
2
 
5
3
  index = stores.indexes.LocalIndex(
@@ -27,4 +25,10 @@ async def collect():
27
25
  # print(value)
28
26
 
29
27
 
30
- asyncio.run(collect())
28
+ # asyncio.run(collect())
29
+
30
+ for value in index.stream_execute(
31
+ "basic_browser_use.stream_browser_agent",
32
+ {"task": "What are the latest OpenAI models?"},
33
+ ):
34
+ print(value)
@@ -0,0 +1,16 @@
1
+ import stores # noqa
2
+
3
+ index = stores.Index(
4
+ ["silanthro/python-sandbox"],
5
+ # env_var={
6
+ # "silanthro/python-sandbox": {
7
+ # "DENO_PATH": "/drive3/Silanthro/tools/python-sandbox/deno"
8
+ # }
9
+ # },
10
+ )
11
+ print(index.tools)
12
+
13
+ # for value in index.stream_execute("sandbox.run_code", {"code": "1+1"}):
14
+ # print(value)
15
+
16
+ print(index.execute("sandbox.run_code", {"code": "1+1"}))
@@ -340,16 +340,28 @@ def parse_tool_signature(
340
340
  elif signature_dict.get("isgeneratorfunction"):
341
341
 
342
342
  def func_handler(*args, **kwargs):
343
- for value in run_remote_tool(
344
- tool_id=signature_dict["tool_id"],
345
- index_folder=index_folder,
346
- args=args,
347
- kwargs=kwargs,
348
- venv=venv,
349
- env_var=env_var,
350
- stream=True,
351
- ):
352
- yield value
343
+ async def collect():
344
+ async for value in run_remote_tool(
345
+ tool_id=signature_dict["tool_id"],
346
+ index_folder=index_folder,
347
+ args=args,
348
+ kwargs=kwargs,
349
+ venv=venv,
350
+ env_var=env_var,
351
+ stream=True,
352
+ ):
353
+ yield value
354
+
355
+ loop = asyncio.new_event_loop()
356
+ asyncio.set_event_loop(loop)
357
+ agen = collect()
358
+ try:
359
+ while True:
360
+ yield loop.run_until_complete(agen.__anext__())
361
+ except StopAsyncIteration:
362
+ pass
363
+ finally:
364
+ loop.close()
353
365
  elif signature_dict.get("iscoroutinefunction"):
354
366
 
355
367
  async def func_handler(*args, **kwargs):
@@ -2963,7 +2963,7 @@ wheels = [
2963
2963
 
2964
2964
  [[package]]
2965
2965
  name = "stores"
2966
- version = "0.1.7.dev3"
2966
+ version = "0.1.7.dev5"
2967
2967
  source = { editable = "." }
2968
2968
  dependencies = [
2969
2969
  { name = "dirtyjson" },
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes