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.0.tar.gz (554.3 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.0-py3-none-any.whl (706.3 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: chemvas-0.5.0.tar.gz
  • Upload date:
  • Size: 554.3 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.0.tar.gz
Algorithm Hash digest
SHA256 532cda98683042f33214ef10796e0334c3ce1b93b1ebeac76c5a7acec57b6463
MD5 f6d82723dd1f090a6691c05d18e82e23
BLAKE2b-256 46cfcd6bb8c3b4b52a4e7960dcb77c169d60708a8583f6ae245b912f0ef991aa

See more details on using hashes here.

Provenance

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

File metadata

  • Download URL: chemvas-0.5.0-py3-none-any.whl
  • Upload date:
  • Size: 706.3 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.0-py3-none-any.whl
Algorithm Hash digest
SHA256 6b9e01b888dca475c8b1cfd8b55a14134e465a68227aa1afbf64dba21b126f7a
MD5 f4e42891c39356fd212418132974cbf2
BLAKE2b-256 361319f79908954a88eab836db5a33d5ece2047afa4c7cabb2ecd569ace720b3

See more details on using hashes here.

Provenance

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

This release

0.5.0 This release

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