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.4.tar.gz (20.9 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.4-py3-none-any.whl (16.6 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: tomd_cli-0.1.4.tar.gz
  • Upload date:
  • Size: 20.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.11

File hashes

Hashes for tomd_cli-0.1.4.tar.gz
Algorithm Hash digest
SHA256 a5bf654daf50b4dd6f94bfeecd396fb0899054c2e945379259913e30e98376dd
MD5 9d6bb9b22febf9ffbfb33b51e7969b1d
BLAKE2b-256 1f19aa04cb5613433547b88977624bd4a5f2dff5aa0afc24c0a4640ec583aa6c

See more details on using hashes here.

File details

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

File metadata

  • Download URL: tomd_cli-0.1.4-py3-none-any.whl
  • Upload date:
  • Size: 16.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.11

File hashes

Hashes for tomd_cli-0.1.4-py3-none-any.whl
Algorithm Hash digest
SHA256 ddd4a7b1d374d9e26e7ff492acfe00b43df0dc411a508c433d0a5d7e8a1e711b
MD5 736dfb091b7d2e47cd38378ffc75c49f
BLAKE2b-256 67be3b5adccf607154fa85fde78161398c55c992127cd420306fac3a612c6550

See more details on using hashes here.

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