quantalogic 0.50.11__py3-none-any.whl → 0.50.12__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.
- quantalogic/tools/document_tools/__init__.py +39 -0
- {quantalogic-0.50.11.dist-info → quantalogic-0.50.12.dist-info}/METADATA +1 -1
- {quantalogic-0.50.11.dist-info → quantalogic-0.50.12.dist-info}/RECORD +6 -5
- {quantalogic-0.50.11.dist-info → quantalogic-0.50.12.dist-info}/LICENSE +0 -0
- {quantalogic-0.50.11.dist-info → quantalogic-0.50.12.dist-info}/WHEEL +0 -0
- {quantalogic-0.50.11.dist-info → quantalogic-0.50.12.dist-info}/entry_points.txt +0 -0
@@ -0,0 +1,39 @@
|
|
1
|
+
"""
|
2
|
+
Document Tools Module
|
3
|
+
|
4
|
+
This module provides optional tools for converting markdown to various document formats.
|
5
|
+
"""
|
6
|
+
|
7
|
+
from typing import Any
|
8
|
+
import importlib
|
9
|
+
import logging
|
10
|
+
|
11
|
+
logger = logging.getLogger(__name__)
|
12
|
+
|
13
|
+
# List of available tools for introspection
|
14
|
+
__all__ = [
|
15
|
+
'markdown_to_docx_tool',
|
16
|
+
'markdown_to_epub_tool',
|
17
|
+
'markdown_to_html_tool',
|
18
|
+
'markdown_to_ipynb_tool',
|
19
|
+
'markdown_to_latex_tool',
|
20
|
+
'markdown_to_pdf_tool',
|
21
|
+
'markdown_to_pptx_tool'
|
22
|
+
]
|
23
|
+
|
24
|
+
def __getattr__(name: str) -> Any:
|
25
|
+
"""
|
26
|
+
Dynamically import optional tools with graceful error handling.
|
27
|
+
|
28
|
+
Args:
|
29
|
+
name (str): Name of the tool to import
|
30
|
+
|
31
|
+
Returns:
|
32
|
+
Any: Imported tool or None if import fails
|
33
|
+
"""
|
34
|
+
try:
|
35
|
+
module = importlib.import_module(f'.{name}', package='quantalogic.tools.document_tools')
|
36
|
+
return getattr(module, name)
|
37
|
+
except (ImportError, AttributeError) as e:
|
38
|
+
logger.warning(f"Optional tool {name} could not be imported: {e}")
|
39
|
+
return None
|
@@ -43,6 +43,7 @@ quantalogic/tools/agent_tool.py,sha256=MXCXxWHRch7VK4UWhtRP1jeI8Np9Ne2CUGo8vm1oZ
|
|
43
43
|
quantalogic/tools/composio/composio.py,sha256=l12notWc2okQYq_vrXRirLZyfc4WiTwY1AyLP96qidQ,19657
|
44
44
|
quantalogic/tools/database/generate_database_report_tool.py,sha256=lGgER2VuHqnxliPM806tbwJh7WRW9HJcbBLL7QMvVBQ,1861
|
45
45
|
quantalogic/tools/database/sql_query_tool_advanced.py,sha256=kOe0u24r1GIsBjs3glpEgZtkP6H7FGJ6Iz9k9gILZIc,10027
|
46
|
+
quantalogic/tools/document_tools/__init__.py,sha256=EQl-3f2_dyl6ff7DE_W_-mEutvbjAMlDdUP90GDYoUs,1013
|
46
47
|
quantalogic/tools/document_tools/markdown_to_docx_tool.py,sha256=r5AOyQfpcDoqQ6_g2uYyVjTEPtfeNn4mDmmefNZmJyM,22553
|
47
48
|
quantalogic/tools/document_tools/markdown_to_epub_tool.py,sha256=iFIUTty7bIuOV7nbSfCuzBvOWJBmSP1TBFxf74184X4,14031
|
48
49
|
quantalogic/tools/document_tools/markdown_to_html_tool.py,sha256=ngwU3RAj05Ghua2yqmpkpws09XYfjDpcg4MuONHNvO8,12030
|
@@ -141,8 +142,8 @@ quantalogic/version_check.py,sha256=JyQFTNMDWtpHCLnN-BiakzB2cyXf6kUFsTjvmSruZi4,
|
|
141
142
|
quantalogic/welcome_message.py,sha256=o4tHdgabNuIV9kbIDPgS3_2yzJhayK30oKad2UouYDc,3020
|
142
143
|
quantalogic/xml_parser.py,sha256=AKuMdJC3QAX3Z_tErHVlZ-msjPemWaZUFiTwkHz76jg,11614
|
143
144
|
quantalogic/xml_tool_parser.py,sha256=Vz4LEgDbelJynD1siLOVkJ3gLlfHsUk65_gCwbYJyGc,3784
|
144
|
-
quantalogic-0.50.
|
145
|
-
quantalogic-0.50.
|
146
|
-
quantalogic-0.50.
|
147
|
-
quantalogic-0.50.
|
148
|
-
quantalogic-0.50.
|
145
|
+
quantalogic-0.50.12.dist-info/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
|
146
|
+
quantalogic-0.50.12.dist-info/METADATA,sha256=H8ar6V5VEeZT4o-NRSZN1r6ERLibUcHBusJL5No7APs,22961
|
147
|
+
quantalogic-0.50.12.dist-info/WHEEL,sha256=Nq82e9rUAnEjt98J6MlVmMCZb-t9cYE2Ir1kpBmnWfs,88
|
148
|
+
quantalogic-0.50.12.dist-info/entry_points.txt,sha256=h74O_Q3qBRCrDR99qvwB4BpBGzASPUIjCfxHq6Qnups,183
|
149
|
+
quantalogic-0.50.12.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|