moleculekit.viewer.molstar.serialize module#
Serialize a Molecule into the MoleculeKitDict shape consumed by the viewer-frontend (moleculeToCIF.ts).
- moleculekit.viewer.molstar.serialize.molecule_to_dict(mol, frame=0)#
Return a JSON-serializable MoleculeKitDict for a single frame.
Multi-frame trajectories are sent separately as a binary blob via /coords/<slot>/<topohash>.
- Return type:
dict