Skip to main content

langchain-flatmark

Document to Markdown API and MCP server for PDF, Word, PowerPoint, Excel and HTML. OCR queue for large files. Hosted in Germany.

A LangChain document loader for the flatmark API: FlatmarkLoader turns local files and URLs into Markdown Documents.

pip install langchain-flatmark
from langchain_flatmark import FlatmarkLoader

docs = FlatmarkLoader("report.pdf").load()
print(docs[0].page_content)

Direct conversion (POST /v1/convert) works without a key at a lower rate limit. Get an API key and pass it as api_key= or set FLATMARK_API_KEY.

For large or scanned files, convert through the queue (an API key is required):

loader = FlatmarkLoader(["scan.pdf", "https://example.com/deck.pptx"], use_queue=True)
for doc in loader.lazy_load():
    print(doc.metadata, len(doc.page_content))

The loader submits POST /v1/convert/jobs, polls GET /v1/jobs/{job_id} until the job's status is succeeded or failed, then downloads GET /v1/convert/jobs/{job_id}/result.

Documents

One Document per source; page_content is the Markdown. metadata carries source (the path or URL as given) plus the meta fields of the answer — and job_id for a queued conversion.

A URL is downloaded by the loader without your key, then uploaded. Other options: base_url, poll_interval, timeout, and client (an httpx.Client for proxies or retries).

API reference: https://flatmark.dev/docs · Support: https://flatmark.dev/support · Generated from openapi.json.

Metadata

Release files for langchain-flatmark 1.0.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for langchain-flatmark 1.0.2
File Size Uploaded
langchain_flatmark-1.0.2.tar.gz 5.6 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for langchain-flatmark 1.0.2
File Interpreter ABI Platform
langchain_flatmark-1.0.2-py3-none-any.whl Python 3 none any Details

Total release size: 10.9 kB

Release files / langchain_flatmark-1.0.2.tar.gz

Download URL langchain_flatmark-1.0.2.tar.gz
Size 5.6 kB
Tags Source
SHA-256 checksum
How to use checksums
529b648ff4ef8ccc09eba91e28ee6665dfe18243c4b2bdd0a7dd51fc8cc9aa66
BLAKE2b-256 checksum
How to use checksums
b6de8aeafc51cb231b1ae5971109a4a922fe6b2819394a13cc3844b07cbe218d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 2, 2026.

Transparency log

Release files / langchain_flatmark-1.0.2-py3-none-any.whl

Download URL langchain_flatmark-1.0.2-py3-none-any.whl
Size 5.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
3aba52c8e7a1f731b32d47780d3ca0c8562a725cad9e1a4a9e76d8228108c556
BLAKE2b-256 checksum
How to use checksums
44945432bbd7c496d72aae431ad65bf6bf6ca51fd88d702f7a1ff7317b0a4314
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 2, 2026.

Transparency log

Release history Release notifications | RSS feed

This release

1.0.2 This release

2 release files

1.0.1

2 release 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