entities.parse
entities.parse(filepath)
Parse a molecular structure file into a Molecule object.
Parameters
Name | Type | Description | Default |
---|---|---|---|
filepath | str or io.BytesIO | Path to the molecular structure file or BytesIO object containing file data | required |
Returns
Name | Type | Description |
---|---|---|
Molecule | The parsed molecular structure object |
Raises
Name | Type | Description |
---|---|---|
ValueError | If the file format is not supported | |
InvalidFileError | If the file cannot be parsed with the standard parser |