Skip to main content

penzene

ChemDraw-style 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 ChemDraw's 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.8.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.8.0
File
penzene-0.8.0-cp312-abi3-win_amd64.whl CPython 3.12 abi3 Windows x86-64 Details
penzene-0.8.0-cp312-abi3-manylinux_2_17_x86_64.whl CPython 3.12 abi3 Linux glibc 2.17+ x86-64 Details
penzene-0.8.0-cp312-abi3-macosx_11_0_x86_64.whl CPython 3.12 abi3 macOS 11.0+ x86-64 Details
penzene-0.8.0-cp312-abi3-macosx_11_0_arm64.whl CPython 3.12 abi3 macOS 11.0+ ARM64 Details

Total release size: 135.7 MB

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

Download URL penzene-0.8.0-cp312-abi3-win_amd64.whl
Size 28.1 MB
Tags CPython 3.12 Windows x86-64 abi3
SHA-256 checksum
How to use checksums
06049d182249cc4609de4fef3cc651e1b2a0b44116f56cdba7a7ad1ffbb437e5
BLAKE2b-256 checksum
How to use checksums
328c4187ec421ecb39e468450ba7a5ecb61ef911169dcd759a01a82e2ab78655
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 25, 2026.

Transparency log

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

Download URL penzene-0.8.0-cp312-abi3-manylinux_2_17_x86_64.whl
Size 44.7 MB
Tags CPython 3.12 Linux glibc 2.17+ x86-64 abi3
SHA-256 checksum
How to use checksums
1e01f4e347f36b2fbedbe368bff111e4356bef7f01511a74e3f3722429b2db2b
BLAKE2b-256 checksum
How to use checksums
c8c49e735e095811683141b22df23efef17332a757a3c086c583491fb2205ef6
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 25, 2026.

Transparency log

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

Download URL penzene-0.8.0-cp312-abi3-macosx_11_0_x86_64.whl
Size 32.4 MB
Tags CPython 3.12 abi3 macOS 11.0+ x86-64
SHA-256 checksum
How to use checksums
85669b8c8e788c338c1b6fea151f20f0c2b57f9ad9259c04f02cb9d4495ce59c
BLAKE2b-256 checksum
How to use checksums
6a0d65ba19ef3cb4a7fbe4f48c45dd9c2c3752f90f9e041eb2ea6276272c24e2
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 25, 2026.

Transparency log

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

Download URL penzene-0.8.0-cp312-abi3-macosx_11_0_arm64.whl
Size 30.5 MB
Tags CPython 3.12 abi3 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
5e6b96a9c5bab315fe660be38df6e7fbfe9786da3898b66fe2a75ea716b8168a
BLAKE2b-256 checksum
How to use checksums
775d8bfc67e116558612c7944d64ee4b34e90269700d4b1b6341f8d27057ec50
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 25, 2026.

Transparency log

Release history Release notifications | RSS feed

This release

0.8.0 This release

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