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.16

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.16
File Size Uploaded Provenance Actions
langchain_flatmark-1.0.16.tar.gz 5.6 kB With provenance Details for langchain_flatmark-1.0.16.tar.gz

Built distribution (wheel)

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

Total release size: 10.9 kB

Release files / langchain_flatmark-1.0.16.tar.gz

Download URL langchain_flatmark-1.0.16.tar.gz
Size 5.6 kB
Tags Source
SHA-256 checksum
How to use checksums
93702af129116d67930e2e00eafcca454c0c1da56f9bf66c388db0b449dc44c9
BLAKE2b-256 checksum
How to use checksums
5ea41236c3d9f5aa141d9d30ebe52c0604fd4e4442fec9862570b8319d7984be
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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 Nov 8, 2026.

Transparency log

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

Download URL langchain_flatmark-1.0.16-py3-none-any.whl
Size 5.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
4135eed0a6c83836f3cc0708237b886860541912d971fb32af682770fd33bf77
BLAKE2b-256 checksum
How to use checksums
493c8b155652219153b69d2c8a63457879dc5cc5d01298cacceabb7d5855fa65
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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 Nov 8, 2026.

Transparency log

Security for langchain-flatmark 1.0.16

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.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for langchain_flatmark-1.0.16.tar.gz

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 Nov 8, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

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