Skip to main content
Pre-release

This release is a pre-release and may not be stable for production use.

documentdriver

The docx, pptx and xlsx command-line tools of documentdriver for one platform: static binaries (no cgo, no libc) that read and edit Office documents for agents, with one JSON result or one errors object per call. Wheels exist for linux x86_64 and aarch64 (glibc and musl) and macOS arm64.

import documentdriver

with open("report.docx", "rb") as f:
    data = f.read()
facts, _ = documentdriver.run("docx", ["read", "in.docx"], {"in.docx": data})
plan = {"ops": [...]}  # see `docx help ops`
result, out = documentdriver.run("docx", ["apply", "in.docx", "-", "-o", "out.docx"],
                                 {"in.docx": data}, stdin=plan, output="out.docx")

run() makes one call in a private directory and returns the parsed result and the output file's bytes, or raises EngineError with the contract's errors (code, path, message, hint). binary(name) returns the bundled binary's path after checking it against the SHA-256 recorded when the wheel was built, to run it yourself.

Commands, plans, results and errors: the agent contract.

Metadata

Release files for documentdriver 0.2.0rc1

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

Built distributions (wheels)

Table of built distributions (wheels) for documentdriver 0.2.0rc1
File Interpreter ABI Platform Actions
documentdriver-0.2.0rc1-py3-none-manylinux2014_x86_64.musllinux_1_1_x86_64.whl Python 3 none Linux musl 1.1+ x86-64, Linux glibc 2.17+ x86-64 Details for documentdriver-0.2.0rc1-py3-none-manylinux2014_x86_64.musllinux_1_1_x86_64.whl
documentdriver-0.2.0rc1-py3-none-manylinux2014_aarch64.musllinux_1_1_aarch64.whl Python 3 none Linux musl 1.1+ ARM64, Linux glibc 2.17+ ARM64 Details for documentdriver-0.2.0rc1-py3-none-manylinux2014_aarch64.musllinux_1_1_aarch64.whl
documentdriver-0.2.0rc1-py3-none-macosx_11_0_arm64.whl Python 3 none macOS 11.0+ ARM64 Details for documentdriver-0.2.0rc1-py3-none-macosx_11_0_arm64.whl

Total release size: 26.0 MB

Release files / documentdriver-0.2.0rc1-py3-none-manylinux2014_x86_64.musllinux_1_1_x86_64.whl

Download URL documentdriver-0.2.0rc1-py3-none-manylinux2014_x86_64.musllinux_1_1_x86_64.whl
Size 9.3 MB
Tags Linux glibc 2.17+ x86-64 Linux musl 1.1+ x86-64 Python 3
SHA-256 checksum
How to use checksums
4e229eca6f7c1b938961213735b77c3f386ca3c65922bc0f2cd5412b7dfdd60d
BLAKE2b-256 checksum
How to use checksums
09cebcca89aea9b661b0881f45ce85fd2792a21311efbf76f629f3ece66c29bd
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.11.19 {"installer":{"name":"uv","version":"0.11.19","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

Release files / documentdriver-0.2.0rc1-py3-none-manylinux2014_aarch64.musllinux_1_1_aarch64.whl

Download URL documentdriver-0.2.0rc1-py3-none-manylinux2014_aarch64.musllinux_1_1_aarch64.whl
Size 8.2 MB
Tags Linux glibc 2.17+ ARM64 Linux musl 1.1+ ARM64 Python 3
SHA-256 checksum
How to use checksums
2b5337a992369138b2ff10c7132ab9bb68ca8d6a7fb7468157a0433cc48a140e
BLAKE2b-256 checksum
How to use checksums
2ef3dba58d1bc4ba5b1d6818387be8a89e657afc6c7944f4abf2e5132f6d9c84
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.11.19 {"installer":{"name":"uv","version":"0.11.19","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

Release files / documentdriver-0.2.0rc1-py3-none-macosx_11_0_arm64.whl

Download URL documentdriver-0.2.0rc1-py3-none-macosx_11_0_arm64.whl
Size 8.5 MB
Tags Python 3 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
827edac136e86ac6ba70129d625ad96b0a2062e2c2d00a56b44ec49428aaafe0
BLAKE2b-256 checksum
How to use checksums
d40f15274184e1bbae9a37167a7855652ab5250056030526370f020f72253697
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.11.19 {"installer":{"name":"uv","version":"0.11.19","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

Security for documentdriver 0.2.0rc1

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.

No provenance found

None of the files in this release were uploaded with provenance metadata.

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