Skip to main content

firecrawl-anydoc

PyPI License: MIT

Convert Word, PowerPoint, Excel, OpenDocument, RTF, EPUB, CSV, and PDF files into clean GitHub-Flavored Markdown. Python bindings for the anydoc Rust crate, built by Firecrawl. Also available as a hosted API through Firecrawl Parse, which adds our OCR models for the scanned pages anydoc can't read on its own.

Every format parses into one shared document model and renders through a single Markdown serializer, so headings, tables, lists, and footnotes come out the same no matter which format goes in. Conversion releases the GIL, so other threads keep running. Type stubs ship with the package.

pip install firecrawl-anydoc

The package installs as firecrawl-anydoc and imports as anydoc.

Supported formats

Format Extensions
Word .doc, .docx, .docm
PowerPoint .ppt, .pps, .pot, .pptx, .pptm, .ppsx, .ppsm
Excel .xls, .xlsx, .xlsm, .xlsb
OpenDocument .odt, .ods, .odp
Rich Text Format .rtf
EPUB .epub
CSV .csv
PDF .pdf

Usage

import anydoc

# From a file path:
markdown = anydoc.to_markdown("report.docx")

# From bytes, with the format detected from the content:
markdown = anydoc.to_markdown_bytes(data)

# Or name it, which signature-less formats (CSV) need:
markdown = anydoc.to_markdown_bytes(data, "csv")

# Or stop at the document model, which also carries embedded assets:
document = anydoc.to_document(data)

Format detection

The format is read from the file content, using the marker its specification designates: the PDF header, the RTF open group, OLE stream names, the ZIP package mimetype and content types. CSV has no such marker, so detection returns None for it and the extension, or an explicit format, names it instead.

anydoc.format_from_bytes(data)  # 'docx', or None when nothing matches
anydoc.format_from_extension(".pptm")  # 'pptx'
anydoc.format_from_path("report.odt")  # 'odt'

Images and embedded objects

Markdown cannot embed bytes, so an embedded image renders as its alt text while the bytes stay on document.assets, tagged with a media type and the part they came from. Images that carry an external URL render as ordinary Markdown images.

Full behavior notes and benchmarks live in the repository README.

License

MIT

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

firecrawl_anydoc-0.1.5.tar.gz (187.4 kB view details)

Uploaded Source

Built Distributions

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

firecrawl_anydoc-0.1.5-cp310-abi3-win_amd64.whl (3.5 MB view details)

Uploaded CPython 3.10+Windows x86-64

firecrawl_anydoc-0.1.5-cp310-abi3-musllinux_1_2_x86_64.whl (3.7 MB view details)

Uploaded CPython 3.10+musllinux: musl 1.2+ x86-64

firecrawl_anydoc-0.1.5-cp310-abi3-musllinux_1_2_aarch64.whl (3.4 MB view details)

Uploaded CPython 3.10+musllinux: musl 1.2+ ARM64

firecrawl_anydoc-0.1.5-cp310-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (3.4 MB view details)

Uploaded CPython 3.10+manylinux: glibc 2.17+ x86-64

firecrawl_anydoc-0.1.5-cp310-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (3.2 MB view details)

Uploaded CPython 3.10+manylinux: glibc 2.17+ ARM64

firecrawl_anydoc-0.1.5-cp310-abi3-macosx_11_0_arm64.whl (3.2 MB view details)

Uploaded CPython 3.10+macOS 11.0+ ARM64

firecrawl_anydoc-0.1.5-cp310-abi3-macosx_10_12_x86_64.whl (3.3 MB view details)

Uploaded CPython 3.10+macOS 10.12+ x86-64

File details

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

File metadata

  • Download URL: firecrawl_anydoc-0.1.5.tar.gz
  • Upload date:
  • Size: 187.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for firecrawl_anydoc-0.1.5.tar.gz
Algorithm Hash digest
SHA256 d1ad391f0c5262a506b42338d33de3864b681331faaafa638872dfc6a6a2124b
MD5 60a9deec4f4f6f86ddbd4dc5294b156b
BLAKE2b-256 80b18dc37bb6505692a9f51a7ce8bba0dc431adaf08e19ce2219c1bd801ba580

See more details on using hashes here.

Provenance

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

Publisher: release.yml on firecrawl/anydoc

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

File details

Details for the file firecrawl_anydoc-0.1.5-cp310-abi3-win_amd64.whl.

File metadata

File hashes

Hashes for firecrawl_anydoc-0.1.5-cp310-abi3-win_amd64.whl
Algorithm Hash digest
SHA256 ab572919b1b4d276ee3e965acbb1133bda572d86bd7da3098504c0ef610a1ea5
MD5 fe048c0e200e0ab5f46a50aac316f916
BLAKE2b-256 bd451f6c54b8526041b87c52a60da3d38474148f99a44500a40cc3bf273db4aa

See more details on using hashes here.

Provenance

The following attestation bundles were made for firecrawl_anydoc-0.1.5-cp310-abi3-win_amd64.whl:

Publisher: release.yml on firecrawl/anydoc

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

File details

Details for the file firecrawl_anydoc-0.1.5-cp310-abi3-musllinux_1_2_x86_64.whl.

File metadata

File hashes

Hashes for firecrawl_anydoc-0.1.5-cp310-abi3-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 12cf2d6e0ee2e7b20f76c7034798434b3731177a50c47a359d52a45391b02dbb
MD5 548a9bc68796085836a46895ebd5fe9a
BLAKE2b-256 e6f427fa580bb9e476b938ddeede355d9273c2d4b6dcf3f1377a622f443ad138

See more details on using hashes here.

Provenance

The following attestation bundles were made for firecrawl_anydoc-0.1.5-cp310-abi3-musllinux_1_2_x86_64.whl:

Publisher: release.yml on firecrawl/anydoc

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

File details

Details for the file firecrawl_anydoc-0.1.5-cp310-abi3-musllinux_1_2_aarch64.whl.

File metadata

File hashes

Hashes for firecrawl_anydoc-0.1.5-cp310-abi3-musllinux_1_2_aarch64.whl
Algorithm Hash digest
SHA256 8a480e6df138b91720e6d1ddd56dc480027c1a75e33503a0a7d93e4c9cfbf9ba
MD5 853a8bda2bfce8977795d68800cf4644
BLAKE2b-256 8e5bf12b971932313f0909841544a966b60edb2f3d4f11ed51cc7a580112832c

See more details on using hashes here.

Provenance

The following attestation bundles were made for firecrawl_anydoc-0.1.5-cp310-abi3-musllinux_1_2_aarch64.whl:

Publisher: release.yml on firecrawl/anydoc

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

File details

Details for the file firecrawl_anydoc-0.1.5-cp310-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for firecrawl_anydoc-0.1.5-cp310-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 d2afc20af31b4e560c781133a31ddf65192fc5bb526b90f37aeeffdc34dc0ef6
MD5 b7804f822ef8bd5525eb410d63c702be
BLAKE2b-256 01b440842caf96f1ea6bb58aecb7d094ed8d02194f8310130f992fcac39169a2

See more details on using hashes here.

Provenance

The following attestation bundles were made for firecrawl_anydoc-0.1.5-cp310-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl:

Publisher: release.yml on firecrawl/anydoc

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

File details

Details for the file firecrawl_anydoc-0.1.5-cp310-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl.

File metadata

File hashes

Hashes for firecrawl_anydoc-0.1.5-cp310-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 b3f4c33cbbebc78f1bce4dd76ddb961360b9fc8038c338a6244edc5131d629ac
MD5 6a3d4e9fcfb02188ccb8295b8c937aa6
BLAKE2b-256 d502536e237b4a48857d12c9e8cb54435c7f83b1db39f0837e7b743e807cd871

See more details on using hashes here.

Provenance

The following attestation bundles were made for firecrawl_anydoc-0.1.5-cp310-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl:

Publisher: release.yml on firecrawl/anydoc

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

File details

Details for the file firecrawl_anydoc-0.1.5-cp310-abi3-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for firecrawl_anydoc-0.1.5-cp310-abi3-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 a2249d1a5f2796477b831804e9ffe04e3d39fc3dd9ec2e8630e539b900124b94
MD5 ddbe82ea11ba0716e59777e518f1e1bb
BLAKE2b-256 9cecfc2a6d0bcb51e199aa6ade71903668e34f95d6ec8e011d4d6c7d5d2a4ee4

See more details on using hashes here.

Provenance

The following attestation bundles were made for firecrawl_anydoc-0.1.5-cp310-abi3-macosx_11_0_arm64.whl:

Publisher: release.yml on firecrawl/anydoc

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

File details

Details for the file firecrawl_anydoc-0.1.5-cp310-abi3-macosx_10_12_x86_64.whl.

File metadata

File hashes

Hashes for firecrawl_anydoc-0.1.5-cp310-abi3-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 fe413b976a4a9345561d502e50acc94591da76ca836c2e29131d4018bc414dcd
MD5 180cb7b71dad21333510b84d099e830c
BLAKE2b-256 9fe1e8fce19cc6fb4a3da0b54635046ec73e4567ee27d30ee4255b169a289286

See more details on using hashes here.

Provenance

The following attestation bundles were made for firecrawl_anydoc-0.1.5-cp310-abi3-macosx_10_12_x86_64.whl:

Publisher: release.yml on firecrawl/anydoc

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

Release history Release notifications | RSS feed

0.2.4

8 files

0.2.3

8 files

0.2.2

8 files

0.2.1

8 files

0.2.0

8 files

0.1.9

8 files

0.1.8

8 files

0.1.7

8 files

0.1.6

8 files

This release

0.1.5 This release

8 files

0.1.4

8 files

0.1.3

8 files

0.1.2

8 files

0.1.1

8 files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page