markitdown-rs 0.2.1__tar.gz
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.
- markitdown_rs-0.2.1/PKG-INFO +147 -0
- markitdown_rs-0.2.1/README.md +69 -0
- markitdown_rs-0.2.1/markitdown-core/Cargo.toml +34 -0
- markitdown_rs-0.2.1/markitdown-core/README.md +506 -0
- markitdown_rs-0.2.1/markitdown-core/examples/bench.rs +34 -0
- markitdown_rs-0.2.1/markitdown-core/src/base64.rs +102 -0
- markitdown_rs-0.2.1/markitdown-core/src/convert.rs +244 -0
- markitdown_rs-0.2.1/markitdown-core/src/detect.rs +234 -0
- markitdown_rs-0.2.1/markitdown-core/src/docx/dingbats.rs +184 -0
- markitdown_rs-0.2.1/markitdown-core/src/docx/html.rs +634 -0
- markitdown_rs-0.2.1/markitdown-core/src/docx/math.rs +616 -0
- markitdown_rs-0.2.1/markitdown-core/src/docx/mod.rs +339 -0
- markitdown_rs-0.2.1/markitdown-core/src/docx/package.rs +258 -0
- markitdown_rs-0.2.1/markitdown-core/src/docx/reader.rs +740 -0
- markitdown_rs-0.2.1/markitdown-core/src/dom.rs +343 -0
- markitdown_rs-0.2.1/markitdown-core/src/epub.rs +159 -0
- markitdown_rs-0.2.1/markitdown-core/src/fetch.rs +557 -0
- markitdown_rs-0.2.1/markitdown-core/src/formats.rs +171 -0
- markitdown_rs-0.2.1/markitdown-core/src/html/entities.rs +524 -0
- markitdown_rs-0.2.1/markitdown-core/src/html/mod.rs +413 -0
- markitdown_rs-0.2.1/markitdown-core/src/html/parser.rs +716 -0
- markitdown_rs-0.2.1/markitdown-core/src/lib.rs +239 -0
- markitdown_rs-0.2.1/markitdown-core/src/markdownify.rs +610 -0
- markitdown_rs-0.2.1/markitdown-core/src/media.rs +219 -0
- markitdown_rs-0.2.1/markitdown-core/src/msg.rs +142 -0
- markitdown_rs-0.2.1/markitdown-core/src/ole.rs +374 -0
- markitdown_rs-0.2.1/markitdown-core/src/pdf/cmap.rs +562 -0
- markitdown_rs-0.2.1/markitdown-core/src/pdf/cmap_index.rs +156 -0
- markitdown_rs-0.2.1/markitdown-core/src/pdf/cmaps.bin +0 -0
- markitdown_rs-0.2.1/markitdown-core/src/pdf/crypt.rs +425 -0
- markitdown_rs-0.2.1/markitdown-core/src/pdf/document.rs +500 -0
- markitdown_rs-0.2.1/markitdown-core/src/pdf/encoding.rs +137 -0
- markitdown_rs-0.2.1/markitdown-core/src/pdf/filters.rs +478 -0
- markitdown_rs-0.2.1/markitdown-core/src/pdf/font.rs +616 -0
- markitdown_rs-0.2.1/markitdown-core/src/pdf/interp.rs +768 -0
- markitdown_rs-0.2.1/markitdown-core/src/pdf/layout.rs +496 -0
- markitdown_rs-0.2.1/markitdown-core/src/pdf/lexer.rs +710 -0
- markitdown_rs-0.2.1/markitdown-core/src/pdf/metrics.rs +309 -0
- markitdown_rs-0.2.1/markitdown-core/src/pdf/mod.rs +117 -0
- markitdown_rs-0.2.1/markitdown-core/src/pdf/object.rs +320 -0
- markitdown_rs-0.2.1/markitdown-core/src/pdf/page.rs +241 -0
- markitdown_rs-0.2.1/markitdown-core/src/pdf/plumber.rs +533 -0
- markitdown_rs-0.2.1/markitdown-core/src/pdf/tables.rs +555 -0
- markitdown_rs-0.2.1/markitdown-core/src/pdf/truetype.rs +203 -0
- markitdown_rs-0.2.1/markitdown-core/src/pdf/xref.rs +387 -0
- markitdown_rs-0.2.1/markitdown-core/src/plain.rs +342 -0
- markitdown_rs-0.2.1/markitdown-core/src/pptx/chart.rs +250 -0
- markitdown_rs-0.2.1/markitdown-core/src/pptx/mod.rs +667 -0
- markitdown_rs-0.2.1/markitdown-core/src/pystr.rs +194 -0
- markitdown_rs-0.2.1/markitdown-core/src/pyurl.rs +338 -0
- markitdown_rs-0.2.1/markitdown-core/src/rss.rs +461 -0
- markitdown_rs-0.2.1/markitdown-core/src/sheet/biff4.rs +501 -0
- markitdown_rs-0.2.1/markitdown-core/src/sheet/frame.rs +464 -0
- markitdown_rs-0.2.1/markitdown-core/src/sheet/mod.rs +229 -0
- markitdown_rs-0.2.1/markitdown-core/src/sheet/xls.rs +125 -0
- markitdown_rs-0.2.1/markitdown-core/src/sheet/xlsx.rs +664 -0
- markitdown_rs-0.2.1/markitdown-core/src/text.rs +396 -0
- markitdown_rs-0.2.1/markitdown-core/src/xml.rs +308 -0
- markitdown_rs-0.2.1/markitdown-core/src/youtube.rs +182 -0
- markitdown_rs-0.2.1/markitdown-core/src/zip.rs +139 -0
- markitdown_rs-0.2.1/markitdown-core/src/zipfile.rs +78 -0
- markitdown_rs-0.2.1/markitdown-core/tests/charset_sampling.rs +31 -0
- markitdown_rs-0.2.1/markitdown-core/tests/common/mod.rs +94 -0
- markitdown_rs-0.2.1/markitdown-core/tests/exiftool.rs +13 -0
- markitdown_rs-0.2.1/markitdown-core/tests/parity.rs +112 -0
- markitdown_rs-0.2.1/markitdown-core/tests/robustness.rs +581 -0
- markitdown_rs-0.2.1/markitdown-py/Cargo.lock +1060 -0
- markitdown_rs-0.2.1/markitdown-py/Cargo.toml +26 -0
- markitdown_rs-0.2.1/markitdown-py/README.md +69 -0
- markitdown_rs-0.2.1/markitdown-py/markitdown_rs.pth +1 -0
- markitdown_rs-0.2.1/markitdown-py/markitdown_rs_guard.py +106 -0
- markitdown_rs-0.2.1/markitdown-py/src/lib.rs +214 -0
- markitdown_rs-0.2.1/markitdown-py/tests/data/images.xlsx +0 -0
- markitdown_rs-0.2.1/markitdown-py/tests/test_api.py +682 -0
- markitdown_rs-0.2.1/markitdown-py/tests/test_markitdown.py +126 -0
- markitdown_rs-0.2.1/markitdown_rs.pth +1 -0
- markitdown_rs-0.2.1/markitdown_rs_guard.py +106 -0
- markitdown_rs-0.2.1/pyproject.toml +117 -0
- markitdown_rs-0.2.1/python/markitdown/__about__.py +3 -0
- markitdown_rs-0.2.1/python/markitdown/__init__.py +48 -0
- markitdown_rs-0.2.1/python/markitdown/__main__.py +301 -0
- markitdown_rs-0.2.1/python/markitdown/_base_converter.py +106 -0
- markitdown_rs-0.2.1/python/markitdown/_exceptions.py +83 -0
- markitdown_rs-0.2.1/python/markitdown/_markitdown.py +617 -0
- markitdown_rs-0.2.1/python/markitdown/_stream_info.py +33 -0
- markitdown_rs-0.2.1/python/markitdown/converter_utils/__init__.py +1 -0
- markitdown_rs-0.2.1/python/markitdown/converter_utils/_image.py +20 -0
- markitdown_rs-0.2.1/python/markitdown/converter_utils/docx/__init__.py +1 -0
- markitdown_rs-0.2.1/python/markitdown/converter_utils/docx/_images.py +111 -0
- markitdown_rs-0.2.1/python/markitdown/converter_utils/docx/math/__init__.py +1 -0
- markitdown_rs-0.2.1/python/markitdown/converter_utils/docx/math/latex_dict.py +292 -0
- markitdown_rs-0.2.1/python/markitdown/converter_utils/docx/math/omml.py +418 -0
- markitdown_rs-0.2.1/python/markitdown/converter_utils/docx/pre_process.py +291 -0
- markitdown_rs-0.2.1/python/markitdown/converters/__init__.py +56 -0
- markitdown_rs-0.2.1/python/markitdown/converters/_cu_converter.py +571 -0
- markitdown_rs-0.2.1/python/markitdown/converters/_doc_intel_converter.py +259 -0
- markitdown_rs-0.2.1/python/markitdown/converters/_llm_caption.py +51 -0
- markitdown_rs-0.2.1/python/markitdown/converters/_native.py +568 -0
- markitdown_rs-0.2.1/python/markitdown/converters/_transcribe_audio.py +61 -0
- markitdown_rs-0.2.1/python/markitdown/py.typed +0 -0
- markitdown_rs-0.2.1/python/markitdown_mcp/__about__.py +4 -0
- markitdown_rs-0.2.1/python/markitdown_mcp/__init__.py +9 -0
- markitdown_rs-0.2.1/python/markitdown_mcp/__main__.py +150 -0
|
@@ -0,0 +1,147 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: markitdown-rs
|
|
3
|
+
Version: 0.2.1
|
|
4
|
+
Classifier: Development Status :: 4 - Beta
|
|
5
|
+
Classifier: Environment :: Console
|
|
6
|
+
Classifier: Intended Audience :: Developers
|
|
7
|
+
Classifier: Operating System :: MacOS
|
|
8
|
+
Classifier: Operating System :: Microsoft :: Windows
|
|
9
|
+
Classifier: Operating System :: POSIX :: Linux
|
|
10
|
+
Classifier: Programming Language :: Python :: 3
|
|
11
|
+
Classifier: Programming Language :: Python :: 3 :: Only
|
|
12
|
+
Classifier: Programming Language :: Python :: 3.10
|
|
13
|
+
Classifier: Programming Language :: Python :: 3.11
|
|
14
|
+
Classifier: Programming Language :: Python :: 3.12
|
|
15
|
+
Classifier: Programming Language :: Python :: 3.13
|
|
16
|
+
Classifier: Programming Language :: Python :: 3.14
|
|
17
|
+
Classifier: Programming Language :: Rust
|
|
18
|
+
Classifier: Topic :: Office/Business
|
|
19
|
+
Classifier: Topic :: Text Processing :: General
|
|
20
|
+
Classifier: Topic :: Text Processing :: Markup :: Markdown
|
|
21
|
+
Requires-Dist: mammoth>=1.12.2,<2 ; extra == 'all'
|
|
22
|
+
Requires-Dist: lxml ; extra == 'all'
|
|
23
|
+
Requires-Dist: beautifulsoup4 ; extra == 'all'
|
|
24
|
+
Requires-Dist: defusedxml ; extra == 'all'
|
|
25
|
+
Requires-Dist: pydub ; extra == 'all'
|
|
26
|
+
Requires-Dist: speechrecognition ; extra == 'all'
|
|
27
|
+
Requires-Dist: audioop-lts ; python_full_version >= '3.13' and extra == 'all'
|
|
28
|
+
Requires-Dist: youtube-transcript-api~=1.2.3 ; extra == 'all'
|
|
29
|
+
Requires-Dist: azure-ai-documentintelligence ; extra == 'all'
|
|
30
|
+
Requires-Dist: azure-ai-contentunderstanding>=1.2.0b1 ; extra == 'all'
|
|
31
|
+
Requires-Dist: azure-identity ; extra == 'all'
|
|
32
|
+
Requires-Dist: pydub ; extra == 'audio-transcription'
|
|
33
|
+
Requires-Dist: speechrecognition ; extra == 'audio-transcription'
|
|
34
|
+
Requires-Dist: audioop-lts ; python_full_version >= '3.13' and extra == 'audio-transcription'
|
|
35
|
+
Requires-Dist: azure-ai-contentunderstanding>=1.2.0b1 ; extra == 'az-content-understanding'
|
|
36
|
+
Requires-Dist: azure-identity ; extra == 'az-content-understanding'
|
|
37
|
+
Requires-Dist: azure-ai-documentintelligence ; extra == 'az-doc-intel'
|
|
38
|
+
Requires-Dist: azure-identity ; extra == 'az-doc-intel'
|
|
39
|
+
Requires-Dist: mammoth>=1.12.2,<2 ; extra == 'docx'
|
|
40
|
+
Requires-Dist: lxml ; extra == 'docx'
|
|
41
|
+
Requires-Dist: beautifulsoup4 ; extra == 'docx'
|
|
42
|
+
Requires-Dist: defusedxml ; extra == 'docx'
|
|
43
|
+
Requires-Dist: mcp>=2.1.1,<3.0.0 ; extra == 'mcp'
|
|
44
|
+
Requires-Dist: mammoth>=1.12.2,<2 ; extra == 'ocr'
|
|
45
|
+
Requires-Dist: openpyxl ; extra == 'ocr'
|
|
46
|
+
Requires-Dist: pandas ; extra == 'ocr'
|
|
47
|
+
Requires-Dist: pdfminer-six>=20251230 ; extra == 'ocr'
|
|
48
|
+
Requires-Dist: pdfplumber>=0.11.9 ; extra == 'ocr'
|
|
49
|
+
Requires-Dist: pillow>=12.1.1 ; extra == 'ocr'
|
|
50
|
+
Requires-Dist: pymupdf>=1.24.0,<2 ; extra == 'ocr'
|
|
51
|
+
Requires-Dist: python-docx ; extra == 'ocr'
|
|
52
|
+
Requires-Dist: python-pptx ; extra == 'ocr'
|
|
53
|
+
Requires-Dist: youtube-transcript-api~=1.2.3 ; extra == 'youtube-transcription'
|
|
54
|
+
Provides-Extra: all
|
|
55
|
+
Provides-Extra: audio-transcription
|
|
56
|
+
Provides-Extra: az-content-understanding
|
|
57
|
+
Provides-Extra: az-doc-intel
|
|
58
|
+
Provides-Extra: docx
|
|
59
|
+
Provides-Extra: mcp
|
|
60
|
+
Provides-Extra: ocr
|
|
61
|
+
Provides-Extra: outlook
|
|
62
|
+
Provides-Extra: pdf
|
|
63
|
+
Provides-Extra: pptx
|
|
64
|
+
Provides-Extra: xls
|
|
65
|
+
Provides-Extra: xlsx
|
|
66
|
+
Provides-Extra: youtube-transcription
|
|
67
|
+
Summary: Microsoft's markitdown Python API backed by Rust: same `markitdown` module, same Markdown output, no heavy dependencies
|
|
68
|
+
Keywords: markitdown,markitdown-alternative,markdown,pdf-to-markdown,docx-to-markdown,document-conversion,llm,rag,mcp
|
|
69
|
+
License-Expression: MIT
|
|
70
|
+
Requires-Python: >=3.10
|
|
71
|
+
Description-Content-Type: text/markdown; charset=UTF-8; variant=GFM
|
|
72
|
+
Project-URL: Changelog, https://github.com/majiayu000/markitdown-rs/releases
|
|
73
|
+
Project-URL: Documentation, https://github.com/majiayu000/markitdown-rs/tree/main/crates/markitdown-py#readme
|
|
74
|
+
Project-URL: Homepage, https://majiayu000.github.io/markitdown-rs/
|
|
75
|
+
Project-URL: Issues, https://github.com/majiayu000/markitdown-rs/issues
|
|
76
|
+
Project-URL: Source, https://github.com/majiayu000/markitdown-rs
|
|
77
|
+
|
|
78
|
+
# markitdown-rs (Python)
|
|
79
|
+
|
|
80
|
+
Microsoft's [markitdown](https://github.com/microsoft/markitdown) Python API,
|
|
81
|
+
backed by [markitdown-rs](https://github.com/majiayu000/markitdown-rs): the
|
|
82
|
+
same `markitdown` module and the same Markdown, byte for byte, from one native
|
|
83
|
+
extension instead of pdfminer, pandas, mammoth, magika and onnxruntime.
|
|
84
|
+
|
|
85
|
+
```python
|
|
86
|
+
from markitdown import MarkItDown
|
|
87
|
+
|
|
88
|
+
md = MarkItDown()
|
|
89
|
+
result = md.convert("report.pdf") # path, Path, URL, file:/data: URI, stream or requests.Response
|
|
90
|
+
print(result.markdown) # also result.text_content
|
|
91
|
+
```
|
|
92
|
+
|
|
93
|
+
`convert`, `convert_local`, `convert_stream`, `convert_uri`, `convert_response`,
|
|
94
|
+
`StreamInfo`, the exception classes, custom converters (`register_converter`,
|
|
95
|
+
the `markitdown.converters` classes), plugins (`enable_plugins=True`, e.g.
|
|
96
|
+
markitdown-ocr), `llm_client` image captions, `requests_session`,
|
|
97
|
+
`exiftool_path` and the Azure `docintel_*` / `cu_*` options behave as in
|
|
98
|
+
markitdown 0.1.9, and so does `style_map` (through mammoth, with the
|
|
99
|
+
`docx` extra). Unknown keyword arguments are ignored, as in markitdown,
|
|
100
|
+
with a warning naming them (unless plugins are enabled). The wheel installs markitdown's `markitdown` command too (also
|
|
101
|
+
`python -m markitdown`), with all of 0.1.9's flags.
|
|
102
|
+
The module is named `markitdown`, so install it instead of, not next to, the
|
|
103
|
+
Python package of that name.
|
|
104
|
+
|
|
105
|
+
Build a wheel from a checkout with uv (into `target/wheels/`):
|
|
106
|
+
|
|
107
|
+
```bash
|
|
108
|
+
cd crates/markitdown-py
|
|
109
|
+
uv venv .venv && VIRTUAL_ENV=$PWD/.venv uv pip install maturin
|
|
110
|
+
VIRTUAL_ENV=$PWD/.venv .venv/bin/maturin build --release
|
|
111
|
+
```
|
|
112
|
+
|
|
113
|
+
The optional features take markitdown's extras, by the same names:
|
|
114
|
+
|
|
115
|
+
```bash
|
|
116
|
+
uv pip install 'target/wheels/markitdown_rs-0.2.0-cp310-abi3-macosx_11_0_arm64.whl[all]'
|
|
117
|
+
```
|
|
118
|
+
|
|
119
|
+
| Extra | Installs | For |
|
|
120
|
+
|---|---|---|
|
|
121
|
+
| `audio-transcription` | SpeechRecognition, pydub (and audioop-lts on Python 3.13+) | `### Audio Transcript` for wav, mp3, m4a (mp3 and m4a need ffmpeg) |
|
|
122
|
+
| `youtube-transcription` | youtube-transcript-api | `### Transcript` for YouTube pages |
|
|
123
|
+
| `az-doc-intel` | azure-ai-documentintelligence, azure-identity | `docintel_endpoint=` |
|
|
124
|
+
| `az-content-understanding` | azure-ai-contentunderstanding, azure-identity | `cu_endpoint=` |
|
|
125
|
+
| `docx` | mammoth, lxml, beautifulsoup4, defusedxml | `style_map=` |
|
|
126
|
+
| `mcp` | the MCP SDK | `markitdown-mcp` and `markitdown mcp` (markitdown-mcp 0.0.1a8's server, with plugins) |
|
|
127
|
+
| `ocr` | markitdown-ocr's dependencies except `markitdown` | then `pip install --no-deps markitdown-ocr` |
|
|
128
|
+
| `all` | all of the above | |
|
|
129
|
+
|
|
130
|
+
`pptx`, `xlsx`, `xls`, `pdf` and `outlook` exist but install nothing: those
|
|
131
|
+
converters are built in.
|
|
132
|
+
|
|
133
|
+
Plugins depend on Microsoft's `markitdown`, which would overwrite this
|
|
134
|
+
package's `markitdown` module; install them with `--no-deps` (or, with uv,
|
|
135
|
+
`override-dependencies = ["markitdown; sys_platform == 'never'"]`). The
|
|
136
|
+
package warns, when `markitdown` is imported, if both are installed or if
|
|
137
|
+
its `markitdown` module was removed or replaced.
|
|
138
|
+
|
|
139
|
+
Or install it into a development environment and run the tests:
|
|
140
|
+
|
|
141
|
+
```bash
|
|
142
|
+
cd crates/markitdown-py
|
|
143
|
+
uv venv .venv && VIRTUAL_ENV=$PWD/.venv uv pip install maturin pytest
|
|
144
|
+
VIRTUAL_ENV=$PWD/.venv .venv/bin/maturin develop --release --uv
|
|
145
|
+
.venv/bin/pytest tests # needs target/release/markitdown (cargo build --release)
|
|
146
|
+
```
|
|
147
|
+
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
# markitdown-rs (Python)
|
|
2
|
+
|
|
3
|
+
Microsoft's [markitdown](https://github.com/microsoft/markitdown) Python API,
|
|
4
|
+
backed by [markitdown-rs](https://github.com/majiayu000/markitdown-rs): the
|
|
5
|
+
same `markitdown` module and the same Markdown, byte for byte, from one native
|
|
6
|
+
extension instead of pdfminer, pandas, mammoth, magika and onnxruntime.
|
|
7
|
+
|
|
8
|
+
```python
|
|
9
|
+
from markitdown import MarkItDown
|
|
10
|
+
|
|
11
|
+
md = MarkItDown()
|
|
12
|
+
result = md.convert("report.pdf") # path, Path, URL, file:/data: URI, stream or requests.Response
|
|
13
|
+
print(result.markdown) # also result.text_content
|
|
14
|
+
```
|
|
15
|
+
|
|
16
|
+
`convert`, `convert_local`, `convert_stream`, `convert_uri`, `convert_response`,
|
|
17
|
+
`StreamInfo`, the exception classes, custom converters (`register_converter`,
|
|
18
|
+
the `markitdown.converters` classes), plugins (`enable_plugins=True`, e.g.
|
|
19
|
+
markitdown-ocr), `llm_client` image captions, `requests_session`,
|
|
20
|
+
`exiftool_path` and the Azure `docintel_*` / `cu_*` options behave as in
|
|
21
|
+
markitdown 0.1.9, and so does `style_map` (through mammoth, with the
|
|
22
|
+
`docx` extra). Unknown keyword arguments are ignored, as in markitdown,
|
|
23
|
+
with a warning naming them (unless plugins are enabled). The wheel installs markitdown's `markitdown` command too (also
|
|
24
|
+
`python -m markitdown`), with all of 0.1.9's flags.
|
|
25
|
+
The module is named `markitdown`, so install it instead of, not next to, the
|
|
26
|
+
Python package of that name.
|
|
27
|
+
|
|
28
|
+
Build a wheel from a checkout with uv (into `target/wheels/`):
|
|
29
|
+
|
|
30
|
+
```bash
|
|
31
|
+
cd crates/markitdown-py
|
|
32
|
+
uv venv .venv && VIRTUAL_ENV=$PWD/.venv uv pip install maturin
|
|
33
|
+
VIRTUAL_ENV=$PWD/.venv .venv/bin/maturin build --release
|
|
34
|
+
```
|
|
35
|
+
|
|
36
|
+
The optional features take markitdown's extras, by the same names:
|
|
37
|
+
|
|
38
|
+
```bash
|
|
39
|
+
uv pip install 'target/wheels/markitdown_rs-0.2.0-cp310-abi3-macosx_11_0_arm64.whl[all]'
|
|
40
|
+
```
|
|
41
|
+
|
|
42
|
+
| Extra | Installs | For |
|
|
43
|
+
|---|---|---|
|
|
44
|
+
| `audio-transcription` | SpeechRecognition, pydub (and audioop-lts on Python 3.13+) | `### Audio Transcript` for wav, mp3, m4a (mp3 and m4a need ffmpeg) |
|
|
45
|
+
| `youtube-transcription` | youtube-transcript-api | `### Transcript` for YouTube pages |
|
|
46
|
+
| `az-doc-intel` | azure-ai-documentintelligence, azure-identity | `docintel_endpoint=` |
|
|
47
|
+
| `az-content-understanding` | azure-ai-contentunderstanding, azure-identity | `cu_endpoint=` |
|
|
48
|
+
| `docx` | mammoth, lxml, beautifulsoup4, defusedxml | `style_map=` |
|
|
49
|
+
| `mcp` | the MCP SDK | `markitdown-mcp` and `markitdown mcp` (markitdown-mcp 0.0.1a8's server, with plugins) |
|
|
50
|
+
| `ocr` | markitdown-ocr's dependencies except `markitdown` | then `pip install --no-deps markitdown-ocr` |
|
|
51
|
+
| `all` | all of the above | |
|
|
52
|
+
|
|
53
|
+
`pptx`, `xlsx`, `xls`, `pdf` and `outlook` exist but install nothing: those
|
|
54
|
+
converters are built in.
|
|
55
|
+
|
|
56
|
+
Plugins depend on Microsoft's `markitdown`, which would overwrite this
|
|
57
|
+
package's `markitdown` module; install them with `--no-deps` (or, with uv,
|
|
58
|
+
`override-dependencies = ["markitdown; sys_platform == 'never'"]`). The
|
|
59
|
+
package warns, when `markitdown` is imported, if both are installed or if
|
|
60
|
+
its `markitdown` module was removed or replaced.
|
|
61
|
+
|
|
62
|
+
Or install it into a development environment and run the tests:
|
|
63
|
+
|
|
64
|
+
```bash
|
|
65
|
+
cd crates/markitdown-py
|
|
66
|
+
uv venv .venv && VIRTUAL_ENV=$PWD/.venv uv pip install maturin pytest
|
|
67
|
+
VIRTUAL_ENV=$PWD/.venv .venv/bin/maturin develop --release --uv
|
|
68
|
+
.venv/bin/pytest tests # needs target/release/markitdown (cargo build --release)
|
|
69
|
+
```
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
[package]
|
|
2
|
+
name = "markitdown-core"
|
|
3
|
+
description = "Convert PDF, Word, PowerPoint, Excel, HTML, EPUB, Outlook and more to Markdown, byte-for-byte identical to Microsoft's Python markitdown"
|
|
4
|
+
version = "0.2.1"
|
|
5
|
+
edition = "2024"
|
|
6
|
+
rust-version = "1.88.0"
|
|
7
|
+
license = "MIT"
|
|
8
|
+
repository = "https://github.com/majiayu000/markitdown-rs"
|
|
9
|
+
homepage = "https://majiayu000.github.io/markitdown-rs/"
|
|
10
|
+
readme = "README.md"
|
|
11
|
+
keywords = ["markdown", "pdf", "docx", "xlsx", "llm"]
|
|
12
|
+
categories = ["text-processing", "parser-implementations"]
|
|
13
|
+
authors = ["majiayu000 <1835304752@qq.com>"]
|
|
14
|
+
|
|
15
|
+
[dependencies]
|
|
16
|
+
aes = "0.8"
|
|
17
|
+
calamine = { version = "0.37", default-features = false }
|
|
18
|
+
cfb = "0.10"
|
|
19
|
+
chardetng = "0.1"
|
|
20
|
+
encoding_rs = "0.8"
|
|
21
|
+
flate2 = { version = "1.1", default-features = false, features = ["zlib-rs"] }
|
|
22
|
+
md-5 = "0.10"
|
|
23
|
+
quick-xml = { version = "0.37.5", default-features = false }
|
|
24
|
+
serde_json = { version = "1", features = ["preserve_order"] }
|
|
25
|
+
sha2 = "0.10"
|
|
26
|
+
ureq = { version = "3.5", optional = true }
|
|
27
|
+
zip = { version = "9.0.5", default-features = false, features = ["deflate"] }
|
|
28
|
+
|
|
29
|
+
[features]
|
|
30
|
+
# reading http(s), file: and data: sources (markitdown's convert_uri)
|
|
31
|
+
fetch = ["dep:ureq"]
|
|
32
|
+
|
|
33
|
+
[dev-dependencies]
|
|
34
|
+
serde_json = "1"
|