Skip to main content

pdraw

Python SDK for native patent drawings, powered by Rust through PyO3.

from pathlib import Path
from pdraw import Document, Slide, Box, create, inspect, replace

document = Document([Slide([Box("device", 100, 100, 140, 60, text="Device 102")])])
result = create(document.to_pdrawml())
Path("figure.pptx").write_bytes(result.package_bytes())
Path("review.png").write_bytes(result.render_png())
current = inspect(result.package_bytes())
updated = replace(result.package_bytes(), current.pdrawml.replace("Device 102", "Device 104"), current.snapshot)

create, inspect, and replace accept format="vsdx" for Visio. Results expose pdrawml, snapshot, slide_count, and warnings. render_png(slide=1, dpi=144) returns PNG bytes; slide numbers start at one. Creation and replacement optionally accept an assets mapping of names to image bytes. Invalid input and stale snapshots raise ValueError.

Install with pip install pdraw==0.0.0. Wheels support CPython 3.10 and later. Building from source requires Rust and maturin.

Metadata

Release files for pdraw 0.0.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for pdraw 0.0.0
File Size Uploaded
pdraw-0.0.0.tar.gz 327.1 kB Details

Built distributions (wheels)

Table of built distributions (wheels) for pdraw 0.0.0
File
pdraw-0.0.0-cp310-abi3-win_amd64.whl CPython 3.10 abi3 Windows x86-64 Details
pdraw-0.0.0-cp310-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl CPython 3.10 abi3 Linux glibc 2.17+ x86-64 Details
pdraw-0.0.0-cp310-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl CPython 3.10 abi3 Linux glibc 2.17+ ARM64 Details
pdraw-0.0.0-cp310-abi3-macosx_11_0_arm64.whl CPython 3.10 abi3 macOS 11.0+ ARM64 Details
pdraw-0.0.0-cp310-abi3-macosx_10_12_x86_64.whl CPython 3.10 abi3 macOS 10.12+ x86-64 Details

Total release size: 11.0 MB

Release files / pdraw-0.0.0.tar.gz

Download URL pdraw-0.0.0.tar.gz
Size 327.1 kB
Tags Source
SHA-256 checksum
How to use checksums
5601fe9df24510c853aabf0edfab6f52a81aac023f6fb9c3af1474648cac58ce
BLAKE2b-256 checksum
How to use checksums
30a6d65633a6a092c85f248774d5bd30263f79667118c817cad0ffe773267479
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 12, 2026.

Transparency log

Release files / pdraw-0.0.0-cp310-abi3-win_amd64.whl

Download URL pdraw-0.0.0-cp310-abi3-win_amd64.whl
Size 2.1 MB
Tags CPython 3.10 Windows x86-64 abi3
SHA-256 checksum
How to use checksums
5c5fa9bfbc412014854c492a4de021ab3513b1be47419cf4fc5900f102e8652b
BLAKE2b-256 checksum
How to use checksums
a09213cd92243d8e51351d24f4b97cd9efe796a7f6bc2b556e93d07f207f2f45
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 12, 2026.

Transparency log

Release files / pdraw-0.0.0-cp310-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl

Download URL pdraw-0.0.0-cp310-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Size 2.2 MB
Tags CPython 3.10 Linux glibc 2.17+ x86-64 abi3
SHA-256 checksum
How to use checksums
e3de52ad6b9a626f8b24cae4f589fe1530b12d1ed1b2c37a26a8f9980a61a09d
BLAKE2b-256 checksum
How to use checksums
b93765517734af3fecbe7a8422a5340d28db899a0a22fe4095086aaac99fd7bc
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 12, 2026.

Transparency log

Release files / pdraw-0.0.0-cp310-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl

Download URL pdraw-0.0.0-cp310-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Size 2.1 MB
Tags CPython 3.10 Linux glibc 2.17+ ARM64 abi3
SHA-256 checksum
How to use checksums
224922ecd4ebeb8fc96ca9d8f824ddfbaacf4d4a3270ebc76e65135686bc774f
BLAKE2b-256 checksum
How to use checksums
6b75c6c57182529239048e1f86a2eb12bb5f9dc8557479c914e2821ae7459340
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 12, 2026.

Transparency log

Release files / pdraw-0.0.0-cp310-abi3-macosx_11_0_arm64.whl

Download URL pdraw-0.0.0-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
4c0263cfa123005295c24139f75ae14ed324b03fd95a2167741e1d35fdabc6d0
BLAKE2b-256 checksum
How to use checksums
4bde6714cfb64a2b86684d4ccb63d1ed9c0182150843535e2d6c738066aa90fd
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 12, 2026.

Transparency log

Release files / pdraw-0.0.0-cp310-abi3-macosx_10_12_x86_64.whl

Download URL pdraw-0.0.0-cp310-abi3-macosx_10_12_x86_64.whl
Size 2.1 MB
Tags CPython 3.10 abi3 macOS 10.12+ x86-64
SHA-256 checksum
How to use checksums
100e8b11eb2c7e661a5bcc661f0646e6d766cc2bea280cea30aa783ca01c21e0
BLAKE2b-256 checksum
How to use checksums
8ce9aadfd8239851f7c997edb5b64169008bff0265da7297b4756369a50777fe
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 12, 2026.

Transparency log

Release history Release notifications | RSS feed

This release

0.0.0 This release

6 release files

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