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")

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.

Release files for penzene 0.9.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 0.9.0
File
penzene-0.9.0-cp312-abi3-win_amd64.whl CPython 3.12 abi3 Windows x86-64 Details
penzene-0.9.0-cp312-abi3-manylinux_2_17_x86_64.whl CPython 3.12 abi3 Linux glibc 2.17+ x86-64 Details
penzene-0.9.0-cp312-abi3-macosx_11_0_x86_64.whl CPython 3.12 abi3 macOS 11.0+ x86-64 Details
penzene-0.9.0-cp312-abi3-macosx_11_0_arm64.whl CPython 3.12 abi3 macOS 11.0+ ARM64 Details

Total release size: 132.1 MB

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

Download URL penzene-0.9.0-cp312-abi3-win_amd64.whl
Size 27.4 MB
Tags CPython 3.12 Windows x86-64 abi3
SHA-256 checksum
How to use checksums
9fc14a2ff4332b738cc839ce70e786db991090fe7e5260bd9cf1bde78518a1dc
BLAKE2b-256 checksum
How to use checksums
795c4bb16f19e8bf0a9512ccee1a2bc5cf7ed01123545c9421c947211e762f4f
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 Sep 26, 2026.

Transparency log

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

Download URL penzene-0.9.0-cp312-abi3-manylinux_2_17_x86_64.whl
Size 44.0 MB
Tags CPython 3.12 Linux glibc 2.17+ x86-64 abi3
SHA-256 checksum
How to use checksums
d382df75ab9b88f3ab69ecd1eec9c1425d04f89e7ff38a29be8c5d833b6ae0cf
BLAKE2b-256 checksum
How to use checksums
83783583c0ae1bbb2c48409cdfab2d38cb0f79d4c35500606ffc36ade9a55b7d
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 Sep 26, 2026.

Transparency log

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

Download URL penzene-0.9.0-cp312-abi3-macosx_11_0_x86_64.whl
Size 31.3 MB
Tags CPython 3.12 abi3 macOS 11.0+ x86-64
SHA-256 checksum
How to use checksums
64195c14c543090f083853dc1c1f2af362a4f99796e9791ffb8f4cefd0ee293b
BLAKE2b-256 checksum
How to use checksums
d773a2487a1f53a00c85bb421694e971d403c56fff8b425d122bbe2d312a68fb
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 Sep 26, 2026.

Transparency log

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

Download URL penzene-0.9.0-cp312-abi3-macosx_11_0_arm64.whl
Size 29.4 MB
Tags CPython 3.12 abi3 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
954894060f4b37f9d2da7a0db1f0a0a16afbfb8190873f1d295fcb0d662e3e93
BLAKE2b-256 checksum
How to use checksums
427fae39861a6f457999e0011bfb8092e475ab452d905f0901b08527077d25a0
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 Sep 26, 2026.

Transparency log

Release history Release notifications | RSS feed

This release

0.9.0 This release

4 release files

0.8.0

4 release files

0.7.0

4 release files

0.6.0

4 release files

0.5.0

4 release files

0.4.0

4 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