mdpack 0.0.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.
- mdpack-0.0.1/.gitignore +9 -0
- mdpack-0.0.1/CHANGELOG.md +13 -0
- mdpack-0.0.1/LICENSE +21 -0
- mdpack-0.0.1/PKG-INFO +64 -0
- mdpack-0.0.1/README.md +43 -0
- mdpack-0.0.1/pyproject.toml +41 -0
- mdpack-0.0.1/src/mdpack/__init__.py +3 -0
- mdpack-0.0.1/src/mdpack/cli.py +24 -0
mdpack-0.0.1/.gitignore
ADDED
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
# Changelog
|
|
2
|
+
|
|
3
|
+
## 0.0.1 (2026-04-16)
|
|
4
|
+
|
|
5
|
+
Placeholder release to reserve the `mdpack` name on PyPI. No functional code yet.
|
|
6
|
+
|
|
7
|
+
Planned for 0.1.0:
|
|
8
|
+
- DOCX → Markdown (pandoc-backed)
|
|
9
|
+
- CSV → Markdown tables
|
|
10
|
+
- XLSX → Markdown (one section per sheet)
|
|
11
|
+
- `mdpack convert <path>` CLI with directory mirroring
|
|
12
|
+
- Frontmatter injection (`source`, `converted_at`, `converter`)
|
|
13
|
+
- Stripping inline base64 images
|
mdpack-0.0.1/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 Andy Lei
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
mdpack-0.0.1/PKG-INFO
ADDED
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: mdpack
|
|
3
|
+
Version: 0.0.1
|
|
4
|
+
Summary: Convert any directory of docs (DOCX, CSV, XLSX, PDF, PPTX, HTML) to clean Markdown.
|
|
5
|
+
Project-URL: Homepage, https://github.com/andyleimc-source/mdpack
|
|
6
|
+
Project-URL: Issues, https://github.com/andyleimc-source/mdpack/issues
|
|
7
|
+
Author-email: Andy Lei <leimingcan@icloud.com>
|
|
8
|
+
License: MIT
|
|
9
|
+
License-File: LICENSE
|
|
10
|
+
Keywords: converter,docx,llm,markdown,pdf,pptx,rag,xlsx
|
|
11
|
+
Classifier: Development Status :: 1 - Planning
|
|
12
|
+
Classifier: License :: OSI Approved :: MIT License
|
|
13
|
+
Classifier: Programming Language :: Python :: 3
|
|
14
|
+
Classifier: Programming Language :: Python :: 3.10
|
|
15
|
+
Classifier: Programming Language :: Python :: 3.11
|
|
16
|
+
Classifier: Programming Language :: Python :: 3.12
|
|
17
|
+
Classifier: Topic :: Text Processing :: Markup :: Markdown
|
|
18
|
+
Requires-Python: >=3.10
|
|
19
|
+
Requires-Dist: click>=8.0
|
|
20
|
+
Description-Content-Type: text/markdown
|
|
21
|
+
|
|
22
|
+
# mdpack
|
|
23
|
+
|
|
24
|
+
> Convert any directory of docs to clean Markdown, ready for RAG / LLM ingestion.
|
|
25
|
+
|
|
26
|
+
> 🚧 **WIP.** `0.0.1` is a name placeholder on PyPI — real functionality lands in `0.1.0`.
|
|
27
|
+
|
|
28
|
+
## What this will be
|
|
29
|
+
|
|
30
|
+
A single CLI that walks a folder full of mixed-format documents (DOCX, CSV, XLSX, PDF, PPTX, HTML)
|
|
31
|
+
and emits clean Markdown, mirroring the source directory structure. Designed to feed downstream
|
|
32
|
+
RAG / LLM pipelines — in particular [mdrag](https://github.com/andyleimc-source/mdrag), a local
|
|
33
|
+
semantic-search MCP server for Markdown folders.
|
|
34
|
+
|
|
35
|
+
Why a separate tool? Conversion is a messy, format-specific problem (pandoc for DOCX, Docling for
|
|
36
|
+
PDF, openpyxl for XLSX, and so on). Keeping it out of `mdrag` keeps both tools focused: `mdpack`
|
|
37
|
+
produces Markdown, `mdrag` indexes Markdown.
|
|
38
|
+
|
|
39
|
+
## Planned MVP (0.1.0)
|
|
40
|
+
|
|
41
|
+
| Format | Backend | Status |
|
|
42
|
+
|--------|---------|--------|
|
|
43
|
+
| DOCX | pandoc | planned |
|
|
44
|
+
| CSV | stdlib | planned |
|
|
45
|
+
| XLSX | openpyxl | planned |
|
|
46
|
+
|
|
47
|
+
Later (0.2.0+): PDF (Docling, non-OCR), PPTX, HTML, EPUB.
|
|
48
|
+
|
|
49
|
+
## Install (placeholder)
|
|
50
|
+
|
|
51
|
+
```bash
|
|
52
|
+
pip install mdpack
|
|
53
|
+
mdpack --version # 0.0.1 (placeholder — no conversion yet)
|
|
54
|
+
```
|
|
55
|
+
|
|
56
|
+
## Companion project
|
|
57
|
+
|
|
58
|
+
- **[mdrag](https://github.com/andyleimc-source/mdrag)** — give any local Markdown folder a
|
|
59
|
+
semantic-search MCP server. Run `mdpack` first to convert mixed-format docs, then point `mdrag`
|
|
60
|
+
at the output directory.
|
|
61
|
+
|
|
62
|
+
## License
|
|
63
|
+
|
|
64
|
+
[MIT](./LICENSE)
|
mdpack-0.0.1/README.md
ADDED
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
# mdpack
|
|
2
|
+
|
|
3
|
+
> Convert any directory of docs to clean Markdown, ready for RAG / LLM ingestion.
|
|
4
|
+
|
|
5
|
+
> 🚧 **WIP.** `0.0.1` is a name placeholder on PyPI — real functionality lands in `0.1.0`.
|
|
6
|
+
|
|
7
|
+
## What this will be
|
|
8
|
+
|
|
9
|
+
A single CLI that walks a folder full of mixed-format documents (DOCX, CSV, XLSX, PDF, PPTX, HTML)
|
|
10
|
+
and emits clean Markdown, mirroring the source directory structure. Designed to feed downstream
|
|
11
|
+
RAG / LLM pipelines — in particular [mdrag](https://github.com/andyleimc-source/mdrag), a local
|
|
12
|
+
semantic-search MCP server for Markdown folders.
|
|
13
|
+
|
|
14
|
+
Why a separate tool? Conversion is a messy, format-specific problem (pandoc for DOCX, Docling for
|
|
15
|
+
PDF, openpyxl for XLSX, and so on). Keeping it out of `mdrag` keeps both tools focused: `mdpack`
|
|
16
|
+
produces Markdown, `mdrag` indexes Markdown.
|
|
17
|
+
|
|
18
|
+
## Planned MVP (0.1.0)
|
|
19
|
+
|
|
20
|
+
| Format | Backend | Status |
|
|
21
|
+
|--------|---------|--------|
|
|
22
|
+
| DOCX | pandoc | planned |
|
|
23
|
+
| CSV | stdlib | planned |
|
|
24
|
+
| XLSX | openpyxl | planned |
|
|
25
|
+
|
|
26
|
+
Later (0.2.0+): PDF (Docling, non-OCR), PPTX, HTML, EPUB.
|
|
27
|
+
|
|
28
|
+
## Install (placeholder)
|
|
29
|
+
|
|
30
|
+
```bash
|
|
31
|
+
pip install mdpack
|
|
32
|
+
mdpack --version # 0.0.1 (placeholder — no conversion yet)
|
|
33
|
+
```
|
|
34
|
+
|
|
35
|
+
## Companion project
|
|
36
|
+
|
|
37
|
+
- **[mdrag](https://github.com/andyleimc-source/mdrag)** — give any local Markdown folder a
|
|
38
|
+
semantic-search MCP server. Run `mdpack` first to convert mixed-format docs, then point `mdrag`
|
|
39
|
+
at the output directory.
|
|
40
|
+
|
|
41
|
+
## License
|
|
42
|
+
|
|
43
|
+
[MIT](./LICENSE)
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
[build-system]
|
|
2
|
+
requires = ["hatchling"]
|
|
3
|
+
build-backend = "hatchling.build"
|
|
4
|
+
|
|
5
|
+
[project]
|
|
6
|
+
name = "mdpack"
|
|
7
|
+
version = "0.0.1"
|
|
8
|
+
description = "Convert any directory of docs (DOCX, CSV, XLSX, PDF, PPTX, HTML) to clean Markdown."
|
|
9
|
+
readme = "README.md"
|
|
10
|
+
license = {text = "MIT"}
|
|
11
|
+
requires-python = ">=3.10"
|
|
12
|
+
authors = [
|
|
13
|
+
{name = "Andy Lei", email = "leimingcan@icloud.com"}
|
|
14
|
+
]
|
|
15
|
+
keywords = ["markdown", "converter", "docx", "pdf", "xlsx", "pptx", "rag", "llm"]
|
|
16
|
+
classifiers = [
|
|
17
|
+
"Development Status :: 1 - Planning",
|
|
18
|
+
"License :: OSI Approved :: MIT License",
|
|
19
|
+
"Programming Language :: Python :: 3",
|
|
20
|
+
"Programming Language :: Python :: 3.10",
|
|
21
|
+
"Programming Language :: Python :: 3.11",
|
|
22
|
+
"Programming Language :: Python :: 3.12",
|
|
23
|
+
"Topic :: Text Processing :: Markup :: Markdown",
|
|
24
|
+
]
|
|
25
|
+
dependencies = [
|
|
26
|
+
"click>=8.0",
|
|
27
|
+
]
|
|
28
|
+
|
|
29
|
+
[project.scripts]
|
|
30
|
+
mdpack = "mdpack.cli:main"
|
|
31
|
+
|
|
32
|
+
[project.urls]
|
|
33
|
+
Homepage = "https://github.com/andyleimc-source/mdpack"
|
|
34
|
+
Issues = "https://github.com/andyleimc-source/mdpack/issues"
|
|
35
|
+
|
|
36
|
+
[tool.hatch.build.targets.wheel]
|
|
37
|
+
packages = ["src/mdpack"]
|
|
38
|
+
|
|
39
|
+
[tool.ruff]
|
|
40
|
+
line-length = 100
|
|
41
|
+
target-version = "py310"
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
"""mdpack CLI entry point (placeholder)."""
|
|
2
|
+
|
|
3
|
+
from __future__ import annotations
|
|
4
|
+
|
|
5
|
+
import click
|
|
6
|
+
|
|
7
|
+
from . import __version__
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
@click.group(invoke_without_command=True)
|
|
11
|
+
@click.version_option(__version__, prog_name="mdpack")
|
|
12
|
+
@click.pass_context
|
|
13
|
+
def main(ctx: click.Context) -> None:
|
|
14
|
+
"""Convert any directory of docs to clean Markdown.
|
|
15
|
+
|
|
16
|
+
This is a 0.0.1 placeholder release to reserve the name on PyPI.
|
|
17
|
+
Real conversion commands will land in 0.1.0. Track progress at
|
|
18
|
+
https://github.com/andyleimc-source/mdpack.
|
|
19
|
+
"""
|
|
20
|
+
if ctx.invoked_subcommand is None:
|
|
21
|
+
click.echo(
|
|
22
|
+
f"mdpack {__version__} — placeholder release, no conversion yet. "
|
|
23
|
+
"See https://github.com/andyleimc-source/mdpack for roadmap."
|
|
24
|
+
)
|