Skip to main content

Utility tool for converting various files to Markdown

Project description

MarkItDown

[!TIP] MarkItDown is a Python package and command-line utility for converting various files to Markdown (e.g., for indexing, text analysis, etc).

For more information, and full documentation, see the project README.md on GitHub.

[!IMPORTANT] MarkItDown performs I/O with the privileges of the current process. Like open() or requests.get(), it will access resources that the process itself can access. Sanitize your inputs in untrusted environments, and call the narrowest convert_* function needed for your use case (e.g., convert_stream(), or convert_local()). See the Security Considerations section of the documentation for more information.

Installation

From PyPI:

pip install markitdown[all]

From source:

git clone git@github.com:microsoft/markitdown.git
cd markitdown
pip install -e packages/markitdown[all]

Usage

Command-Line

markitdown path-to-file.pdf > document.md

Python API

from markitdown import MarkItDown

md = MarkItDown()
result = md.convert("test.xlsx")
print(result.text_content)

More Information

For more information, and full documentation, see the project README.md on GitHub.

Trademarks

This project may contain trademarks or logos for projects, products, or services. Authorized use of Microsoft trademarks or logos is subject to and must follow Microsoft's Trademark & Brand Guidelines. Use of Microsoft trademarks or logos in modified versions of this project must not cause confusion or imply Microsoft sponsorship. Any use of third-party trademarks or logos are subject to those third-party's policies.

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

markitdown-0.1.6.tar.gz (50.8 kB view details)

Uploaded Source

Built Distribution

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

markitdown-0.1.6-py3-none-any.whl (70.0 kB view details)

Uploaded Python 3

File details

Details for the file markitdown-0.1.6.tar.gz.

File metadata

  • Download URL: markitdown-0.1.6.tar.gz
  • Upload date:
  • Size: 50.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: Hatch/1.16.2 cpython/3.12.3 HTTPX/0.28.1

File hashes

Hashes for markitdown-0.1.6.tar.gz
Algorithm Hash digest
SHA256 e5bdbaffd971b29598c7c39ef0e9afce2f08c0751fbfa4e4257678ebaf8cfc7e
MD5 baf950d456d9b14954e3d9ea580fe85e
BLAKE2b-256 18b791fe0e2df07107ab701a15c8ad3213135707e4d6206ae9bd8f457a7ad86a

See more details on using hashes here.

File details

Details for the file markitdown-0.1.6-py3-none-any.whl.

File metadata

  • Download URL: markitdown-0.1.6-py3-none-any.whl
  • Upload date:
  • Size: 70.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: Hatch/1.16.2 cpython/3.12.3 HTTPX/0.28.1

File hashes

Hashes for markitdown-0.1.6-py3-none-any.whl
Algorithm Hash digest
SHA256 07b2d5bf87b5c53e13a9f2fdc440df8ccc85e26f40c1e557781727b700049775
MD5 c7101218ef829079e035cdc20963f0a1
BLAKE2b-256 9e308031f183ee86ea8ac4e7ea1296bab4cca1bee2fd036a26df69764eb7ca74

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