meshagent-markitdown 0.4.3__py3-none-any.whl → 0.22.0__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.
Potentially problematic release.
This version of meshagent-markitdown might be problematic. Click here for more details.
- meshagent/markitdown/tools/markitdown.py +4 -12
- meshagent/markitdown/version.py +1 -1
- {meshagent_markitdown-0.4.3.dist-info → meshagent_markitdown-0.22.0.dist-info}/METADATA +5 -3
- meshagent_markitdown-0.22.0.dist-info/RECORD +9 -0
- meshagent_markitdown-0.4.3.dist-info/RECORD +0 -9
- {meshagent_markitdown-0.4.3.dist-info → meshagent_markitdown-0.22.0.dist-info}/WHEEL +0 -0
- {meshagent_markitdown-0.4.3.dist-info → meshagent_markitdown-0.22.0.dist-info}/licenses/LICENSE +0 -0
- {meshagent_markitdown-0.4.3.dist-info → meshagent_markitdown-0.22.0.dist-info}/top_level.txt +0 -0
|
@@ -1,6 +1,4 @@
|
|
|
1
|
-
import aiohttp
|
|
2
1
|
import mimetypes
|
|
3
|
-
from typing import Optional
|
|
4
2
|
import os
|
|
5
3
|
from meshagent.api import EmptyResponse, FileResponse
|
|
6
4
|
from meshagent.tools import (
|
|
@@ -8,7 +6,6 @@ from meshagent.tools import (
|
|
|
8
6
|
ToolContext,
|
|
9
7
|
TextResponse,
|
|
10
8
|
get_bytes_from_url,
|
|
11
|
-
BlobStorage,
|
|
12
9
|
RemoteToolkit,
|
|
13
10
|
)
|
|
14
11
|
import logging
|
|
@@ -65,7 +62,7 @@ class FileMarkItDownTool(Tool):
|
|
|
65
62
|
|
|
66
63
|
|
|
67
64
|
class UrlMarkItDownTool(Tool):
|
|
68
|
-
def __init__(self
|
|
65
|
+
def __init__(self):
|
|
69
66
|
super().__init__(
|
|
70
67
|
name="markitdown_from_url",
|
|
71
68
|
title="MarkItDown URL Adapter",
|
|
@@ -78,11 +75,8 @@ class UrlMarkItDownTool(Tool):
|
|
|
78
75
|
},
|
|
79
76
|
)
|
|
80
77
|
|
|
81
|
-
self._blob_storage = blob_storage
|
|
82
|
-
self._session = aiohttp.ClientSession()
|
|
83
|
-
|
|
84
78
|
async def execute(self, *, context: ToolContext, url: str):
|
|
85
|
-
blob = await get_bytes_from_url(url=url
|
|
79
|
+
blob = await get_bytes_from_url(url=url)
|
|
86
80
|
|
|
87
81
|
ext = mimetypes.guess_extension(blob.mime_type)
|
|
88
82
|
if ext in supported_extensions:
|
|
@@ -105,15 +99,13 @@ class UrlMarkItDownTool(Tool):
|
|
|
105
99
|
|
|
106
100
|
|
|
107
101
|
class MarkItDownToolkit(RemoteToolkit):
|
|
108
|
-
def __init__(
|
|
109
|
-
self, blob_storage: Optional[BlobStorage] = None, name="meshagent.markitdown"
|
|
110
|
-
):
|
|
102
|
+
def __init__(self, name="meshagent.markitdown"):
|
|
111
103
|
super().__init__(
|
|
112
104
|
name=name,
|
|
113
105
|
title="markitdown",
|
|
114
106
|
description="MarkItDown is a utility for converting various files to Markdown",
|
|
115
107
|
tools=[
|
|
116
108
|
FileMarkItDownTool(),
|
|
117
|
-
UrlMarkItDownTool(
|
|
109
|
+
UrlMarkItDownTool(),
|
|
118
110
|
],
|
|
119
111
|
)
|
meshagent/markitdown/version.py
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
__version__ = "0.
|
|
1
|
+
__version__ = "0.22.0"
|
|
@@ -1,19 +1,21 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: meshagent-markitdown
|
|
3
|
-
Version: 0.
|
|
3
|
+
Version: 0.22.0
|
|
4
4
|
Summary: Markitdown support for Meshagent
|
|
5
5
|
License-Expression: Apache-2.0
|
|
6
6
|
Project-URL: Documentation, https://docs.meshagent.com
|
|
7
7
|
Project-URL: Website, https://www.meshagent.com
|
|
8
8
|
Project-URL: Source, https://www.meshagent.com
|
|
9
|
-
Requires-Python: >=3.
|
|
9
|
+
Requires-Python: >=3.13
|
|
10
10
|
Description-Content-Type: text/markdown
|
|
11
11
|
License-File: LICENSE
|
|
12
12
|
Requires-Dist: pytest~=8.4
|
|
13
13
|
Requires-Dist: pytest-asyncio~=0.26
|
|
14
|
-
Requires-Dist: meshagent-api~=0.
|
|
14
|
+
Requires-Dist: meshagent-api~=0.22.0
|
|
15
15
|
Requires-Dist: openapi-core~=0.19
|
|
16
16
|
Requires-Dist: markitdown[docx,outlook,pdf,pptx,xlsx]~=0.1
|
|
17
17
|
Dynamic: license-file
|
|
18
18
|
|
|
19
|
+
# [Meshagent](https://www.meshagent.com)
|
|
20
|
+
|
|
19
21
|
### Meshagent Markitdown
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
meshagent/markitdown/__init__.py,sha256=X78Z4yEg5XfkNKH0HiIdG4k1q5ktB-ampTuXHLNFrAw,58
|
|
2
|
+
meshagent/markitdown/version.py,sha256=0kk8efeJF41FZIYweGTJylbizaWrp9W3qN78RClCWIU,23
|
|
3
|
+
meshagent/markitdown/tools/__init__.py,sha256=aIzTx7LQwjq3v189-WGXRyPH8GiTdt6mdtfW36Pqz2Q,73
|
|
4
|
+
meshagent/markitdown/tools/markitdown.py,sha256=uMBAfBVbbvBjY-4Ypnkl9fPgrNlcv5OlahN11t2gFFM,3539
|
|
5
|
+
meshagent_markitdown-0.22.0.dist-info/licenses/LICENSE,sha256=eTt0SPW-sVNdkZe9PS_S8WfCIyLjRXRl7sUBWdlteFg,10254
|
|
6
|
+
meshagent_markitdown-0.22.0.dist-info/METADATA,sha256=g0u0XJwt_6RWhU1Cfp_ctjCM8Abj4abh6TRbh6UYaK4,657
|
|
7
|
+
meshagent_markitdown-0.22.0.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
|
8
|
+
meshagent_markitdown-0.22.0.dist-info/top_level.txt,sha256=GlcXnHtRP6m7zlG3Df04M35OsHtNXy_DY09oFwWrH74,10
|
|
9
|
+
meshagent_markitdown-0.22.0.dist-info/RECORD,,
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
meshagent/markitdown/__init__.py,sha256=X78Z4yEg5XfkNKH0HiIdG4k1q5ktB-ampTuXHLNFrAw,58
|
|
2
|
-
meshagent/markitdown/version.py,sha256=Nyg0pmk5ea9-SLCAFEIF96ByFx4-TJFtrqYPN-Zn6g4,22
|
|
3
|
-
meshagent/markitdown/tools/__init__.py,sha256=aIzTx7LQwjq3v189-WGXRyPH8GiTdt6mdtfW36Pqz2Q,73
|
|
4
|
-
meshagent/markitdown/tools/markitdown.py,sha256=NZ9UQ0PT8nWzKG-cTO_tEbNG_n_uTWYEeCMVI4T0Y_Y,3850
|
|
5
|
-
meshagent_markitdown-0.4.3.dist-info/licenses/LICENSE,sha256=eTt0SPW-sVNdkZe9PS_S8WfCIyLjRXRl7sUBWdlteFg,10254
|
|
6
|
-
meshagent_markitdown-0.4.3.dist-info/METADATA,sha256=TemeLGctwb5CdZdrDACOMOcg2aeHR0t5frEwFDTXBQ8,613
|
|
7
|
-
meshagent_markitdown-0.4.3.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
|
8
|
-
meshagent_markitdown-0.4.3.dist-info/top_level.txt,sha256=GlcXnHtRP6m7zlG3Df04M35OsHtNXy_DY09oFwWrH74,10
|
|
9
|
-
meshagent_markitdown-0.4.3.dist-info/RECORD,,
|
|
File without changes
|
{meshagent_markitdown-0.4.3.dist-info → meshagent_markitdown-0.22.0.dist-info}/licenses/LICENSE
RENAMED
|
File without changes
|
{meshagent_markitdown-0.4.3.dist-info → meshagent_markitdown-0.22.0.dist-info}/top_level.txt
RENAMED
|
File without changes
|