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

Built distributions (wheels)

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

Total release size: 16.1 MB

Release files / ozaru-0.11.2.tar.gz

Download URL ozaru-0.11.2.tar.gz
Size 1.3 MB
Tags Source
SHA-256 checksum
How to use checksums
c8b6d1dba78cbaa3e85b431c92cfd6e22bb7f76dd9f7dfd63b68310d9909b8f8
BLAKE2b-256 checksum
How to use checksums
7d92f2eadc407463c22f442e0d34b650a8870a619aaa97cdbdea72ace92c8ea8
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.11.2-cp310-abi3-win_amd64.whl

Download URL ozaru-0.11.2-cp310-abi3-win_amd64.whl
Size 1.9 MB
Tags CPython 3.10 Windows x86-64 abi3
SHA-256 checksum
How to use checksums
fda49d57cc57df4b4cdc28a41310465afd3966df72c0ef17205b824ae666a19c
BLAKE2b-256 checksum
How to use checksums
ed77a259a8c04c00829bedff9dd87adbfae78f14bd5177e37424db7e1395541b
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.11.2-cp310-abi3-musllinux_1_2_x86_64.whl

Download URL ozaru-0.11.2-cp310-abi3-musllinux_1_2_x86_64.whl
Size 2.4 MB
Tags CPython 3.10 Linux musl 1.2+ x86-64 abi3
SHA-256 checksum
How to use checksums
96b23b2dd1b53da7303b02df3078de8dbef339f7e265ab49a2b76eac7e016b74
BLAKE2b-256 checksum
How to use checksums
4dbc1fe06ab7ccfbae844e238b16e44e9f9a8bdfa8fc81bb2c6ee434f7d0af3d
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.11.2-cp310-abi3-musllinux_1_2_aarch64.whl

Download URL ozaru-0.11.2-cp310-abi3-musllinux_1_2_aarch64.whl
Size 2.3 MB
Tags CPython 3.10 Linux musl 1.2+ ARM64 abi3
SHA-256 checksum
How to use checksums
2b0e405546a027945471499f63e919c856d20d4832caf1d854b217a74a8b09a5
BLAKE2b-256 checksum
How to use checksums
365093e0e759fedfa52a16e2b9014ba3910c970488d8eed619158dbcfb8d6bc3
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.11.2-cp310-abi3-manylinux2014_x86_64.manylinux_2_17_x86_64.whl

Download URL ozaru-0.11.2-cp310-abi3-manylinux2014_x86_64.manylinux_2_17_x86_64.whl
Size 2.1 MB
Tags CPython 3.10 Linux glibc 2.17+ x86-64 abi3
SHA-256 checksum
How to use checksums
64ae94ff062a4df73b7e38ca5ad7f12c46043a9b93d867054d9d8dbddc56d4cb
BLAKE2b-256 checksum
How to use checksums
fa0dcd601a62e0510002d49ffe284efdc2d235cbbed1216057bef1623ab7c902
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.11.2-cp310-abi3-manylinux2014_aarch64.manylinux_2_17_aarch64.whl

Download URL ozaru-0.11.2-cp310-abi3-manylinux2014_aarch64.manylinux_2_17_aarch64.whl
Size 2.1 MB
Tags CPython 3.10 Linux glibc 2.17+ ARM64 abi3
SHA-256 checksum
How to use checksums
7090ac6aa5902c8313e133832b6fff2289751b9b8e38e7a43e9e0dfe0e2193b1
BLAKE2b-256 checksum
How to use checksums
de8a57802baee58946c8b5ac44aba2ba0b9385a206bfe989a7c3f2a96e49dc7a
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.11.2-cp310-abi3-macosx_11_0_arm64.whl

Download URL ozaru-0.11.2-cp310-abi3-macosx_11_0_arm64.whl
Size 2.0 MB
Tags CPython 3.10 abi3 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
40d59bc069834ddbcabb28aa9a41c35e3e8f696e2a1ed7e171dedefd5e994b4a
BLAKE2b-256 checksum
How to use checksums
9107794cb1bd43e1378f7ad1a80d9893c98a938a2d35a4fe760b06c4430d8fa8
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.11.2-cp310-abi3-macosx_10_12_x86_64.whl

Download URL ozaru-0.11.2-cp310-abi3-macosx_10_12_x86_64.whl
Size 2.0 MB
Tags CPython 3.10 abi3 macOS 10.12+ x86-64
SHA-256 checksum
How to use checksums
9449c56cb119df4bc0cbcd9ad6a8677e1f01d54d47c5d5958b5b887e385aebb5
BLAKE2b-256 checksum
How to use checksums
ada43e1a0a2cef07f5f2623bf3f3ffb5351833129039920fe3bf1c4b34eb9c9f
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.11.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.11.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