biotite.database.pubchem.InchiQuery

class biotite.database.pubchem.InchiQuery(inchi)[source]

Bases: Query

A query that searches for compounds with a given International Chemical Identifier (InChI) string.

Parameters
inchistr

The InChI string.

Examples

>>> print(search(InchiQuery("InChI=1S/C4H10/c1-3-4-2/h3-4H2,1-2H3")))
[7843]
get_files()

Get the POST file payload for this query.

Returns
paramsdict (str -> object)

The file payload.

get_input_url_path()

Get the input part of the request URL.

Returns
get_input_url_pathstr

The input part of the request URL. Must not contain slash characters at the beginning and end of the string.

get_params()

Get the POST payload for this query.

Returns
paramsdict (str -> object)

The payload.