Skip to main content

Convert Office/PDF files to Markdown

Project description

tomd-cli

PyPI

Convert Office/PDF files to Markdown.

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.1.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.1-py3-none-any.whl (16.3 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: tomd_cli-0.1.5.1.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.1.tar.gz
Algorithm Hash digest
SHA256 43cfc030fba828414a3d3d60efb26df71f898fde4e51cd8ed676ac6a72709801
MD5 0e1d56e90e8dc7eb922eb2570b43a6df
BLAKE2b-256 d165aad2301dbbee1adeb77570602c0967349a354db1284b399c686a94bae834

See more details on using hashes here.

Provenance

The following attestation bundles were made for tomd_cli-0.1.5.1.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.1-py3-none-any.whl.

File metadata

  • Download URL: tomd_cli-0.1.5.1-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.1-py3-none-any.whl
Algorithm Hash digest
SHA256 c117ac23bc6fe26d5d23985782e2a1bc17df4bd013e5b03a4e60921d9bd2268d
MD5 ed24c7c900bdd9e96091f748aeea4250
BLAKE2b-256 43e93027a2adf74ec16aa0d70ad17834183db3677cd05fae7984ea7f6d9f09b0

See more details on using hashes here.

Provenance

The following attestation bundles were made for tomd_cli-0.1.5.1-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