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.5.1.tar.gz (557.4 kB view details)

Uploaded Source

Built Distribution

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

chemvas-0.5.1-py3-none-any.whl (709.5 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for chemvas-0.5.1.tar.gz
Algorithm Hash digest
SHA256 2611dbdc66e82c68f1d5250434d2c0f018715e217cc9d8df6a8f0105039771fb
MD5 5d4a46af157c11bc7f17960af73d2e27
BLAKE2b-256 268e3e66e78ddaa5c010998feec8d03dd228bc632d1ba0d4ef11dfd6609762f7

See more details on using hashes here.

Provenance

The following attestation bundles were made for chemvas-0.5.1.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.5.1-py3-none-any.whl.

File metadata

  • Download URL: chemvas-0.5.1-py3-none-any.whl
  • Upload date:
  • Size: 709.5 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.5.1-py3-none-any.whl
Algorithm Hash digest
SHA256 aa21b6d20781e5a932309690e1cab0feb1fe454988fd71e13db26e5c57cf13fb
MD5 50085b35507c76679009cff45f39d0bb
BLAKE2b-256 d843696dab8a8ea9b96ecee489a4398d3a55058c8432d4f99e6733bca12436ae

See more details on using hashes here.

Provenance

The following attestation bundles were made for chemvas-0.5.1-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

This release

0.5.1 This release

2 files

0.5.0

2 files

0.4.1

2 files

0.4.0

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