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
# pipx (recommended)
pipx install tomd-cli
# or pip
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.1.tar.gz
(6.7 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.1.tar.gz.
File metadata
- Download URL: tomd_cli-0.1.1.tar.gz
- Upload date:
- Size: 6.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
dffee4222e439d99d169c2246fe5ef2c746dc7c03ea76e034ac2dbac2367e31b
|
|
| MD5 |
c49b05327beb53fd5d471e83d7731ed9
|
|
| BLAKE2b-256 |
d255482ff331a899b2f2babcf553a0add7e3bad45e1c78a299afe28e1584768c
|
File details
Details for the file tomd_cli-0.1.1-py3-none-any.whl.
File metadata
- Download URL: tomd_cli-0.1.1-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 |
980726e5f01eb0ef66a9839c0e59b5758be057802075786570b10cfa4a324339
|
|
| MD5 |
6ab678a82582c49ad2aa8ee0329ef932
|
|
| BLAKE2b-256 |
0555981881b04a5301f485f0b4b1e104b2cbb4968947de6f5b8e258e8769901f
|