Skip to main content

flatmark — Python SDK

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

pip install flatmark

Get an API key and pass it to the client:

import os

from flatmark import AuthenticatedClient
from flatmark.api.account import get_me

client = AuthenticatedClient(
    base_url="https://api.flatmark.dev",
    token=os.environ["FLATMARK_API_KEY"],
    auth_header_name="X-API-Key",
    prefix="",
)
print(get_me.sync(client=client))

Every operation is a module with sync, sync_detailed, asyncio and asyncio_detailed; file fields take a flatmark.types.File(payload=..., file_name=..., mime_type=...).

submit_conversion_job queues a job: poll get_job until its status is succeeded or failed, then fetch get_conversion_result.

Operations

Operation Module What it does
GET /v1/me flatmark.api.account.get_me Your plan, remaining requests, and remaining credits
GET /v1/jobs/{job_id} flatmark.api.jobs.get_job Get one queued job by ID
GET /v1/jobs flatmark.api.jobs.list_jobs List your queued jobs, newest first
POST /v1/convert flatmark.api.convert.convert_document Convert a document to Markdown in one call
POST /v1/convert/jobs flatmark.api.convert.submit_conversion_job Queue a document for conversion with OCR and tables
GET /v1/convert/jobs/{job_id}/result flatmark.api.convert.get_conversion_result Download a queued job's Markdown or JSON

Generated with openapi-python-client from openapi.sdk.json. API reference: https://flatmark.dev/docs · Support: https://flatmark.dev/support

Metadata

Release files for 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 flatmark 1.0.16
File Size Uploaded Provenance Actions
flatmark-1.0.16.tar.gz 18.5 kB With provenance Details for flatmark-1.0.16.tar.gz

Built distribution (wheel)

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

Total release size: 60.3 kB

Release files / flatmark-1.0.16.tar.gz

Download URL flatmark-1.0.16.tar.gz
Size 18.5 kB
Tags Source
SHA-256 checksum
How to use checksums
8b836290d28dcd4834382c060e4c218b25b2832e657a45cdbaa5edae80e881f3
BLAKE2b-256 checksum
How to use checksums
eefc26447cff6d6a01be95a92c34b40765a56922b0fc248511c1eb70fbcbdfb2
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 / flatmark-1.0.16-py3-none-any.whl

Download URL flatmark-1.0.16-py3-none-any.whl
Size 41.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
26e9b7d80a4f8590d6282509d805abcf0ae176631b61d0413513ef8340ea8d40
BLAKE2b-256 checksum
How to use checksums
4ed8e745edb63c8701eb282b35e2fe3d0dbf96d7ed6f7a7449d3480a012f0627
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 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 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