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.6.0.tar.gz (568.0 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.6.0-py3-none-any.whl (722.2 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for chemvas-0.6.0.tar.gz
Algorithm Hash digest
SHA256 e87348e93ddc7afa350c658329381a58eeeb2208d6479c75db2ebb86791993c2
MD5 4d89f49ab3f6a1d2400e743c44d2b6d7
BLAKE2b-256 da8da6ded2d6e244692eb9de11aa60b8171f9f8ac2b4e8b6eaa23985a742693e

See more details on using hashes here.

Provenance

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

File metadata

  • Download URL: chemvas-0.6.0-py3-none-any.whl
  • Upload date:
  • Size: 722.2 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.6.0-py3-none-any.whl
Algorithm Hash digest
SHA256 6935b07f2cf3ace07b48a97bd7104390b8b7103f3b970cd8740d7d4213e0759c
MD5 7b84a19fc4b559de20e5216f822b9adc
BLAKE2b-256 155822e30df1caac4cd0469a5aa0b25016437d0b0f516b12c8f82a77c20e7c8f

See more details on using hashes here.

Provenance

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

This release

0.6.0 This release

2 files

0.5.1

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