Skip to content

from_verbatim

from_verbatim(verbatim, rtype=None)

Looks up a reaction by its verbatim string, optionally filtering by type.

Parameters

verbatim : str
Verbatim reaction string to look up.
rtype : str or None, optional
If given, only returns the reaction if its type matches.

Returns

Reaction or None
The matching reaction, or None if not found.