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

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.2
File Size Uploaded Provenance Actions
ozaru-0.12.2.tar.gz 1.3 MB Without provenance Details for ozaru-0.12.2.tar.gz

Built distributions (wheels)

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

Total release size: 17.3 MB

Release files / ozaru-0.12.2.tar.gz

Download URL ozaru-0.12.2.tar.gz
Size 1.3 MB
Tags Source
SHA-256 checksum
How to use checksums
99f6d676bff4658bbf0902e8d3f25ffed77d95f7a42f18df99166d332769aa42
BLAKE2b-256 checksum
How to use checksums
f8babf6c19e6c86ddde1168b54a5cdd73fbe0e003324da9d749f85dbc99ca556
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.2-cp310-abi3-win_amd64.whl

Download URL ozaru-0.12.2-cp310-abi3-win_amd64.whl
Size 2.1 MB
Tags CPython 3.10 Windows x86-64 abi3
SHA-256 checksum
How to use checksums
78f5295707382f490d84c123e50f05c4afdad5bc14e5243e9f6bfdb058ed45d3
BLAKE2b-256 checksum
How to use checksums
730b18d63c1c14a215aac02cce14f7b3cd8fda6233c296f3de446a84ee97bf3e
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.2-cp310-abi3-musllinux_1_2_x86_64.whl

Download URL ozaru-0.12.2-cp310-abi3-musllinux_1_2_x86_64.whl
Size 2.6 MB
Tags CPython 3.10 Linux musl 1.2+ x86-64 abi3
SHA-256 checksum
How to use checksums
74776f6c3fc8c8d27056c11b0e788fc9219679b272a8e7fc9e06e4ab7addc607
BLAKE2b-256 checksum
How to use checksums
6d32bb8d3461786f2d7a7c4a46e5d5646c7f0625a76ac145bc62d5a06c6dbe40
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.2-cp310-abi3-musllinux_1_2_aarch64.whl

Download URL ozaru-0.12.2-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
361e00eb0544b9484b32e1c75a3c37719a764edb529a9550e2eacd48d46f8326
BLAKE2b-256 checksum
How to use checksums
530a99b910f4a0e79e1e08375c16dc034bd8de74b6e9ac21f5a8045374ff2b1d
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.2-cp310-abi3-manylinux2014_x86_64.manylinux_2_17_x86_64.whl

Download URL ozaru-0.12.2-cp310-abi3-manylinux2014_x86_64.manylinux_2_17_x86_64.whl
Size 2.3 MB
Tags CPython 3.10 Linux glibc 2.17+ x86-64 abi3
SHA-256 checksum
How to use checksums
4f44d7dfeef384a4930e739ba686f97e9463abc0b8376d88b0fdc4bad9d6f831
BLAKE2b-256 checksum
How to use checksums
d4a8a97159e7970ac191983af8cef248283f9ffba1bf3973566944f28f06544b
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.2-cp310-abi3-manylinux2014_aarch64.manylinux_2_17_aarch64.whl

Download URL ozaru-0.12.2-cp310-abi3-manylinux2014_aarch64.manylinux_2_17_aarch64.whl
Size 2.3 MB
Tags CPython 3.10 Linux glibc 2.17+ ARM64 abi3
SHA-256 checksum
How to use checksums
434b8d73ed12ef788adc6cf8b8feb786f74fb76664009c2a6f28da52cb769d55
BLAKE2b-256 checksum
How to use checksums
a2357ebc0fa38518449bbba979cda8a7cd4503201dcba08d1d9bb0346a1fdf53
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.2-cp310-abi3-macosx_11_0_arm64.whl

Download URL ozaru-0.12.2-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
089627b2b02684adea80bc42c96cfa119fb33c2bf21a10f56b7b33d2e2e39af7
BLAKE2b-256 checksum
How to use checksums
0b9b8e09a58d7561139aab220c062037ca77c9b2407bc045fa4bf9e03c5f66a3
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.2-cp310-abi3-macosx_10_12_x86_64.whl

Download URL ozaru-0.12.2-cp310-abi3-macosx_10_12_x86_64.whl
Size 2.2 MB
Tags CPython 3.10 abi3 macOS 10.12+ x86-64
SHA-256 checksum
How to use checksums
8d98e3e97332e9164d3f56273b1bd06704d775fa91236f7d32151f69909be01a
BLAKE2b-256 checksum
How to use checksums
a7f53b1cc3c978647faba1b0d9b827253166a6ddf533d9a01d7afb9838a4a366
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.2

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