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 rotate, extract, split, merge, fill forms, 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

To try it once, without installing anything:

uv run --with ozaru python your_script.py

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.9.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 ozaru 0.9.1
File Size Uploaded Provenance Actions
ozaru-0.9.1.tar.gz 1.1 MB Without provenance Details for ozaru-0.9.1.tar.gz

Built distributions (wheels)

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

Total release size: 12.6 MB

Release files / ozaru-0.9.1.tar.gz

Download URL ozaru-0.9.1.tar.gz
Size 1.1 MB
Tags Source
SHA-256 checksum
How to use checksums
195ccf42e944aab1022e4c610c5203f182ad55ae5bf024deff9b248b69b623d9
BLAKE2b-256 checksum
How to use checksums
8ef357f1a55a00675be0844b2b9c847dce10c0a8b8841c378e53f8f3ee879960
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.9.1-cp310-abi3-win_amd64.whl

Download URL ozaru-0.9.1-cp310-abi3-win_amd64.whl
Size 1.5 MB
Tags CPython 3.10 Windows x86-64 abi3
SHA-256 checksum
How to use checksums
6d32b962beba09e0e0668ae83369ee32e5349a62f1c029a9eaebd29a993d99d2
BLAKE2b-256 checksum
How to use checksums
2aa5a2446beff3faed53cb8d4c73cbb8048ef6799e60e960bb27b81753621ba1
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.9.1-cp310-abi3-musllinux_1_2_x86_64.whl

Download URL ozaru-0.9.1-cp310-abi3-musllinux_1_2_x86_64.whl
Size 1.9 MB
Tags CPython 3.10 Linux musl 1.2+ x86-64 abi3
SHA-256 checksum
How to use checksums
a7420ccf8ebb522e7c49f52e8b9ce50561143fe1ef7426d1630efbef004a09c9
BLAKE2b-256 checksum
How to use checksums
97e12b8b8124fec8935f6d74b64fb1ebc6cfed81dd2af21b1f050f5fcd84f702
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.9.1-cp310-abi3-musllinux_1_2_aarch64.whl

Download URL ozaru-0.9.1-cp310-abi3-musllinux_1_2_aarch64.whl
Size 1.8 MB
Tags CPython 3.10 Linux musl 1.2+ ARM64 abi3
SHA-256 checksum
How to use checksums
b50005112f67a5af1993b7ab5974342062c7e696dd71ac25ebf902dfb5d61e92
BLAKE2b-256 checksum
How to use checksums
c0caef46d14ee08bb726d3aa4cf9a8c409c249363c5742937f89ddb38be71603
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.9.1-cp310-abi3-manylinux2014_x86_64.manylinux_2_17_x86_64.whl

Download URL ozaru-0.9.1-cp310-abi3-manylinux2014_x86_64.manylinux_2_17_x86_64.whl
Size 1.6 MB
Tags CPython 3.10 Linux glibc 2.17+ x86-64 abi3
SHA-256 checksum
How to use checksums
16277cb2aa601c2e050c8ef249f499a20d953a684b744181e5b00c4a219e4149
BLAKE2b-256 checksum
How to use checksums
432d6897017f11a744d53a7823154be8bcfd101665667403bf3ca73503979974
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.9.1-cp310-abi3-manylinux2014_aarch64.manylinux_2_17_aarch64.whl

Download URL ozaru-0.9.1-cp310-abi3-manylinux2014_aarch64.manylinux_2_17_aarch64.whl
Size 1.6 MB
Tags CPython 3.10 Linux glibc 2.17+ ARM64 abi3
SHA-256 checksum
How to use checksums
a098d9ecbbe64ac02ba5584637c833309b67b258ac02515ff8161f186e932908
BLAKE2b-256 checksum
How to use checksums
348103d87070e759ad415db48e5d51cde72ac65ea9e586c580969762f813ddc7
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.9.1-cp310-abi3-macosx_11_0_arm64.whl

Download URL ozaru-0.9.1-cp310-abi3-macosx_11_0_arm64.whl
Size 1.5 MB
Tags CPython 3.10 abi3 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
a57fc9c62cb61a8d9b5e515d3c88e00157165566be91ac788a280a968d6c3c3f
BLAKE2b-256 checksum
How to use checksums
805bdd1e22785965d645770ab3ba7684819736b6f2c1e4dba0ac185175e1cfc4
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.9.1-cp310-abi3-macosx_10_12_x86_64.whl

Download URL ozaru-0.9.1-cp310-abi3-macosx_10_12_x86_64.whl
Size 1.6 MB
Tags CPython 3.10 abi3 macOS 10.12+ x86-64
SHA-256 checksum
How to use checksums
64d4631efc08cd0f4e2a2e369eef1b7f6729996471cfec5cd396125f32edf4e7
BLAKE2b-256 checksum
How to use checksums
568a9da0b03601a5cbb24467ef1ca5dc5ae7b1392185e183322e36bba68710cb
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.9.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.

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