biotite.database.pubchem.Query

class biotite.database.pubchem.Query[source]

Bases: object

A search query for the PubChem REST API. Unlike most other database interfaces in Biotite, multiple queries cannot be combined using logical operators.

This is the abstract base class for all queries.

get_files()

Get the POST file payload for this query.

Returns
paramsdict (str -> object)

The file payload.

abstract 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.