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

Total release size: 133.3 MB

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

Download URL penzene-0.5.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
71195228e6be2549fe1a10b3dd97dab0228464c877c8baa20f229efa0988b65f
BLAKE2b-256 checksum
How to use checksums
d6a7c177c684a525245178c3b49dcef809daf0ffb4adca1c72573c6f6928e9c4
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.5.0-cp312-abi3-manylinux_2_17_x86_64.whl

Download URL penzene-0.5.0-cp312-abi3-manylinux_2_17_x86_64.whl
Size 43.7 MB
Tags CPython 3.12 Linux glibc 2.17+ x86-64 abi3
SHA-256 checksum
How to use checksums
7a64e35655f30ca4276a4c348c6f637db6cd0800b05f78e832e941a4360d5954
BLAKE2b-256 checksum
How to use checksums
52fae0e45bc15d75cfd85add02e087c159ff131e9bd953601542bbaf59d18b7b
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.5.0-cp312-abi3-macosx_11_0_x86_64.whl

Download URL penzene-0.5.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
591812a4085c3eb1c69c21a7070160a27ec6c6793c700a002991e1e03fa5d068
BLAKE2b-256 checksum
How to use checksums
557225247651598756c4245d872c811048ad571b5c0bf1d64aec96c9709318c2
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.5.0-cp312-abi3-macosx_11_0_arm64.whl

Download URL penzene-0.5.0-cp312-abi3-macosx_11_0_arm64.whl
Size 29.8 MB
Tags CPython 3.12 abi3 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
9b480e58a96b16d7d4efba4e6de51806c19343fab6b200ee0b86a98fbee4c356
BLAKE2b-256 checksum
How to use checksums
f2b36db9997e4508050670aa94eb1f7793d19133d1faf2c603b2e3c094cac6a6
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

This release

0.5.0 This release

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