Convert Office files (.docx, .pptx, .xlsx, .pdf) to Markdown using MarkItDown
Project description
tomd-cli
Convert Office files to Markdown using MarkItDown.
Supported formats
.docx(Word).pptx(PowerPoint).xlsx(Excel).pdf
Installation
pip install tomd-cli
Usage
CLI
# Convert a single file
tomd document.docx
# Specify output path
tomd document.docx -o output.md
# Convert all files in a directory
tomd --dir ./documents/
# Convert directory with custom output
tomd --dir ./documents/ -o ./markdown/
Python API
from tomd import convert_file, convert_dir
# Single file
output_path = convert_file("document.docx")
output_path = convert_file("document.docx", "output.md")
# Directory
output_paths = convert_dir("./documents/")
output_paths = convert_dir("./documents/", "./markdown/")
License
MIT
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
tomd_cli-0.1.0.tar.gz
(6.4 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file tomd_cli-0.1.0.tar.gz.
File metadata
- Download URL: tomd_cli-0.1.0.tar.gz
- Upload date:
- Size: 6.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ba1f47a4f5004bdd159b139f2449f837b5087733491e5f3cce3eee4ae65e90f3
|
|
| MD5 |
07a4fc5b7c704e284bd4352a54343027
|
|
| BLAKE2b-256 |
6c8f392ddd926d957eea9888632a53c6ddea96b05266579a80e758c57b2c20b3
|
File details
Details for the file tomd_cli-0.1.0-py3-none-any.whl.
File metadata
- Download URL: tomd_cli-0.1.0-py3-none-any.whl
- Upload date:
- Size: 4.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
86d2c1827949d56f27d68cc6c7e0fff1753dca5c1d849efa0e8497b98169e39b
|
|
| MD5 |
591ea6672d07b86e9c3e3f4c9158d5ae
|
|
| BLAKE2b-256 |
24573abc025013d5580716aed060389883be46099c1d06f1ffb55929d34f2001
|