Metadata-Version: 2.4
Name: x-chemviz-utils
Version: 0.1.2
Summary: Render MOL data as PDB and SVG fields.
Requires-Python: >=3.10
Description-Content-Type: text/markdown
Requires-Dist: loguru>=0.6
Requires-Dist: numpy>=1.23
Requires-Dist: Pillow>=9.0
Requires-Dist: playwright==1.61.0
Requires-Dist: rdkit>=2022.9

# chemviz-mol-renderer

```bash
pip install chemviz-mol-renderer
```

```python
from chemviz_mol_renderer import render_mol

result = render_mol(mol_data)
# {"pdb": str | None, "svg": str | None}
```

`mol_data` accepts an RDKit `Chem.Mol`, MOL/SMILES text, a MOL/SDF file path,
or a readable text/binary file object. Real non-coplanar 3D structures return
PDB and an SVG containing the Miew default-frame image. Other structures
return `pdb=None` and the existing RDKit SVG rendering.

The package includes the Miew assets. Playwright is installed by pip and the
required Chromium browser is prepared automatically on the first 3D render;
no Node.js, npm, or manual browser setup is required.
