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

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

Built distributions (wheels)

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

Total release size: 12.6 MB

Release files / ozaru-0.9.2.tar.gz

Download URL ozaru-0.9.2.tar.gz
Size 1.1 MB
Tags Source
SHA-256 checksum
How to use checksums
d234e66ac31c627e9fe4850efa9055c9d340c805a81246ef26b8dcc91307555c
BLAKE2b-256 checksum
How to use checksums
56019434a6d434fe10bcee1a2f20d550ee335648afd87424bdf4aa26ee3dc3be
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.2-cp310-abi3-win_amd64.whl

Download URL ozaru-0.9.2-cp310-abi3-win_amd64.whl
Size 1.5 MB
Tags CPython 3.10 Windows x86-64 abi3
SHA-256 checksum
How to use checksums
88021918580e4dcedf455a8eada6677b286cde1ed175a3a86290643f37c39e43
BLAKE2b-256 checksum
How to use checksums
496f07fba1cef7156afef33d1a1294138e88ad2f3e7f63088cbdc6e8c7579b04
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.2-cp310-abi3-musllinux_1_2_x86_64.whl

Download URL ozaru-0.9.2-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
b6d160dcb541cb64483541722874ff60584b127f731106be1be7a0a35f677198
BLAKE2b-256 checksum
How to use checksums
e78592ace744012674a3dd0d6d78f128cd83624f16d0b94ba6369bcfe6740839
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.2-cp310-abi3-musllinux_1_2_aarch64.whl

Download URL ozaru-0.9.2-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
2fef7f36840fd93ac1b38500e4eb1ec78c22bab2e3be54436b82a7457291baba
BLAKE2b-256 checksum
How to use checksums
655bea603d10818e74ab3096b2cab21d08b6e499ee1d4d48339bf452c7f73cd7
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.2-cp310-abi3-manylinux2014_x86_64.manylinux_2_17_x86_64.whl

Download URL ozaru-0.9.2-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
be443f467abdbdc9c9aac8d53af307c15a27503ea5ea7ad98de8571512d89fc9
BLAKE2b-256 checksum
How to use checksums
0b8de97ed7dfe65652990b2af5e8c4fdb8a79b7a832eaea880dde3f81ba5e85b
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.2-cp310-abi3-manylinux2014_aarch64.manylinux_2_17_aarch64.whl

Download URL ozaru-0.9.2-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
86132656152c8554411b4f2b498ec686627891b308cb581606c51578ac491cc4
BLAKE2b-256 checksum
How to use checksums
d7ccfdeb588c617b23703fea861bc0066f640b64128f6bf0a4a4420c14a78038
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.2-cp310-abi3-macosx_11_0_arm64.whl

Download URL ozaru-0.9.2-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
b439304416c661b6ec9905555fa78e6f61f9a88d8c8914869c547208539a18b2
BLAKE2b-256 checksum
How to use checksums
39566f6c00bb200009be90e2d13b9a57b5a2892418026fdfbbab24879b95ce05
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.2-cp310-abi3-macosx_10_12_x86_64.whl

Download URL ozaru-0.9.2-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
9ae5892ef717a6373a0a50b0a85ab6a28982fd16aa906669940ef9ef3d9f10ab
BLAKE2b-256 checksum
How to use checksums
49a64375079f49e852ee54be7172602c967dff5822452a2433550f02ba3ea0a7
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.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.9.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