Installation¶
From PyPI¶
pip install xyzrender
Or with uv:
uv tool install xyzrender
To test without installing:
uvx xyzrender
From Source¶
git clone https://github.com/aligfellow/xyzrender.git
cd xyzrender
pip install .
Or with uv:
git clone https://github.com/aligfellow/xyzrender.git
cd xyzrender
uv tool install .
Optional dependencies¶
Some features require additional packages:
pip install 'xyzrender[smi]' # SMILES input (rdkit)
pip install 'xyzrender[cif]' # CIF input + ASE GUI viewer (ase)
pip install 'xyzrender[v]' # v viewer for interactive rotation (vmol)
pip install 'xyzrender[all]' # everything above
xyzrender auto-detects resvg-py and uses it when available. Without it, CairoSVG is used as fallback (filters silently ignored in raster output).
Development setup¶
git clone https://github.com/aligfellow/xyzrender.git
cd xyzrender
just setup
Available just commands:
Command |
Description |
|---|---|
|
Run lint + type-check + tests |
|
Format and lint with ruff |
|
Type-check with ty |
|
Run pytest with coverage |
|
Auto-fix lint issues |
|
Build distribution |
|
Install all dev dependencies |