NameQuery#

class biotite.database.pubchem.NameQuery(name)[source]#

Bases: Query

A query that searches for compounds with the given name.

The name of the compound must match the given name completely, but synonyms of the compound name are also considered.

Parameters:
namestr

The compound name to be searched.

Examples

>>> print(search(NameQuery("Alanine")))
[5950, ..., ...]
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.