Skip to main content

Chemvas — 2D chemical structure drawing canvas

CI PyPI Python 3.12+ License: MIT

English · 한국어

Chemvas is a lightweight PyQt6 app for drawing 2D chemical structures and reaction schemes — ACS 1996 defaults, ChemDraw-compatible shortcuts, and publication-ready figure export. Draw fast, export exactly.

Chemvas — a C–P bond cleavage reaction scheme (KOtBu / THF) drawn on the canvas

Statement of need

Sketching a scheme for a lab notebook or paper should not require a commercial suite — and automating edits should not mean trusting an LLM with your drawing. Chemvas keeps the interactive canvas small and fast, and exposes headless CLI contracts for rendering, inspection, editing, and calculation handoff: document edits bind to the exact source hash and unsupported input fails closed. Agents propose, validation decides.

Quickstart

pip install chemvas              # core (PyQt6 included)
pip install "chemvas[rdkit]"     # + SMILES import, formula/weight, 3D
chemvas

Pick a tool from the toolbar and click/drag on the canvas. Type a SMILES string and press Insert to preview and place it (RDKit). Open examples/template2.chemvas via File ▸ Open to explore the document shown above.

What it does

Capability Use it for Details
Drawing bonds, rings, arrows, brackets, atom labels — with ChemDraw-compatible shortcuts REFERENCE
Figure export plain SVG / PDF / PNG / TIFF, outlined glyphs, deterministic physical sizing REFERENCE
Chemistry I/O SMILES import, .mol interchange, 2D→3D .xyz, Molecule Info (RDKit) REFERENCE
Agent CLI headless compose / layout-check / render / inspect / hash-gated Graph Patch, no Qt window AGENT_CLI
Calculation handoff elementary steps, reviewed precomplexes, one machine.json per step AGENT_CLI

Documents are .chemvas files (JSON, version 7 contract) with autosave and crash recovery; everything except the marked (RDKit) features runs without RDKit.

Development, testing, and full docs

  • make check runs the whole local gate — lint, formatting, mypy, the file-isolated headless test suite, and the machine.json conformance check. Read CONTRIBUTING.md before moving code: the architecture boundaries are enforced by tests.
  • Docs index: REFERENCE · AGENT_CLI · ARCHITECTURE · CHANGELOG · RELEASING
  • Known gaps (SDF interchange, one-file binaries, multi-molecule 3D export) → roadmap

License

MIT License

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

chemvas-0.4.0.tar.gz (1.2 MB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

chemvas-0.4.0-py3-none-any.whl (719.8 kB view details)

Uploaded Python 3

File details

Details for the file chemvas-0.4.0.tar.gz.

File metadata

  • Download URL: chemvas-0.4.0.tar.gz
  • Upload date:
  • Size: 1.2 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for chemvas-0.4.0.tar.gz
Algorithm Hash digest
SHA256 8858a6edd86a0d091b5f573218253906a0275167aa0cc3414bcd74a9903296e2
MD5 5f82ae20eec1deecd56322eb9b40a33e
BLAKE2b-256 0bfa270c31c558806efa55bd7b38b5331130f7b583336158121270c82be58866

See more details on using hashes here.

Provenance

The following attestation bundles were made for chemvas-0.4.0.tar.gz:

Publisher: release.yml on dhsohn/Chemvas

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file chemvas-0.4.0-py3-none-any.whl.

File metadata

  • Download URL: chemvas-0.4.0-py3-none-any.whl
  • Upload date:
  • Size: 719.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for chemvas-0.4.0-py3-none-any.whl
Algorithm Hash digest
SHA256 a25ae8d093404b044685fd4d7b38081cceb4d8531f626da385b96694dc5208fb
MD5 df9d9bfbfc0ab218c5cb843d9224207c
BLAKE2b-256 3c649a1caf21fa424c754df07e9771b6f96d111ac8cc0294f611aa2ba10ec02e

See more details on using hashes here.

Provenance

The following attestation bundles were made for chemvas-0.4.0-py3-none-any.whl:

Publisher: release.yml on dhsohn/Chemvas

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Release history Release notifications | RSS feed

0.12.0

2 files

0.11.0

2 files

0.10.2

2 files

0.10.1

2 files

0.10.0

2 files

0.9.0

2 files

0.8.4

2 files

0.8.3

2 files

0.8.2

2 files

0.8.1

2 files

0.8.0

2 files

0.7.0

2 files

0.6.1

2 files

0.6.0

2 files

0.5.1

2 files

0.5.0

2 files

0.4.1

2 files

This release

0.4.0 This release

2 files

0.3.0

2 files

0.2.0

2 files

0.1.0

2 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