Chemanim
A Python library extended from Manim for creating chemistry and biochemistry animations.
Features
- Core Chemistry: Visualize Atoms, Bonds, and Molecules.
- Trusted Data: Fetch molecular structures directly from PubChem.
- Biochemistry: Parse and visualize PDB structures (Proteins/DNA).
- 3D Molecules: Render ball-and-stick structures with PubChem or RDKit conformers.
- Reactions: Animate chemical reactions simply.
Installation
1. Basic (Logic & Data only)
Use this if you don't need animations or cannot install Manim dependencies.
pip install -e .
2. Full (With Animations)
First, ensure you have Manim's system dependencies installed (FFmpeg, etc.).
pip install -e .[vis]
Usage
See examples/ folder for demo scripts.
manim -pql examples/demo_reaction.py SimpleReactionScene
3D quickstart
Install with Manim and RDKit (optional) and run the sample:
manim -pql examples/demo_3d_molecule.py Molecule3DDemo
External 3D viewers (py3Dmol / XYZ)
Optional dependency: pip install py3Dmol
- Generate interactive HTML and XYZ:
python examples/demo_py3dmol_viewer.py - Styles supported: ball, stick, ball-and-stick (default). Files land in
media/py3dmol/.
Programmatic use:
from chemanim.connect import fetch_molecule_data
from chemanim.viewer_3d import show_py3dmol, write_xyz
data = fetch_molecule_data("benzene")
view = show_py3dmol(data, style="ball_and_stick")
view.write_html("benzene.html")
write_xyz("benzene.xyz", data)
Metadata
Release files for chemanim 0.1.6
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 |
|---|---|---|---|---|
| chemanim-0.1.6.tar.gz | 104.5 kB | Without provenance | Details for chemanim-0.1.6.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| chemanim-0.1.6-py3-none-any.whl | Python 3 | none | any | Details for chemanim-0.1.6-py3-none-any.whl |
Total release size: 176.9 kB
Release files / chemanim-0.1.6.tar.gz
| Download URL | chemanim-0.1.6.tar.gz |
|---|---|
| Size | 104.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
2e1cc48d2b0d261cff6aa2b4c13d0a3747617ca3c6ac2c23ca801e94b0b8c699
|
|
BLAKE2b-256 checksum How to use checksums |
c2aa34e5a764374d70823e3ec3a84d3991e8690ddf6b7bfd2dd3e03f192fc426
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.11.0
|
Release files / chemanim-0.1.6-py3-none-any.whl
| Download URL | chemanim-0.1.6-py3-none-any.whl |
|---|---|
| Size | 72.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
f900c5c66e842836c69a4edc4199842c5e266149daf675632a128d3f404e9c37
|
|
BLAKE2b-256 checksum How to use checksums |
8845d94c1276a286b11ab8b5a3463c931d9ff73c3c17f202b980d1166deedae5
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.11.0
|
Security for chemanim 0.1.6
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.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A 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.