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.6.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.6.0
File
penzene-0.6.0-cp312-abi3-win_amd64.whl CPython 3.12 abi3 Windows x86-64 Details
penzene-0.6.0-cp312-abi3-manylinux_2_17_x86_64.whl CPython 3.12 abi3 Linux glibc 2.17+ x86-64 Details
penzene-0.6.0-cp312-abi3-macosx_11_0_x86_64.whl CPython 3.12 abi3 macOS 11.0+ x86-64 Details
penzene-0.6.0-cp312-abi3-macosx_11_0_arm64.whl CPython 3.12 abi3 macOS 11.0+ ARM64 Details

Total release size: 133.5 MB

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

Download URL penzene-0.6.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
be8ef3ef5dd5f6592814a46697078180d55971dacb8ee9f1aabdacd327b586d4
BLAKE2b-256 checksum
How to use checksums
563447a97997a1f966653b12f70cdcd2b24fb17e2b7bba95c0832a09a55a940d
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 24, 2026.

Transparency log

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

Download URL penzene-0.6.0-cp312-abi3-manylinux_2_17_x86_64.whl
Size 43.8 MB
Tags CPython 3.12 Linux glibc 2.17+ x86-64 abi3
SHA-256 checksum
How to use checksums
bc8215cfa52a3123a4d0bfebb98153694ab98e11f2b7a318446fbb64ec8f6424
BLAKE2b-256 checksum
How to use checksums
9b48a582bc6b2f5e7e62d4c0f794ab5da211ca27d7934fc307fe41d292a50aab
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 24, 2026.

Transparency log

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

Download URL penzene-0.6.0-cp312-abi3-macosx_11_0_x86_64.whl
Size 31.7 MB
Tags CPython 3.12 abi3 macOS 11.0+ x86-64
SHA-256 checksum
How to use checksums
01aade3d8a1f4d93debb346f895efaf92251551cca45b08b4faf5781a7c53846
BLAKE2b-256 checksum
How to use checksums
6aa09eaea7978158f18c2db8f4fd84414e48502da0a3d11e0628b5e45fc27e33
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 24, 2026.

Transparency log

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

Download URL penzene-0.6.0-cp312-abi3-macosx_11_0_arm64.whl
Size 29.9 MB
Tags CPython 3.12 abi3 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
f9b5db310a900b69e1a44bbc1055372b557fff73f9d8af54047da214f298d316
BLAKE2b-256 checksum
How to use checksums
af712eb0c8075866468ddd6bf94b425ad085ccf404701ed4288c823544fadddc
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 24, 2026.

Transparency log

Release history Release notifications | RSS feed

0.8.0

4 release files

0.7.0

4 release files

This release

0.6.0 This release

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