meshagent-markitdown 0.5.15__py3-none-any.whl → 0.6.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.

@@ -1,6 +1,5 @@
1
1
  import aiohttp
2
2
  import mimetypes
3
- from typing import Optional
4
3
  import os
5
4
  from meshagent.api import EmptyResponse, FileResponse
6
5
  from meshagent.tools import (
@@ -8,7 +7,6 @@ from meshagent.tools import (
8
7
  ToolContext,
9
8
  TextResponse,
10
9
  get_bytes_from_url,
11
- BlobStorage,
12
10
  RemoteToolkit,
13
11
  )
14
12
  import logging
@@ -65,7 +63,7 @@ class FileMarkItDownTool(Tool):
65
63
 
66
64
 
67
65
  class UrlMarkItDownTool(Tool):
68
- def __init__(self, blob_storage: Optional[BlobStorage] = None):
66
+ def __init__(self):
69
67
  super().__init__(
70
68
  name="markitdown_from_url",
71
69
  title="MarkItDown URL Adapter",
@@ -78,11 +76,10 @@ class UrlMarkItDownTool(Tool):
78
76
  },
79
77
  )
80
78
 
81
- self._blob_storage = blob_storage
82
79
  self._session = aiohttp.ClientSession()
83
80
 
84
81
  async def execute(self, *, context: ToolContext, url: str):
85
- blob = await get_bytes_from_url(url=url, blob_storage=self._blob_storage)
82
+ blob = await get_bytes_from_url(url=url)
86
83
 
87
84
  ext = mimetypes.guess_extension(blob.mime_type)
88
85
  if ext in supported_extensions:
@@ -105,15 +102,13 @@ class UrlMarkItDownTool(Tool):
105
102
 
106
103
 
107
104
  class MarkItDownToolkit(RemoteToolkit):
108
- def __init__(
109
- self, blob_storage: Optional[BlobStorage] = None, name="meshagent.markitdown"
110
- ):
105
+ def __init__(self, name="meshagent.markitdown"):
111
106
  super().__init__(
112
107
  name=name,
113
108
  title="markitdown",
114
109
  description="MarkItDown is a utility for converting various files to Markdown",
115
110
  tools=[
116
111
  FileMarkItDownTool(),
117
- UrlMarkItDownTool(blob_storage=blob_storage),
112
+ UrlMarkItDownTool(),
118
113
  ],
119
114
  )
@@ -1 +1 @@
1
- __version__ = "0.5.15"
1
+ __version__ = "0.6.0"
@@ -1,17 +1,17 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: meshagent-markitdown
3
- Version: 0.5.15
3
+ Version: 0.6.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.12
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.5.15
14
+ Requires-Dist: meshagent-api~=0.6.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
@@ -0,0 +1,9 @@
1
+ meshagent/markitdown/__init__.py,sha256=X78Z4yEg5XfkNKH0HiIdG4k1q5ktB-ampTuXHLNFrAw,58
2
+ meshagent/markitdown/version.py,sha256=cID1jLnC_vj48GgMN6Yb1FA3JsQ95zNmCHmRYE8TFhY,22
3
+ meshagent/markitdown/tools/__init__.py,sha256=aIzTx7LQwjq3v189-WGXRyPH8GiTdt6mdtfW36Pqz2Q,73
4
+ meshagent/markitdown/tools/markitdown.py,sha256=iDwRO3yokXtlMzXC2ta8DlFpsznWINUjg8uDOw_2kkY,3603
5
+ meshagent_markitdown-0.6.0.dist-info/licenses/LICENSE,sha256=eTt0SPW-sVNdkZe9PS_S8WfCIyLjRXRl7sUBWdlteFg,10254
6
+ meshagent_markitdown-0.6.0.dist-info/METADATA,sha256=W5EyjQf8jDfbMBCzi-COjHdtOJDVz1McyTwRovibrCc,655
7
+ meshagent_markitdown-0.6.0.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
8
+ meshagent_markitdown-0.6.0.dist-info/top_level.txt,sha256=GlcXnHtRP6m7zlG3Df04M35OsHtNXy_DY09oFwWrH74,10
9
+ meshagent_markitdown-0.6.0.dist-info/RECORD,,
@@ -1,9 +0,0 @@
1
- meshagent/markitdown/__init__.py,sha256=X78Z4yEg5XfkNKH0HiIdG4k1q5ktB-ampTuXHLNFrAw,58
2
- meshagent/markitdown/version.py,sha256=L6LoKMlJx-n68Agaz17S4PydD7S5Z4lwW3o79dy3l1c,23
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.5.15.dist-info/licenses/LICENSE,sha256=eTt0SPW-sVNdkZe9PS_S8WfCIyLjRXRl7sUBWdlteFg,10254
6
- meshagent_markitdown-0.5.15.dist-info/METADATA,sha256=2MP_k-HRL2yGAb3dNjocDXvXjYuxDu_gHnrEzuJAtaM,657
7
- meshagent_markitdown-0.5.15.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
8
- meshagent_markitdown-0.5.15.dist-info/top_level.txt,sha256=GlcXnHtRP6m7zlG3Df04M35OsHtNXy_DY09oFwWrH74,10
9
- meshagent_markitdown-0.5.15.dist-info/RECORD,,