quantalogic 0.50.7__py3-none-any.whl → 0.50.9__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.
@@ -1,35 +1,15 @@
1
1
  import importlib.util
2
2
  from datetime import UTC, datetime
3
- from typing import Any, Dict, List, Optional, TYPE_CHECKING
4
-
5
- # Check if networkx is available
6
- NETWORKX_AVAILABLE = False
7
- try:
8
- spec = importlib.util.find_spec("networkx")
9
- NETWORKX_AVAILABLE = spec is not None
10
- except ImportError:
11
- pass
12
-
13
- # Check if sqlalchemy is available
14
- SQLALCHEMY_AVAILABLE = False
15
- try:
16
- spec = importlib.util.find_spec("sqlalchemy")
17
- SQLALCHEMY_AVAILABLE = spec is not None
18
- except ImportError:
19
- pass
20
-
21
- # Only import if available
22
- if NETWORKX_AVAILABLE:
23
- import networkx as nx
24
- if SQLALCHEMY_AVAILABLE:
25
- from sqlalchemy import create_engine, inspect, text
26
- from sqlalchemy.engine import Inspector
3
+ from typing import TYPE_CHECKING, Any, Dict, List
4
+
5
+ # Import mandatory dependencies
6
+ from sqlalchemy import create_engine, inspect, text
7
+ from sqlalchemy.engine import Inspector
8
+ import networkx as nx
27
9
 
28
10
  # Type checking imports
29
11
  if TYPE_CHECKING:
30
- import networkx as nx
31
- from sqlalchemy.engine import Inspector
32
-
12
+ pass # No need for dummy types now
33
13
 
34
14
  def generate_database_report(connection_string: str) -> str:
35
15
  """
@@ -41,14 +21,6 @@ def generate_database_report(connection_string: str) -> str:
41
21
  Returns:
42
22
  Markdown-formatted report as a string
43
23
  """
44
- # Check if required dependencies are available
45
- if not SQLALCHEMY_AVAILABLE:
46
- raise ImportError("The 'sqlalchemy' package is required to use generate_database_report. "
47
- "Install it with 'pip install sqlalchemy' or include it in your dependencies.")
48
- if not NETWORKX_AVAILABLE:
49
- raise ImportError("The 'networkx' package is required to use generate_database_report. "
50
- "Install it with 'pip install networkx' or include it in your dependencies.")
51
-
52
24
  # Setup database connection and inspection
53
25
  engine = create_engine(connection_string)
54
26
  inspector = inspect(engine)
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: quantalogic
3
- Version: 0.50.7
3
+ Version: 0.50.9
4
4
  Summary: QuantaLogic ReAct Agents
5
5
  Author: Raphaël MANSUY
6
6
  Author-email: raphael.mansuy@gmail.com
@@ -14,11 +14,13 @@ Requires-Dist: instructor (>=1.7.2,<2.0.0)
14
14
  Requires-Dist: jinja2 (>=3.1.5,<4.0.0)
15
15
  Requires-Dist: litellm (>=1.56.4,<2.0.0)
16
16
  Requires-Dist: loguru (>=0.7.3,<0.8.0)
17
+ Requires-Dist: networkx (>=3.2.1,<4.0.0)
17
18
  Requires-Dist: pathspec (>=0.12.1,<0.13.0)
18
19
  Requires-Dist: prompt-toolkit (>=3.0.48,<4.0.0)
19
20
  Requires-Dist: pydantic (>=2.10.4,<3.0.0)
20
21
  Requires-Dist: requests (>=2.32.3,<3.0.0)
21
22
  Requires-Dist: rich (>=13.9.4,<14.0.0)
23
+ Requires-Dist: sqlalchemy (>=2.0.25,<3.0.0)
22
24
  Requires-Dist: tenacity (>=9.0.0,<10.0.0)
23
25
  Description-Content-Type: text/markdown
24
26
 
@@ -118,7 +118,7 @@ quantalogic/tools/utilities/download_file_tool.py,sha256=hw_tO6RD0tA_LH46Tathf-L
118
118
  quantalogic/tools/utilities/mermaid_validator_tool.py,sha256=Brd6pt8OxpUgf8dm6kHqJJs_IU8V4Kc-8VDP-n1eCUM,25886
119
119
  quantalogic/tools/utils/__init__.py,sha256=-NtMSwxRt_G79Oo_DcDaCdLU2vLvuXIoCd34TOYEUmI,334
120
120
  quantalogic/tools/utils/create_sample_database.py,sha256=xc0I1oWr_XYSQ79Ar8Mpr93dqooQOxtEXZPyoXbv8kM,5517
121
- quantalogic/tools/utils/generate_database_report.py,sha256=MbImXDX2j7KRQrCo6kvW-WZRnhrQQjVGQPFVhI25uZE,11294
121
+ quantalogic/tools/utils/generate_database_report.py,sha256=HKm07XpdTHgLhWDzw4o96iV7YFnhxK7ZCFziEv8Igws,10296
122
122
  quantalogic/tools/wikipedia_search_tool.py,sha256=LXQSPH8961Efw2QNxKe-cD5ZiIYD3ufEgrxH4y5uB74,5180
123
123
  quantalogic/tools/write_file_tool.py,sha256=_mx9_Zjg2oMAAVzlcHEKjZVZUxQVgbRfcoMKgWnoZcg,3764
124
124
  quantalogic/utils/__init__.py,sha256=hsS3hXH5lsBQcZh2QBANY1Af2Zs1jtrgxA7kXJEWi58,680
@@ -141,8 +141,8 @@ quantalogic/version_check.py,sha256=JyQFTNMDWtpHCLnN-BiakzB2cyXf6kUFsTjvmSruZi4,
141
141
  quantalogic/welcome_message.py,sha256=o4tHdgabNuIV9kbIDPgS3_2yzJhayK30oKad2UouYDc,3020
142
142
  quantalogic/xml_parser.py,sha256=AKuMdJC3QAX3Z_tErHVlZ-msjPemWaZUFiTwkHz76jg,11614
143
143
  quantalogic/xml_tool_parser.py,sha256=Vz4LEgDbelJynD1siLOVkJ3gLlfHsUk65_gCwbYJyGc,3784
144
- quantalogic-0.50.7.dist-info/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
145
- quantalogic-0.50.7.dist-info/METADATA,sha256=TlYrGZR6hhDIMqndrpPcGLsBCJrbSty-J7s6iGmyhn8,22825
146
- quantalogic-0.50.7.dist-info/WHEEL,sha256=Nq82e9rUAnEjt98J6MlVmMCZb-t9cYE2Ir1kpBmnWfs,88
147
- quantalogic-0.50.7.dist-info/entry_points.txt,sha256=h74O_Q3qBRCrDR99qvwB4BpBGzASPUIjCfxHq6Qnups,183
148
- quantalogic-0.50.7.dist-info/RECORD,,
144
+ quantalogic-0.50.9.dist-info/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
145
+ quantalogic-0.50.9.dist-info/METADATA,sha256=chBfggcEh5L1t-YGWRMBT25iuqYAQLo2JlAjR4hC3Hc,22910
146
+ quantalogic-0.50.9.dist-info/WHEEL,sha256=Nq82e9rUAnEjt98J6MlVmMCZb-t9cYE2Ir1kpBmnWfs,88
147
+ quantalogic-0.50.9.dist-info/entry_points.txt,sha256=h74O_Q3qBRCrDR99qvwB4BpBGzASPUIjCfxHq6Qnups,183
148
+ quantalogic-0.50.9.dist-info/RECORD,,