Identifier

Validation helpers for chemical species and author identifiers.

Provides InChI/SMILES parsing checks backed by RDKit and ORCID lookups against the ORCID public API.

pyked.identifier.normalize_inchi(value: str)[source]

Return an InChI with the conventional InChI= prefix.

ChemKED historically permits both complete InChIs and the prefixless form used by existing PyKED files, such as 1S/H2/h1H.

pyked.identifier.search_orcid(orcid)[source]

Search the ORCID public API

Specfically, return a dictionary with the personal details (name, etc.) of the person associated with the given ORCID

Parameters:

orcid (str) – The ORCID to be searched

Returns:

Dictionary with the JSON response from the API

Return type:

dict

Raises:

HTTPStatusError – If the given ORCID cannot be found, an HTTPStatusError is raised with status code 404

pyked.identifier.valid_inchi(value: str)[source]

Return whether value can be parsed as an InChI.

pyked.identifier.valid_smiles(value: str)[source]

Return whether value can be parsed and sanitized as SMILES.