npcsh 0.3.27.5__tar.gz → 0.3.27.7__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 (70) hide show
  1. {npcsh-0.3.27.5/npcsh.egg-info → npcsh-0.3.27.7}/PKG-INFO +5 -1
  2. {npcsh-0.3.27.5 → npcsh-0.3.27.7}/npcsh/response.py +3 -1
  3. {npcsh-0.3.27.5 → npcsh-0.3.27.7}/npcsh/shell_helpers.py +10 -2
  4. {npcsh-0.3.27.5 → npcsh-0.3.27.7/npcsh.egg-info}/PKG-INFO +5 -1
  5. {npcsh-0.3.27.5 → npcsh-0.3.27.7}/npcsh.egg-info/requires.txt +4 -0
  6. {npcsh-0.3.27.5 → npcsh-0.3.27.7}/setup.py +5 -1
  7. {npcsh-0.3.27.5 → npcsh-0.3.27.7}/LICENSE +0 -0
  8. {npcsh-0.3.27.5 → npcsh-0.3.27.7}/MANIFEST.in +0 -0
  9. {npcsh-0.3.27.5 → npcsh-0.3.27.7}/README.md +0 -0
  10. {npcsh-0.3.27.5 → npcsh-0.3.27.7}/npcsh/__init__.py +0 -0
  11. {npcsh-0.3.27.5 → npcsh-0.3.27.7}/npcsh/audio.py +0 -0
  12. {npcsh-0.3.27.5 → npcsh-0.3.27.7}/npcsh/cli.py +0 -0
  13. {npcsh-0.3.27.5 → npcsh-0.3.27.7}/npcsh/command_history.py +0 -0
  14. {npcsh-0.3.27.5 → npcsh-0.3.27.7}/npcsh/conversation.py +0 -0
  15. {npcsh-0.3.27.5 → npcsh-0.3.27.7}/npcsh/data_models.py +0 -0
  16. {npcsh-0.3.27.5 → npcsh-0.3.27.7}/npcsh/dataframes.py +0 -0
  17. {npcsh-0.3.27.5 → npcsh-0.3.27.7}/npcsh/embeddings.py +0 -0
  18. {npcsh-0.3.27.5 → npcsh-0.3.27.7}/npcsh/helpers.py +0 -0
  19. {npcsh-0.3.27.5 → npcsh-0.3.27.7}/npcsh/image.py +0 -0
  20. {npcsh-0.3.27.5 → npcsh-0.3.27.7}/npcsh/image_gen.py +0 -0
  21. {npcsh-0.3.27.5 → npcsh-0.3.27.7}/npcsh/knowledge_graph.py +0 -0
  22. {npcsh-0.3.27.5 → npcsh-0.3.27.7}/npcsh/llm_funcs.py +0 -0
  23. {npcsh-0.3.27.5 → npcsh-0.3.27.7}/npcsh/load_data.py +0 -0
  24. {npcsh-0.3.27.5 → npcsh-0.3.27.7}/npcsh/main.py +0 -0
  25. {npcsh-0.3.27.5 → npcsh-0.3.27.7}/npcsh/model_runner.py +0 -0
  26. {npcsh-0.3.27.5 → npcsh-0.3.27.7}/npcsh/npc_compiler.py +0 -0
  27. {npcsh-0.3.27.5 → npcsh-0.3.27.7}/npcsh/npc_sysenv.py +0 -0
  28. {npcsh-0.3.27.5 → npcsh-0.3.27.7}/npcsh/npc_team/assembly_lines/test_pipeline.py +0 -0
  29. {npcsh-0.3.27.5 → npcsh-0.3.27.7}/npcsh/npc_team/corca.npc +0 -0
  30. {npcsh-0.3.27.5 → npcsh-0.3.27.7}/npcsh/npc_team/foreman.npc +0 -0
  31. {npcsh-0.3.27.5 → npcsh-0.3.27.7}/npcsh/npc_team/npcsh.ctx +0 -0
  32. {npcsh-0.3.27.5 → npcsh-0.3.27.7}/npcsh/npc_team/sibiji.npc +0 -0
  33. {npcsh-0.3.27.5 → npcsh-0.3.27.7}/npcsh/npc_team/templates/analytics/celona.npc +0 -0
  34. {npcsh-0.3.27.5 → npcsh-0.3.27.7}/npcsh/npc_team/templates/hr_support/raone.npc +0 -0
  35. {npcsh-0.3.27.5 → npcsh-0.3.27.7}/npcsh/npc_team/templates/humanities/eriane.npc +0 -0
  36. {npcsh-0.3.27.5 → npcsh-0.3.27.7}/npcsh/npc_team/templates/it_support/lineru.npc +0 -0
  37. {npcsh-0.3.27.5 → npcsh-0.3.27.7}/npcsh/npc_team/templates/marketing/slean.npc +0 -0
  38. {npcsh-0.3.27.5 → npcsh-0.3.27.7}/npcsh/npc_team/templates/philosophy/maurawa.npc +0 -0
  39. {npcsh-0.3.27.5 → npcsh-0.3.27.7}/npcsh/npc_team/templates/sales/turnic.npc +0 -0
  40. {npcsh-0.3.27.5 → npcsh-0.3.27.7}/npcsh/npc_team/templates/software/welxor.npc +0 -0
  41. {npcsh-0.3.27.5 → npcsh-0.3.27.7}/npcsh/npc_team/tools/calculator.tool +0 -0
  42. {npcsh-0.3.27.5 → npcsh-0.3.27.7}/npcsh/npc_team/tools/generic_search.tool +0 -0
  43. {npcsh-0.3.27.5 → npcsh-0.3.27.7}/npcsh/npc_team/tools/image_generation.tool +0 -0
  44. {npcsh-0.3.27.5 → npcsh-0.3.27.7}/npcsh/npc_team/tools/local_search.tool +0 -0
  45. {npcsh-0.3.27.5 → npcsh-0.3.27.7}/npcsh/npc_team/tools/screen_cap.tool +0 -0
  46. {npcsh-0.3.27.5 → npcsh-0.3.27.7}/npcsh/npc_team/tools/sql_executor.tool +0 -0
  47. {npcsh-0.3.27.5 → npcsh-0.3.27.7}/npcsh/plonk.py +0 -0
  48. {npcsh-0.3.27.5 → npcsh-0.3.27.7}/npcsh/search.py +0 -0
  49. {npcsh-0.3.27.5 → npcsh-0.3.27.7}/npcsh/serve.py +0 -0
  50. {npcsh-0.3.27.5 → npcsh-0.3.27.7}/npcsh/shell.py +0 -0
  51. {npcsh-0.3.27.5 → npcsh-0.3.27.7}/npcsh/stream.py +0 -0
  52. {npcsh-0.3.27.5 → npcsh-0.3.27.7}/npcsh/video.py +0 -0
  53. {npcsh-0.3.27.5 → npcsh-0.3.27.7}/npcsh.egg-info/SOURCES.txt +0 -0
  54. {npcsh-0.3.27.5 → npcsh-0.3.27.7}/npcsh.egg-info/dependency_links.txt +0 -0
  55. {npcsh-0.3.27.5 → npcsh-0.3.27.7}/npcsh.egg-info/entry_points.txt +0 -0
  56. {npcsh-0.3.27.5 → npcsh-0.3.27.7}/npcsh.egg-info/top_level.txt +0 -0
  57. {npcsh-0.3.27.5 → npcsh-0.3.27.7}/setup.cfg +0 -0
  58. {npcsh-0.3.27.5 → npcsh-0.3.27.7}/tests/test_chromadb.py +0 -0
  59. {npcsh-0.3.27.5 → npcsh-0.3.27.7}/tests/test_embedding_check.py +0 -0
  60. {npcsh-0.3.27.5 → npcsh-0.3.27.7}/tests/test_embedding_methods.py +0 -0
  61. {npcsh-0.3.27.5 → npcsh-0.3.27.7}/tests/test_helpers.py +0 -0
  62. {npcsh-0.3.27.5 → npcsh-0.3.27.7}/tests/test_knowledge_graph_rag.py +0 -0
  63. {npcsh-0.3.27.5 → npcsh-0.3.27.7}/tests/test_llm_funcs.py +0 -0
  64. {npcsh-0.3.27.5 → npcsh-0.3.27.7}/tests/test_networkx_vis.py +0 -0
  65. {npcsh-0.3.27.5 → npcsh-0.3.27.7}/tests/test_npc_compiler.py +0 -0
  66. {npcsh-0.3.27.5 → npcsh-0.3.27.7}/tests/test_npcsh.py +0 -0
  67. {npcsh-0.3.27.5 → npcsh-0.3.27.7}/tests/test_npcteam.py +0 -0
  68. {npcsh-0.3.27.5 → npcsh-0.3.27.7}/tests/test_shell_helpers.py +0 -0
  69. {npcsh-0.3.27.5 → npcsh-0.3.27.7}/tests/test_tars.py +0 -0
  70. {npcsh-0.3.27.5 → npcsh-0.3.27.7}/tests/test_tool_use.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: npcsh
3
- Version: 0.3.27.5
3
+ Version: 0.3.27.7
4
4
  Summary: npcsh is a command line tool for integrating LLMs into everyday workflows and for orchestrating teams of NPCs.
5
5
  Home-page: https://github.com/cagostino/npcsh
6
6
  Author: Christopher Agostino
@@ -17,8 +17,12 @@ Requires-Dist: requests
17
17
  Requires-Dist: matplotlib
18
18
  Requires-Dist: markdown
19
19
  Requires-Dist: PyYAML
20
+ Requires-Dist: PyMuPDF
21
+ Requires-Dist: pyautogui
20
22
  Requires-Dist: pygments
23
+ Requires-Dist: sqlalchemy
21
24
  Requires-Dist: termcolor
25
+ Requires-Dist: rich
22
26
  Requires-Dist: colorama
23
27
  Requires-Dist: Pillow
24
28
  Requires-Dist: python-dotenv
@@ -230,7 +230,9 @@ def get_openai_response(
230
230
 
231
231
  # try:
232
232
  if api_key is None:
233
- api_key = os.environ["OPENAI_API_KEY"]
233
+ api_key = os.environ.get("OPENAI_API_KEY", "")
234
+ if len(api_key) == 0:
235
+ raise ValueError("API key not found.")
234
236
  client = OpenAI(api_key=api_key)
235
237
  # print(npc)
236
238
 
@@ -24,12 +24,20 @@ import select
24
24
  import signal
25
25
  import time
26
26
 
27
- import whisper
28
27
 
28
+ try:
29
+ import whisper
30
+ except:
31
+ print(
32
+ "Could not load the whisper package. If you want to use tts/stt features, please run `pip install npcsh[audio]` and follow the instructions in the npcsh github readme to ensure your OS can handle the audio dependencies."
33
+ )
29
34
  try:
30
35
  from sentence_transformers import SentenceTransformer
31
36
  except:
32
- print("Could not load the sentence-transformers package.")
37
+
38
+ print(
39
+ "Could not load the sentence-transformers package. If you want to use it or other local AI features, please run `pip install npcsh[local]` ."
40
+ )
33
41
 
34
42
  from .load_data import load_pdf, load_csv, load_json, load_excel, load_txt, load_image
35
43
  from .npc_sysenv import (
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: npcsh
3
- Version: 0.3.27.5
3
+ Version: 0.3.27.7
4
4
  Summary: npcsh is a command line tool for integrating LLMs into everyday workflows and for orchestrating teams of NPCs.
5
5
  Home-page: https://github.com/cagostino/npcsh
6
6
  Author: Christopher Agostino
@@ -17,8 +17,12 @@ Requires-Dist: requests
17
17
  Requires-Dist: matplotlib
18
18
  Requires-Dist: markdown
19
19
  Requires-Dist: PyYAML
20
+ Requires-Dist: PyMuPDF
21
+ Requires-Dist: pyautogui
20
22
  Requires-Dist: pygments
23
+ Requires-Dist: sqlalchemy
21
24
  Requires-Dist: termcolor
25
+ Requires-Dist: rich
22
26
  Requires-Dist: colorama
23
27
  Requires-Dist: Pillow
24
28
  Requires-Dist: python-dotenv
@@ -5,8 +5,12 @@ requests
5
5
  matplotlib
6
6
  markdown
7
7
  PyYAML
8
+ PyMuPDF
9
+ pyautogui
8
10
  pygments
11
+ sqlalchemy
9
12
  termcolor
13
+ rich
10
14
  colorama
11
15
  Pillow
12
16
  python-dotenv
@@ -61,8 +61,12 @@ base_requirements = [
61
61
  "matplotlib",
62
62
  "markdown",
63
63
  "PyYAML",
64
+ "PyMuPDF",
65
+ "pyautogui",
64
66
  "pygments",
67
+ "sqlalchemy",
65
68
  "termcolor",
69
+ "rich",
66
70
  "colorama",
67
71
  "Pillow",
68
72
  "python-dotenv",
@@ -102,7 +106,7 @@ extra_files = package_files("npcsh/npc_team/")
102
106
 
103
107
  setup(
104
108
  name="npcsh",
105
- version="0.3.27.5",
109
+ version="0.3.27.7",
106
110
  packages=find_packages(exclude=["tests*"]),
107
111
  install_requires=base_requirements, # Only install base requirements by default
108
112
  extras_require={
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes