Skip to main content

almiladoc

Rust library and Python binding that convert 12 document formats to GitHub-Flavored Markdown in-process. There is no CLI.

  • No OCR model ships: scanned pages go to an OpenAI-compatible vision server (OcrHttp) or to your own OCR.
  • No network access unless you pass OcrHttp.
  • Fair Source (source-available), under the licence terms. Releases are on PyPI and crates.io and follow Semantic Versioning.

Formats

format= name Family Extensions
doc Word 97-2003 .doc
docx Word .docx, .docm
odt OpenDocument text .odt
pdf PDF .pdf
ppt PowerPoint 97-2003 .ppt, .pps, .pot
pptx PowerPoint .pptx, .pptm, .ppsx, .ppsm
rtf Rich Text Format .rtf
epub EPUB 2 and 3 .epub
xlsx Excel, every generation .xlsx, .xlsm, .xlsb, .xls
ods OpenDocument spreadsheet .ods
odp OpenDocument presentation .odp
csv CSV .csv
  • Content decides the format; CSV has no signature and must be named.
  • What each format keeps and loses: Format support.

Install

pip install almiladoc
cargo add almiladoc --features ocr-http,serde
  • Python 3.11 or newer; a platform without a wheel builds from the sdist and needs Rust 1.99 or newer.
  • The wheel has every Cargo feature.
Cargo feature Default Adds
pdf yes PDF input; without it a PDF fails feature_disabled
raster yes Page images for OCR (implies pdf); without it PDF gaps get no image
serde no Parsed::to_json and JSON_SCHEMA_VERSION
ocr-http no OcrHttp, the OpenAI-compatible OCR engine

Quickstart

from pathlib import Path

import almiladoc

converter = almiladoc.Converter()
print(converter.convert_path("report.docx").markdown)
print(converter.convert(Path("table.csv").read_bytes(), "csv").markdown)
use almiladoc::{Config, Converter, Format, Input};

fn main() -> Result<(), Box<dyn std::error::Error>> {
    let converter = Converter::new(Config::default())?;
    let csv = b"name,year\nAda,1843\n";
    let markdown = converter.convert(Input::new(csv, Format::Csv))?.into_markdown();
    assert_eq!(markdown, "| name | year |\n| --- | --- |\n| Ada | 1843 |\n");
    Ok(())
}

Rules for coding agents

Copy these into the agent instructions of a project that uses almiladoc.

  • Build one Converter per Config and share it; get throughput from concurrent calls.
  • Default OnLoss.FAIL raises NeedsOcrError for an unfilled PDF page, then IncompleteError for lost content. OnLoss.REPORT returns Markdown with is_complete false and the diagnostics.
  • Branch on error.code and kind, never on messages.
  • CSV is never detected: pass "csv". Format names are exact and lower case; every Excel file is "xlsx".
  • A scanned PDF needs ocr= or the gap loop of the OCR guide; otherwise it raises NeedsOcrError.
  • OCR text of an image outside a document goes through Converter.render_ocr, not your own HTML or table conversion.
  • Convert untrusted PDFs in a memory-capped worker process and recycle it after InternalError.
  • Read signatures from the installed _almiladoc.pyi (Python) or cargo doc --all-features (Rust).

Guides

Licence

  • This repository's own work is under the Business Source License 1.1 (BUSL-1.1). Each version becomes available under the MIT License four years after it is first made publicly available.
  • The portions REUSE.toml marks MIT are under the MIT License, with the copyright line it records; REUSE.toml records the copyright and licence of each file.

A commercial licence covers any other production use: USD 1,000 per project per year for a licensee whose gross revenue and outside funding are each at most USD 5 million, a project being one product, service or internal application that uses almiladoc; above that, priced per company. Write to almilaapp@gmail.com.

Licensing

  • What is a Competing Use? Making almiladoc available to others in a commercial product or service that substitutes for it or offers the same or substantially similar functionality. LICENSE is the binding text.
  • What is free? Any non-production use, such as evaluation, development and testing, and production use other than a Competing Use by an individual for personal, non-commercial purposes, for non-commercial teaching or academic research, or by anyone who, with their affiliates, had less than USD 100,000 in gross revenue in the preceding 12 months and has raised less than USD 100,000 in outside funding in total.
  • When does a version become MIT? On the fourth anniversary of the date that version is first made publicly available; from then on, that version is under the MIT License alone.

Contributing

See CONTRIBUTING.md, SECURITY.md and the code of conduct.

Metadata

Release files for almiladoc 1.0.1

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

Source distribution (sdist)

Source distribution for almiladoc 1.0.1
File Size Uploaded Provenance Actions
almiladoc-1.0.1.tar.gz 1.1 MB With provenance Details for almiladoc-1.0.1.tar.gz

Built distributions (wheels)

Table of built distributions (wheels) for almiladoc 1.0.1
File Actions
almiladoc-1.0.1-cp311-abi3-win_arm64.whl CPython 3.11 abi3 Windows ARM64 Details for almiladoc-1.0.1-cp311-abi3-win_arm64.whl
almiladoc-1.0.1-cp311-abi3-win_amd64.whl CPython 3.11 abi3 Windows x86-64 Details for almiladoc-1.0.1-cp311-abi3-win_amd64.whl
almiladoc-1.0.1-cp311-abi3-musllinux_1_2_x86_64.whl CPython 3.11 abi3 Linux musl 1.2+ x86-64 Details for almiladoc-1.0.1-cp311-abi3-musllinux_1_2_x86_64.whl
almiladoc-1.0.1-cp311-abi3-musllinux_1_2_aarch64.whl CPython 3.11 abi3 Linux musl 1.2+ ARM64 Details for almiladoc-1.0.1-cp311-abi3-musllinux_1_2_aarch64.whl
almiladoc-1.0.1-cp311-abi3-manylinux_2_28_x86_64.whl CPython 3.11 abi3 Linux glibc 2.28+ x86-64 Details for almiladoc-1.0.1-cp311-abi3-manylinux_2_28_x86_64.whl
almiladoc-1.0.1-cp311-abi3-manylinux_2_28_aarch64.whl CPython 3.11 abi3 Linux glibc 2.28+ ARM64 Details for almiladoc-1.0.1-cp311-abi3-manylinux_2_28_aarch64.whl
almiladoc-1.0.1-cp311-abi3-macosx_11_0_arm64.whl CPython 3.11 abi3 macOS 11.0+ ARM64 Details for almiladoc-1.0.1-cp311-abi3-macosx_11_0_arm64.whl
almiladoc-1.0.1-cp311-abi3-macosx_10_12_x86_64.whl CPython 3.11 abi3 macOS 10.12+ x86-64 Details for almiladoc-1.0.1-cp311-abi3-macosx_10_12_x86_64.whl

Total release size: 52.5 MB

Release files / almiladoc-1.0.1.tar.gz

Download URL almiladoc-1.0.1.tar.gz
Size 1.1 MB
Tags Source
SHA-256 checksum
How to use checksums
83dad4a842368191b60b925336d39f1867eeff645d09e2653e9c1c6840ea0371
BLAKE2b-256 checksum
How to use checksums
6aab141e5f6035482ba7c87f0512a9a55bffcf31489f9501f807ae61e3c93e8b
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 4, 2026.

Transparency log

Release files / almiladoc-1.0.1-cp311-abi3-win_arm64.whl

Download URL almiladoc-1.0.1-cp311-abi3-win_arm64.whl
Size 6.3 MB
Tags CPython 3.11 Windows ARM64 abi3
SHA-256 checksum
How to use checksums
442e11e9c24f425ab7e43a7ebf5c4232b4d21a74f92368bf7b772f2861c59927
BLAKE2b-256 checksum
How to use checksums
b409a05cfc9c21eeb3151e322db84641f4f584494b43ab2244f10edde69730f7
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 4, 2026.

Transparency log

Release files / almiladoc-1.0.1-cp311-abi3-win_amd64.whl

Download URL almiladoc-1.0.1-cp311-abi3-win_amd64.whl
Size 6.7 MB
Tags CPython 3.11 Windows x86-64 abi3
SHA-256 checksum
How to use checksums
636f8bffd37ba003e3a2ec41335e794565e29557112ea1c04e9a9252630ecae5
BLAKE2b-256 checksum
How to use checksums
30fb92afa1c778a1cad4ca830a9293b64a1126c7168e8c7d9bf5ab3264895565
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 4, 2026.

Transparency log

Release files / almiladoc-1.0.1-cp311-abi3-musllinux_1_2_x86_64.whl

Download URL almiladoc-1.0.1-cp311-abi3-musllinux_1_2_x86_64.whl
Size 6.7 MB
Tags CPython 3.11 Linux musl 1.2+ x86-64 abi3
SHA-256 checksum
How to use checksums
e902ae4450ef0ba3a6ae999a621aafa0e4002e1fddd27c949b3d0ffab549ecbb
BLAKE2b-256 checksum
How to use checksums
c831f1e01b5ba0abd0ec7ba6c9c7ff1e95837de9fec841b1c8f87a5f26b5c1f7
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 4, 2026.

Transparency log

Release files / almiladoc-1.0.1-cp311-abi3-musllinux_1_2_aarch64.whl

Download URL almiladoc-1.0.1-cp311-abi3-musllinux_1_2_aarch64.whl
Size 6.3 MB
Tags CPython 3.11 Linux musl 1.2+ ARM64 abi3
SHA-256 checksum
How to use checksums
df4a95fff3261da19aa02fa0d2d131343564a2c74b87031a0e584385bb5efd78
BLAKE2b-256 checksum
How to use checksums
64c96be2ad1213491ca44796fa08a814032f8b353db2a741a29a6e0d2727da7a
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 4, 2026.

Transparency log

Release files / almiladoc-1.0.1-cp311-abi3-manylinux_2_28_x86_64.whl

Download URL almiladoc-1.0.1-cp311-abi3-manylinux_2_28_x86_64.whl
Size 6.7 MB
Tags CPython 3.11 Linux glibc 2.28+ x86-64 abi3
SHA-256 checksum
How to use checksums
0ac113e11ea5acf9fa72a13279b2cd5de528ff4c9a4dbc406fc77591a1ef6a71
BLAKE2b-256 checksum
How to use checksums
f3b0e87dc6aa2f1d4657635aa4312812f844f119f5c7f98020ca084d384b00d6
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 4, 2026.

Transparency log

Release files / almiladoc-1.0.1-cp311-abi3-manylinux_2_28_aarch64.whl

Download URL almiladoc-1.0.1-cp311-abi3-manylinux_2_28_aarch64.whl
Size 6.3 MB
Tags CPython 3.11 Linux glibc 2.28+ ARM64 abi3
SHA-256 checksum
How to use checksums
089452c15ca789e4dad813ba4a86b6f47d85e1c5ba177b34eaf52fdbbdbed823
BLAKE2b-256 checksum
How to use checksums
f4d9c6028560269a88b6f8e23b7a3e73ef158f64ec9f27c5c6c0f82a65670558
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 4, 2026.

Transparency log

Release files / almiladoc-1.0.1-cp311-abi3-macosx_11_0_arm64.whl

Download URL almiladoc-1.0.1-cp311-abi3-macosx_11_0_arm64.whl
Size 6.1 MB
Tags CPython 3.11 abi3 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
3ade479bb393d8f9de185f7766823948680529a5f5b3e40fcc229cd7170e248f
BLAKE2b-256 checksum
How to use checksums
552301948fc405a4cb1a14dd92e5b3f8a91cd5a984f4cf55175df321427d3ab6
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 4, 2026.

Transparency log

Release files / almiladoc-1.0.1-cp311-abi3-macosx_10_12_x86_64.whl

Download URL almiladoc-1.0.1-cp311-abi3-macosx_10_12_x86_64.whl
Size 6.5 MB
Tags CPython 3.11 abi3 macOS 10.12+ x86-64
SHA-256 checksum
How to use checksums
977038d5f3b6975ab2604ea21bddb9ac2c2773a5cd1fac4f05f9eb1a747115af
BLAKE2b-256 checksum
How to use checksums
54d260dbb91139e526139fcffa0bf3b0adb3602fd7c2803ea8e94f23c1aa53be
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 4, 2026.

Transparency log

Security for almiladoc 1.0.1

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

All 9 files in this release have been uploaded with provenance metadata.

Select from 9 files

Attestation for almiladoc-1.0.1.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 4, 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.

Release history Release notifications | RSS feed

This release

1.0.1 This release

9 release files Full provenance

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