English · 한국어
Chemvas is an open-source desktop app for drawing molecules and reaction schemes, then exporting them for a paper. Draw on the canvas or use scripts to keep a set of figures at the same scale. Save the editable source as .cdxml and export the finished figure as SVG, PDF or PNG.
From a drawing to a paper
- Draw structures and schemes. Place rings, bonds, reaction arrows and labels on the canvas, then align them. Autosave and session recovery help you pick up your work.
- Revise the source and export again. Open, edit and save supported single-page CDXML files. Export figures at a journal column width such as 84 mm or 174 mm.
- Keep figures at the same scale. The publication examples use fixed bond lengths and font sizes across a manuscript's figures.
- Script repeated edits. Compose, inspect, patch and render documents from the command line.
check-layoutdetects selected label collisions and content outside the sheet. The CLI guide covers its scope and the patch format.
Install
Runs on macOS, Windows and Linux with Python 3.12+.
pip install chemvas
chemvas
Standalone downloads for the first stable release are being prepared for the three-platform target matrix. Its native installation checks are still pending; the Python installation above remains available.
To build a Windows executable locally, follow the packaging guide.
Draw your first scheme
- Choose the Ring tool (
J) and click the left side of the canvas to place benzene. Choose Bond (X), drag one bond out from a ring atom to a new carbon, then drag a second bond from that carbon to a terminal atom. Hover the terminal atom, presso, then press Enter and set the label toOH. - Place a second benzene to the right. Drag one bond out from a ring atom to a new carbon, then drag a second bond from that carbon to a terminal atom. Hover the second bond and press
2so only that bond becomes a double bond, then hover the terminal atom and presso. Select the Arrow tool, drag between the structures, and double-click the arrow to add condition labels. - Select both molecules (Edit ▸ Select All) and align them (Edit ▸ Align ▸ Middle).
- Save the document (
.cdxml). Export via File ▸ Export Figure… → Plain SVG, Fit 2-column (174 mm).
The first-scheme tutorial walks through each step and includes the finished drawing.
Edit and export with a script
chemvas compose-document scheme.json --output scheme.cdxml
chemvas inspect-document scheme.cdxml > inspection.json
chemvas apply-patch scheme.cdxml patch.json --dry-run
chemvas apply-patch scheme.cdxml patch.json --output revised.cdxml
chemvas check-layout revised.cdxml
chemvas render-document revised.cdxml --output scheme.svg --width-mm 174
scheme.json describes atoms, bonds, arrows and notes. patch.json contains the operations and the source_sha256 from inspection.json. A patch applies only to the file bytes it was prepared for and writes its result to a new file. Output commands refuse to overwrite existing files. check-layout returns exit code 1 when it finds warnings.
Patch validation checks document structure. Element symbols, valence and the chemical meaning of the finished figure need your review. See the CLI guide for input formats and a worked example.
File formats
- Editable source: supported single-page
.cdxml. Imported files use Chemvas drawing styles while native fragments, reaction references and vector objects retain their source XML. Edits that cannot preserve them are rejected before saving. - Structure import: supported 2D MOL V2000 with bond orders 1–3, wedge and hash bonds, charges and radicals.
- Figure output: SVG, PDF and PNG. SVG is an output format; it cannot be reopened for editing. CDXML export is also available.
- Unsupported input: binary CDX, multipage CDXML, SDF, RXN, and MOL files with 3D coordinates, isotopes, aromatic bond type 4 or V3000.
See the document compatibility policy and CDXML format scope for preservation details.
Explore
- Drawing tools and shortcuts · Image objects
- Publication examples · Scheme layout · Example files
- Architecture · Contributing · Security · Changelog · Releasing · MIT license
Found a rough edge or have an idea? Open a GitHub issue.
How this was built
I build Chemvas for use in chemistry research. I set the requirements, document formats and validation criteria, and use AI coding agents to write the code.
Design decisions live in ADRs, and the compatibility policy defines how saved drawings are preserved. Locally, make check runs lint, formatting, type checks and tests in separate processes for each test file. GitHub CI runs quality checks, a package smoke test and secret scanning.
Metadata
Release files for chemvas 0.31.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| chemvas-0.31.0.tar.gz | 801.4 kB | With provenance | Details for chemvas-0.31.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| chemvas-0.31.0-py3-none-any.whl | Python 3 | none | any | Details for chemvas-0.31.0-py3-none-any.whl |
Total release size: 1.8 MB
Release files / chemvas-0.31.0.tar.gz
| Download URL | chemvas-0.31.0.tar.gz |
|---|---|
| Size | 801.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
22fc907568ae5d9321c06878e65536df9e209b1b79d1058370367d516cf09498
|
|
BLAKE2b-256 checksum How to use checksums |
cd0421ccb006b0b6018ee395983be9f52ca7228c7b464396d784da6554a81f98
|
| 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 Nov 25, 2026.
Transparency logRelease files / chemvas-0.31.0-py3-none-any.whl
| Download URL | chemvas-0.31.0-py3-none-any.whl |
|---|---|
| Size | 996.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
c7f5d4d36521cc9c0e80f82998a9b3afb7618c6b99babdc8107b5e1f14d34c3d
|
|
BLAKE2b-256 checksum How to use checksums |
476263d8936b7eb16e31b975ea1c4e4315be0782cbcaa9f8e0243306528bcbf0
|
| 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 Nov 25, 2026.
Transparency logSecurity for chemvas 0.31.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
Both files in this release have been uploaded with provenance metadata.
Attestation for chemvas-0.31.0.tar.gz
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 Nov 25, 2026.
Transparency logA 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.