Skip to main content

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

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.0
File Interpreter ABI Platform Actions
documentdriver-0.2.0-py3-none-manylinux2014_x86_64.musllinux_1_1_x86_64.whl Python 3 none Linux glibc 2.17+ x86-64, Linux musl 1.1+ x86-64 Details for documentdriver-0.2.0-py3-none-manylinux2014_x86_64.musllinux_1_1_x86_64.whl
documentdriver-0.2.0-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.0-py3-none-manylinux2014_aarch64.musllinux_1_1_aarch64.whl
documentdriver-0.2.0-py3-none-macosx_11_0_arm64.whl Python 3 none macOS 11.0+ ARM64 Details for documentdriver-0.2.0-py3-none-macosx_11_0_arm64.whl

Total release size: 26.0 MB

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

Download URL documentdriver-0.2.0-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
0a813c8bd89536b76230c1d41ec5c2a18a2f989d83772a05564790a0b48402eb
BLAKE2b-256 checksum
How to use checksums
6d4b7b94bad799b49ea1f5ade67c385f919d81d23c4c2658a407bd7ab9aef290
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.0-py3-none-manylinux2014_aarch64.musllinux_1_1_aarch64.whl

Download URL documentdriver-0.2.0-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
d428263c93fe0b111032a2176e346c5eb548a90e4b3b6a1c313ffc7a5fbe32f4
BLAKE2b-256 checksum
How to use checksums
55952235263bdf1be04f6b174a722d84ff633b1d777ef9ab4824de5781698773
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.0-py3-none-macosx_11_0_arm64.whl

Download URL documentdriver-0.2.0-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
493c601235f91b4a026cd8cf08ed27bc808a5e2873584fa2c23682f9461d5f7c
BLAKE2b-256 checksum
How to use checksums
6c02d340be165f7187cf8806e51757598a860e70553d2d6fce8f7cf3491c4401
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.0

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