ozaru
Read, draw, edit and protect PDF files from Python.
Small API, Rust core, no dependencies.
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"})
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.4
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| ozaru-0.9.4.tar.gz | 1.2 MB | Without provenance | Details for ozaru-0.9.4.tar.gz |
Built distributions (wheels)
Total release size: 13.5 MB
Release files / ozaru-0.9.4.tar.gz
| Download URL | ozaru-0.9.4.tar.gz |
|---|---|
| Size | 1.2 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
6e5985ed1672aee42b1a70319f654bc7da6e3842dcce76494ca56701a10cd63d
|
|
BLAKE2b-256 checksum How to use checksums |
2e8cd6b887c7f42744fc06483897f0ff5c9458c7487098b2cd017919024d8248
|
| 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.4-cp310-abi3-win_amd64.whl
| Download URL | ozaru-0.9.4-cp310-abi3-win_amd64.whl |
|---|---|
| Size | 1.6 MB |
| Tags | CPython 3.10 Windows x86-64 abi3 |
|
SHA-256 checksum How to use checksums |
5615681cfa57180908962f9347a6fc1e7d1cfbd37ca1dd70dd9f0ad6f35e53b8
|
|
BLAKE2b-256 checksum How to use checksums |
2ec932b76de64be5c675ca1e68d5ebb0cd615c9312a5edce564cccfbf9f0d79a
|
| 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.4-cp310-abi3-musllinux_1_2_x86_64.whl
| Download URL | ozaru-0.9.4-cp310-abi3-musllinux_1_2_x86_64.whl |
|---|---|
| Size | 2.0 MB |
| Tags | CPython 3.10 Linux musl 1.2+ x86-64 abi3 |
|
SHA-256 checksum How to use checksums |
78f76f26c92b5a374e3a31aeec65ea1b25ecb387d340cbf67ed5e01eac7b06b2
|
|
BLAKE2b-256 checksum How to use checksums |
3a5d1722a3d8f1a1aeec632198a5da92f662238e100ff7cc88f744a5b6a20f2a
|
| 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.4-cp310-abi3-musllinux_1_2_aarch64.whl
| Download URL | ozaru-0.9.4-cp310-abi3-musllinux_1_2_aarch64.whl |
|---|---|
| Size | 1.9 MB |
| Tags | CPython 3.10 Linux musl 1.2+ ARM64 abi3 |
|
SHA-256 checksum How to use checksums |
2c64ac92ce63a923639a360f45b0d4f53f0af9823a506d2350ba525c85ffef90
|
|
BLAKE2b-256 checksum How to use checksums |
4e7a3e0258372ac195ea7c5b115bf0d2a628de9b622003a1bec8af11411bfcf3
|
| 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.4-cp310-abi3-manylinux2014_x86_64.manylinux_2_17_x86_64.whl
| Download URL | ozaru-0.9.4-cp310-abi3-manylinux2014_x86_64.manylinux_2_17_x86_64.whl |
|---|---|
| Size | 1.8 MB |
| Tags | CPython 3.10 Linux glibc 2.17+ x86-64 abi3 |
|
SHA-256 checksum How to use checksums |
1367479d86d7a02d9fa419788d0dcf674cb0d208a9c69ad843189ccd66d0ce03
|
|
BLAKE2b-256 checksum How to use checksums |
0dcdebdc171c99bdfb6492b85cfffb3e6529832210e072397dab83bc3bb3b5ab
|
| 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.4-cp310-abi3-manylinux2014_aarch64.manylinux_2_17_aarch64.whl
| Download URL | ozaru-0.9.4-cp310-abi3-manylinux2014_aarch64.manylinux_2_17_aarch64.whl |
|---|---|
| Size | 1.7 MB |
| Tags | CPython 3.10 Linux glibc 2.17+ ARM64 abi3 |
|
SHA-256 checksum How to use checksums |
55b11ae765af480b45f63100170f4cc9a98a11e6b8a3ee34ed1e61bffa6561ba
|
|
BLAKE2b-256 checksum How to use checksums |
1b1d273640f9db536d171fc58122a6a53c5225c053c714bdaa63199faf492413
|
| 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.4-cp310-abi3-macosx_11_0_arm64.whl
| Download URL | ozaru-0.9.4-cp310-abi3-macosx_11_0_arm64.whl |
|---|---|
| Size | 1.6 MB |
| Tags | CPython 3.10 abi3 macOS 11.0+ ARM64 |
|
SHA-256 checksum How to use checksums |
e6975520ca8bd2e46218989f76f81fe729a591a314daaf9020583b8e4f9d4ecc
|
|
BLAKE2b-256 checksum How to use checksums |
8d2a5bac008ce5c2f8570f0efad1ea214e22eb81b29032b487de593cab97902b
|
| 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.4-cp310-abi3-macosx_10_12_x86_64.whl
| Download URL | ozaru-0.9.4-cp310-abi3-macosx_10_12_x86_64.whl |
|---|---|
| Size | 1.7 MB |
| Tags | CPython 3.10 abi3 macOS 10.12+ x86-64 |
|
SHA-256 checksum How to use checksums |
77db909db121747a2de0042dc5179728b840d0000b61df509120cbfe598e81a0
|
|
BLAKE2b-256 checksum How to use checksums |
70f669482874989f5b15f0843bbe35a6fc81a4eff3faabcf4247926af46a9f25
|
| 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.4
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.