Skip to main content

ozaru

ozaru

Read, draw, edit and protect PDF files from Python.
Small API, Rust core, no dependencies.

PyPI Python CI License: MIT

Documentation · PyPI · Changelog


import ozaru

text = ozaru.extract_text("invoice.pdf")
png = ozaru.render_page("invoice.pdf", 1, scale=2)
ozaru.fill_form("form.pdf", "filled.pdf", {"name": "Ana"})

Time to extract text and draw pages: ozaru against PyMuPDF and pypdf, shorter is better

Median time of one call, on an Intel Core i5-11400H. All the numbers.

ozaru PyMuPDF pypdf
License MIT AGPL or paid BSD
Python dependencies none none none
Engine Rust, forbid(unsafe_code), fuzzed in CI C (MuPDF) pure Python
Install one wheel, no compiler one wheel pure Python
Speed faster than PyMuPDF at text, words and drawing pages, and about 8 times faster than pypdf very fast slow on big files
Draws pages yes yes no
Edits pages, draw text, fonts and images, watermarks, annotations, redaction, forms (create, fill, flatten), encrypt: more on the way everything pages, forms, metadata

One function per task, an engine of its own in Rust, nothing else to install. Young and moving fast: the roadmap to 1.0.0 is to do everything PyMuPDF and pypdf do that matters.

Installation

With uv, in your project:

uv add ozaru

From the terminal, with nothing installed:

uvx ozaru text invoice.pdf

Or into the active environment: uv pip install ozaru. It also installs with pip. Python 3.10 or newer; wheels for Linux, macOS and Windows, so no Rust needed.

Contributing

You need Rust and uv. Then run:

git clone https://github.com/Jair-dev57/ozaru.git
cd ozaru
uv run pytest

See the contributing guide. Bug reports and ideas are welcome in the issue tracker; for security problems, read SECURITY.md.

License

ozaru is released under the MIT License.

Metadata

Release files for ozaru 0.12.0

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

Source distribution (sdist)

Source distribution for ozaru 0.12.0
File Size Uploaded Provenance Actions
ozaru-0.12.0.tar.gz 1.3 MB Without provenance Details for ozaru-0.12.0.tar.gz

Built distributions (wheels)

Table of built distributions (wheels) for ozaru 0.12.0
File Actions
ozaru-0.12.0-cp310-abi3-win_amd64.whl CPython 3.10 abi3 Windows x86-64 Details for ozaru-0.12.0-cp310-abi3-win_amd64.whl
ozaru-0.12.0-cp310-abi3-musllinux_1_2_x86_64.whl CPython 3.10 abi3 Linux musl 1.2+ x86-64 Details for ozaru-0.12.0-cp310-abi3-musllinux_1_2_x86_64.whl
ozaru-0.12.0-cp310-abi3-musllinux_1_2_aarch64.whl CPython 3.10 abi3 Linux musl 1.2+ ARM64 Details for ozaru-0.12.0-cp310-abi3-musllinux_1_2_aarch64.whl
ozaru-0.12.0-cp310-abi3-manylinux2014_x86_64.manylinux_2_17_x86_64.whl CPython 3.10 abi3 Linux glibc 2.17+ x86-64 Details for ozaru-0.12.0-cp310-abi3-manylinux2014_x86_64.manylinux_2_17_x86_64.whl
ozaru-0.12.0-cp310-abi3-manylinux2014_aarch64.manylinux_2_17_aarch64.whl CPython 3.10 abi3 Linux glibc 2.17+ ARM64 Details for ozaru-0.12.0-cp310-abi3-manylinux2014_aarch64.manylinux_2_17_aarch64.whl
ozaru-0.12.0-cp310-abi3-macosx_11_0_arm64.whl CPython 3.10 abi3 macOS 11.0+ ARM64 Details for ozaru-0.12.0-cp310-abi3-macosx_11_0_arm64.whl
ozaru-0.12.0-cp310-abi3-macosx_10_12_x86_64.whl CPython 3.10 abi3 macOS 10.12+ x86-64 Details for ozaru-0.12.0-cp310-abi3-macosx_10_12_x86_64.whl

Total release size: 16.7 MB

Release files / ozaru-0.12.0.tar.gz

Download URL ozaru-0.12.0.tar.gz
Size 1.3 MB
Tags Source
SHA-256 checksum
How to use checksums
2502b2fd3e8229d1e4cc381df078fcd70e585bc8f75677106a2ff7250f1d1ccd
BLAKE2b-256 checksum
How to use checksums
cfed700e3e01165ddd409d88971327e592c0e17e56bcd648cc0d1b504ed36371
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.13.10 {"installer":{"name":"uv","version":"0.13.10","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"26.04","id":"resolute","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Release files / ozaru-0.12.0-cp310-abi3-win_amd64.whl

Download URL ozaru-0.12.0-cp310-abi3-win_amd64.whl
Size 2.0 MB
Tags CPython 3.10 Windows x86-64 abi3
SHA-256 checksum
How to use checksums
6872a508d1949e4b9f6b775ebaf17969dc304e03fc24cda64ee1a59c2b58ba7a
BLAKE2b-256 checksum
How to use checksums
5a234eb3411dc56f29f80bc442763482efe01c5fd9583b0ec2a5620d3fc3fa2e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.13.10 {"installer":{"name":"uv","version":"0.13.10","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"26.04","id":"resolute","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Release files / ozaru-0.12.0-cp310-abi3-musllinux_1_2_x86_64.whl

Download URL ozaru-0.12.0-cp310-abi3-musllinux_1_2_x86_64.whl
Size 2.5 MB
Tags CPython 3.10 Linux musl 1.2+ x86-64 abi3
SHA-256 checksum
How to use checksums
781589d68256e3d23d9516ece233f8d0a100ae877b353b330f78d3815d0b914a
BLAKE2b-256 checksum
How to use checksums
800c638f6ec035f705a2c1ceefcca9a3d1c6d8fa16d66749a645469275f5dffd
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.13.10 {"installer":{"name":"uv","version":"0.13.10","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"26.04","id":"resolute","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Release files / ozaru-0.12.0-cp310-abi3-musllinux_1_2_aarch64.whl

Download URL ozaru-0.12.0-cp310-abi3-musllinux_1_2_aarch64.whl
Size 2.4 MB
Tags CPython 3.10 Linux musl 1.2+ ARM64 abi3
SHA-256 checksum
How to use checksums
88dab3e0315c594b8c06ab8ed46f05a06a097f36b903f9791f1595925d0489dc
BLAKE2b-256 checksum
How to use checksums
a245e217e2aa0e17d1e7e2c04f651a2028e367014ae847e1947bc16fe54ada03
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.13.10 {"installer":{"name":"uv","version":"0.13.10","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"26.04","id":"resolute","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Release files / ozaru-0.12.0-cp310-abi3-manylinux2014_x86_64.manylinux_2_17_x86_64.whl

Download URL ozaru-0.12.0-cp310-abi3-manylinux2014_x86_64.manylinux_2_17_x86_64.whl
Size 2.2 MB
Tags CPython 3.10 Linux glibc 2.17+ x86-64 abi3
SHA-256 checksum
How to use checksums
6cb8761c61bc0d7d6d68a6f40a396656a61bae3b8ed6099b89757cadefd2e59f
BLAKE2b-256 checksum
How to use checksums
aa2164b003049bfac6806ca73379c0e8fd836162f7388f1ff6ff29947b2fa953
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.13.10 {"installer":{"name":"uv","version":"0.13.10","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"26.04","id":"resolute","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Release files / ozaru-0.12.0-cp310-abi3-manylinux2014_aarch64.manylinux_2_17_aarch64.whl

Download URL ozaru-0.12.0-cp310-abi3-manylinux2014_aarch64.manylinux_2_17_aarch64.whl
Size 2.2 MB
Tags CPython 3.10 Linux glibc 2.17+ ARM64 abi3
SHA-256 checksum
How to use checksums
10a7c4c4f64de7cb8321a88c27a8ef272ea94780c13bc3b146eace2c6038b618
BLAKE2b-256 checksum
How to use checksums
a96409ad1b0b63719406cc7c0fb237521a8d8532e7c6964c187093dfd0437824
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.13.10 {"installer":{"name":"uv","version":"0.13.10","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"26.04","id":"resolute","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Release files / ozaru-0.12.0-cp310-abi3-macosx_11_0_arm64.whl

Download URL ozaru-0.12.0-cp310-abi3-macosx_11_0_arm64.whl
Size 2.1 MB
Tags CPython 3.10 abi3 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
1b7225f8c1c597cee9bb1d896674a32284bcdf1374c37ebb6ab0eaeeb7d44182
BLAKE2b-256 checksum
How to use checksums
1990f1cc03e2bf19d6d2deb589b073caf2f1089a6e08d1c39d64b5017b7e4c00
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.13.10 {"installer":{"name":"uv","version":"0.13.10","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"26.04","id":"resolute","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Release files / ozaru-0.12.0-cp310-abi3-macosx_10_12_x86_64.whl

Download URL ozaru-0.12.0-cp310-abi3-macosx_10_12_x86_64.whl
Size 2.1 MB
Tags CPython 3.10 abi3 macOS 10.12+ x86-64
SHA-256 checksum
How to use checksums
09abc39a11d8c26f1211caf11f5250eface9767a57ad46c1a751f03bf49b40df
BLAKE2b-256 checksum
How to use checksums
02b59f8a543764cbf349c193fe6f1ef38cd9d923870ac60c440fb52a4beca6fb
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.13.10 {"installer":{"name":"uv","version":"0.13.10","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"26.04","id":"resolute","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Security for ozaru 0.12.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.

Release history Release notifications | RSS feed

This release

0.12.0 This release

8 release files No 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