Skip to main content

penzene

Publication-quality 2D chemical structures from Python, drawn by the same engine as the Penzene desktop app.

import penzene as pz

doc = pz.from_smiles("CC(=O)Oc1ccccc1C(=O)O")  # aspirin
doc.clean()
doc.export("aspirin.svg")        # identical to the app's export (also .png, .pdf)
doc.save("aspirin.penz")         # open and keep editing in the app
doc.formula, doc.mw               # ('C9H8O4', 180.16…)
doc                               # renders inline in Jupyter

# Build with hotkeys: from H2N-CH3, "42n152o" makes Ala-Ala
m = pz.Document()
n = m.add_atom("N"); c = m.add_atom("C", x=14.4); m.add_bond(n, c)
m.hotkeys(c, "42n152o")

# Correct an imported drawing in place
d = pz.read("scheme.cdxml")
d.set_label(3, "OMe"); d.set_bond_order(5, 2)
d.remove_atoms([7, 8])           # indices from before the call; later atoms move down

Also: pz.read(path) for .penz, .mol and ChemDraw .cdxml; to_smiles(), to_molblock(), to_inchi(), to_inchikey(), to_svg(), to_png(dpi); doc.style = "RSC" (or "ACS 1996", "JDP"); abbreviations such as add_atom("Boc").

Penzene brings its own copy of Qt. Loading it into a process that already has PySide6 or PyQt (for example Jupyter with a Qt event loop) may conflict; the plain Jupyter kernel is fine.

GPL-3.0.

Metadata

Release files for penzene 2.0.0

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

Built distributions (wheels)

Table of built distributions (wheels) for penzene 2.0.0
File Actions
penzene-2.0.0-cp312-abi3-win_amd64.whl CPython 3.12 abi3 Windows x86-64 Details for penzene-2.0.0-cp312-abi3-win_amd64.whl
penzene-2.0.0-cp312-abi3-manylinux_2_17_x86_64.whl CPython 3.12 abi3 Linux glibc 2.17+ x86-64 Details for penzene-2.0.0-cp312-abi3-manylinux_2_17_x86_64.whl
penzene-2.0.0-cp312-abi3-macosx_11_0_x86_64.whl CPython 3.12 abi3 macOS 11.0+ x86-64 Details for penzene-2.0.0-cp312-abi3-macosx_11_0_x86_64.whl
penzene-2.0.0-cp312-abi3-macosx_11_0_arm64.whl CPython 3.12 abi3 macOS 11.0+ ARM64 Details for penzene-2.0.0-cp312-abi3-macosx_11_0_arm64.whl

Total release size: 146.2 MB

Release files / penzene-2.0.0-cp312-abi3-win_amd64.whl

Download URL penzene-2.0.0-cp312-abi3-win_amd64.whl
Size 30.7 MB
Tags CPython 3.12 Windows x86-64 abi3
SHA-256 checksum
How to use checksums
44006d1ab9fa4387d068c1cfc7ea97807ede9ead41078211879c0bfcb0b4515b
BLAKE2b-256 checksum
How to use checksums
5c498b9bfea6ddd110f6876e08377762ec162f775762c7298fc277f28fd20fef
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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 22, 2026.

Transparency log

Release files / penzene-2.0.0-cp312-abi3-manylinux_2_17_x86_64.whl

Download URL penzene-2.0.0-cp312-abi3-manylinux_2_17_x86_64.whl
Size 47.8 MB
Tags CPython 3.12 Linux glibc 2.17+ x86-64 abi3
SHA-256 checksum
How to use checksums
dffb0daaf3dd175e95f4c682cf1858655bee55469935462b067222fc9a35b369
BLAKE2b-256 checksum
How to use checksums
dc7580a486857d715fad6011add84c60bac51eb5d00e0ea9d8fbbe0a36eb0b6e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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 22, 2026.

Transparency log

Release files / penzene-2.0.0-cp312-abi3-macosx_11_0_x86_64.whl

Download URL penzene-2.0.0-cp312-abi3-macosx_11_0_x86_64.whl
Size 34.8 MB
Tags CPython 3.12 abi3 macOS 11.0+ x86-64
SHA-256 checksum
How to use checksums
677e748391e2d8ad18fbdb51c9c0881496038bf56fc52f7e77caa425e839578d
BLAKE2b-256 checksum
How to use checksums
650e025e95550b2c8ec8b226c9c204fd7fd731b4507c39d360980a17b32aa644
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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 22, 2026.

Transparency log

Release files / penzene-2.0.0-cp312-abi3-macosx_11_0_arm64.whl

Download URL penzene-2.0.0-cp312-abi3-macosx_11_0_arm64.whl
Size 32.9 MB
Tags CPython 3.12 abi3 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
fb08a1239c3acd6ed321a89c96622f8e29d367bbf29681b41cce9d62cb2edbbc
BLAKE2b-256 checksum
How to use checksums
3df46de9565090b4c7c260b1791635d3312cceeb521d339ed5879a1e04cd6db9
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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 22, 2026.

Transparency log

Security for penzene 2.0.0

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.

Full provenance

All 4 files in this release have been uploaded with provenance metadata.

Select from 4 files

Attestation for penzene-2.0.0-cp312-abi3-win_amd64.whl

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 22, 2026.

Transparency log

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.

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