RAIMAD

raimad.export_cif

def export_cif(compo: 'rai.typing.CompoLike', dest: str | pathlib.Path | typing.TextIO | None = None, exporter: type[raimad.cif.shorthand.ExporterProto] | None = None, *args: Any, **kwargs: Any) -> str:

Export component to CIF.
Parameters
compo: rai.typing.CompoLike
The compo or proxy to export
dest: str | Path | TextIO | None
A path to a file or an already open file for saving the CIF output. If, instead of saving to disk, you want to have the CIF code as a string, set `dest` to None (or leave unset) and use this functions return value.
exporter: ExporterProto
The exporter to use. Currently, there is only one CIF exporter in RAIMAD.
*args: Any
Additional arguments will be passed to the the Exporter's __init__.
*args: Any
Additional keyword arguments will be passed to the the Exporter's __init__.
Returns
The generated CIF code is always returned as a string,
regardless of what `dest` is set to.