naas-abi-core 1.0.5__py3-none-any.whl → 1.0.7__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.
assets/favicon.ico ADDED
Binary file
@@ -16,6 +16,7 @@ from fastapi.security.oauth2 import OAuth2
16
16
  from fastapi.security.utils import get_authorization_scheme_param
17
17
  from fastapi.staticfiles import StaticFiles
18
18
  from naas_abi_core import logger
19
+ from importlib.resources import files
19
20
 
20
21
  # Docs
21
22
  from naas_abi_core.apps.api.openapi_doc import API_LANDING_HTML, TAGS_METADATA
@@ -49,8 +50,10 @@ app.add_middleware(
49
50
  allow_headers=["*"],
50
51
  )
51
52
 
52
- # Mount the static directory
53
- app.mount("/static", StaticFiles(directory="assets"), name="static")
53
+
54
+ static_dir = os.path.join(os.path.dirname(str(files("naas_abi_core"))), "assets")
55
+ app.mount("/static", StaticFiles(directory=str(static_dir)), name="static")
56
+
54
57
 
55
58
 
56
59
  # Custom OAuth2 class that accepts query parameter
@@ -49,5 +49,5 @@ main.add_command(chat)
49
49
  main.add_command(new)
50
50
  main.add_command(init)
51
51
 
52
- if __name__ == "__main__":
53
- main()
52
+ # if __name__ == "__main__":
53
+ main()
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: naas-abi-core
3
- Version: 1.0.5
3
+ Version: 1.0.7
4
4
  Summary: Abi framework allowing you to build your AI system.
5
5
  Author-email: Maxime Jublou <maxime@naas.ai>, Florent Ravenel <florent@naas.ai>, Jeremy Ravenel <jeremy@naas.ai>
6
6
  Requires-Python: <4,>=3.10
@@ -14,6 +14,7 @@ Requires-Dist: langgraph>=0.6.6
14
14
  Requires-Dist: loguru<0.8,>=0.7.2
15
15
  Requires-Dist: pandas-stubs>=2.3.2.250926
16
16
  Requires-Dist: pandas>=2.3.3
17
+ Requires-Dist: pillow>=12.0.0
17
18
  Requires-Dist: pip>=25.1.1
18
19
  Requires-Dist: psycopg[binary,pool]>=3.0.0
19
20
  Requires-Dist: pydantic>=2.11.5
@@ -29,11 +30,14 @@ Requires-Dist: starlette>=0.46.2
29
30
  Requires-Dist: types-tqdm>=4.67.0.20250809
30
31
  Provides-Extra: all
31
32
  Requires-Dist: boto3<2,>=1.38.19; extra == 'all'
33
+ Requires-Dist: langchain-openai>=0.3.35; extra == 'all'
32
34
  Requires-Dist: paramiko<4.0.0,>=3.5.1; extra == 'all'
33
35
  Requires-Dist: qdrant-client>=1.14.3; extra == 'all'
34
36
  Requires-Dist: sshtunnel>=0.4.0; extra == 'all'
35
37
  Provides-Extra: aws
36
38
  Requires-Dist: boto3<2,>=1.38.19; extra == 'aws'
39
+ Provides-Extra: openrouter
40
+ Requires-Dist: langchain-openai>=0.3.35; extra == 'openrouter'
37
41
  Provides-Extra: qdrant
38
42
  Requires-Dist: qdrant-client>=1.14.3; extra == 'qdrant'
39
43
  Provides-Extra: ssh
@@ -1,5 +1,5 @@
1
1
  naas_abi_core/__init__.py,sha256=kR93ywABUBo8-tAWCHMbRcCDCJZjqq4hWwxMk3Cr9fI,56
2
- naas_abi_core/apps/api/api.py,sha256=CMast2FEo6S7WbXkeELaM4QHEv_-uDLVkieZcXGGolo,7027
2
+ naas_abi_core/apps/api/api.py,sha256=C11ItO_Xn0qh7ZubZUnQ4-Mts0Cd-Ui_4KEkU2cshqI,7127
3
3
  naas_abi_core/apps/api/api_test.py,sha256=7H_VgnbsGqu6oGY-apAHjJr_yjIcGHY0heaEThWBsUk,10537
4
4
  naas_abi_core/apps/api/openapi_doc.py,sha256=JbwzcmSP-Yl1rbN0QvUwOSmOFf-yKXECZ-2ptI7fWoU,11834
5
5
  naas_abi_core/apps/mcp/Dockerfile.mcp,sha256=936qaoMFGbMvTARjzkNHMgRfGVWnolpVCrz0fBJYrLA,826
@@ -7,7 +7,7 @@ naas_abi_core/apps/mcp/mcp_server.py,sha256=U-wDl8rswMk4nefGg2SUByw4x8CM10M59FfL
7
7
  naas_abi_core/apps/mcp/mcp_server_test.py,sha256=8jixnDyERM_HjjDTRtPDQcJ_rzA0ESAn147sl2Gk8gw,5636
8
8
  naas_abi_core/apps/terminal_agent/main.py,sha256=ucrNCGjjixyiO47Eily1yAmrwznS6KOcB1kk02yt_m8,19631
9
9
  naas_abi_core/apps/terminal_agent/terminal_style.py,sha256=YOpfvBlKU52wNyGEKbZPiRQVKxug-hI92H8ScV5L8Ew,5254
10
- naas_abi_core/cli/__init__.py,sha256=k5L0LznXVHyZxINdoqe0IOVz1IaSXsUB9ptIP1dEnns,1275
10
+ naas_abi_core/cli/__init__.py,sha256=UHfBoHZGZ_cRDENqfAtm0gEX3tWKwUxsMezHZ3SXJqg,1273
11
11
  naas_abi_core/cli/agent.py,sha256=fMdbC7HsrOfZSf5zVRHWSmyrejI5mUdRlAT5v5YHXzk,658
12
12
  naas_abi_core/cli/chat.py,sha256=3t_TJ7vqCNs0MIIXOtlSke3nzy4rMSEJtB3P6pKItMo,856
13
13
  naas_abi_core/cli/config.py,sha256=CcdDX6HKCP32NjRhbVsCOwLUC9LmaqTm2sv8W5rOt00,1484
@@ -120,7 +120,8 @@ naas_abi_core/utils/onto2py/onto2py.py,sha256=_wn9qrrsWd8gO-BY4_jQJVfY87e9MJ2Er2
120
120
  naas_abi_core/utils/onto2py/tests/ttl2py_test.py,sha256=5OZqSxPffjJYiX9T4rT1mV0PT1Qhf6goqEYT_mAPnaI,8055
121
121
  naas_abi_core/workflow/__init__.py,sha256=hZD58mCB1PApxITqftP_xgjxL7NeLvOfI-rJENg1ENs,250
122
122
  naas_abi_core/workflow/workflow.py,sha256=ZufSS073JztVl0OQRTqNyK7FepFvv7gXlc4j5FAEZCI,1216
123
- naas_abi_core-1.0.5.dist-info/METADATA,sha256=7R-9zM8QtiMjdCfBYFmsM8jzUyOmr2vopR3yygIadsk,3692
124
- naas_abi_core-1.0.5.dist-info/WHEEL,sha256=WLgqFyCfm_KASv4WHyYy0P3pM_m7J5L9k2skdKLirC8,87
125
- naas_abi_core-1.0.5.dist-info/entry_points.txt,sha256=R6N3E2Hh92nTrji34JIwBgc6c-wVpfBYBTwkU0xe64E,79
126
- naas_abi_core-1.0.5.dist-info/RECORD,,
123
+ assets/favicon.ico,sha256=nWk8wrHZiJV3DeuWrP2MqilXxCuoNWKGtMZfYmEVQLw,666
124
+ naas_abi_core-1.0.7.dist-info/METADATA,sha256=gTjTHO7PttQKEINKCxX0toiOwO14J3Nhxkxh2m224EA,3868
125
+ naas_abi_core-1.0.7.dist-info/WHEEL,sha256=WLgqFyCfm_KASv4WHyYy0P3pM_m7J5L9k2skdKLirC8,87
126
+ naas_abi_core-1.0.7.dist-info/entry_points.txt,sha256=q68PvlGw_rozZ0nl6mUg6l1l2IhxaTOKlf5K9goRDu0,99
127
+ naas_abi_core-1.0.7.dist-info/RECORD,,
@@ -0,0 +1,3 @@
1
+ [console_scripts]
2
+ abi = naas_abi_core.cli:main
3
+ onto2py = naas_abi_core.utils.onto2py.__main__:main
@@ -1,3 +0,0 @@
1
- [console_scripts]
2
- abi = abi.cli:main
3
- onto2py = abi.utils.onto2py.__main__:main