Skip to main content

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

Update

# pipx
pipx upgrade tomd-cli

# or pip
pip install --upgrade 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.5.tar.gz (19.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

tomd_cli-0.1.5-py3-none-any.whl (16.3 kB view details)

Uploaded Python 3

File details

Details for the file tomd_cli-0.1.5.tar.gz.

File metadata

  • Download URL: tomd_cli-0.1.5.tar.gz
  • Upload date:
  • Size: 19.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for tomd_cli-0.1.5.tar.gz
Algorithm Hash digest
SHA256 c68fd49492415225ce7d93ed7fc6c1920a54da9a0454bf203f98b2a2ab2606de
MD5 c8a18cdced1359dd02dcf9a8c030e530
BLAKE2b-256 b679dbb22a449b8d687e34610691e1b9b423e671c2f7e381337ef1c0988e8a36

See more details on using hashes here.

Provenance

The following attestation bundles were made for tomd_cli-0.1.5.tar.gz:

Publisher: publish.yml on chun-mura/tomd-cli

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file tomd_cli-0.1.5-py3-none-any.whl.

File metadata

  • Download URL: tomd_cli-0.1.5-py3-none-any.whl
  • Upload date:
  • Size: 16.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for tomd_cli-0.1.5-py3-none-any.whl
Algorithm Hash digest
SHA256 636469729ad00bcc3714393e840cc38bbf4bde3b74b53010f49c3facdbdca448
MD5 aa99dda21e45b1f5c91601291062b03d
BLAKE2b-256 1916daf760157eeff7f263ed003c78927aef28256947618889af869740455ba5

See more details on using hashes here.

Provenance

The following attestation bundles were made for tomd_cli-0.1.5-py3-none-any.whl:

Publisher: publish.yml on chun-mura/tomd-cli

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page