Molecule#

class MoleculeQueryFilters(*, limit=None, cursor=None, molecule_id=None, molecule_hash=None, molecular_formula=None, identifiers=None)[source]#

Bases: QueryModelBase

Create a new model by parsing and validating input data from keyword arguments.

Raises [ValidationError][pydantic_core.ValidationError] if the input data cannot be validated to form a valid model.

self is explicitly positional-only to allow self as a field name.

Parameters:
  • limit (int | None)

  • cursor (int | None)

  • molecule_id (list[int] | None)

  • molecule_hash (list[str] | None)

  • molecular_formula (list[str] | None)

  • identifiers (dict[str, list[str]] | None)

molecule_id: list[int] | None#
molecule_hash: list[str] | None#
molecular_formula: list[str] | None#
identifiers: dict[str, list[str]] | None#
model_config = {'extra': 'forbid', 'validate_assignment': True}#

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

classmethod validate_lists(v)#
limit#
cursor#
class MoleculeModifyBody(*, name=None, comment=None, identifiers=None, overwrite_identifiers=False)[source]#

Bases: RestModelBase

Create a new model by parsing and validating input data from keyword arguments.

Raises [ValidationError][pydantic_core.ValidationError] if the input data cannot be validated to form a valid model.

self is explicitly positional-only to allow self as a field name.

Parameters:
  • name (str | None)

  • comment (str | None)

  • identifiers (Identifiers | None)

  • overwrite_identifiers (bool)

name: str | None#
comment: str | None#
identifiers: Identifiers | None#
overwrite_identifiers: bool#
model_config = {'extra': 'forbid', 'validate_assignment': True}#

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

class MoleculeUploadOptions(*, dummy=True)[source]#

Bases: RestModelBase

Create a new model by parsing and validating input data from keyword arguments.

Raises [ValidationError][pydantic_core.ValidationError] if the input data cannot be validated to form a valid model.

self is explicitly positional-only to allow self as a field name.

Parameters:

dummy (bool)

dummy: bool#
model_config = {'extra': 'forbid', 'validate_assignment': True}#

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

class MoleculeQueryIterator(client, query_filters)[source]#

Bases: QueryIteratorBase[Molecule]

Iterator for molecule queries

This iterator transparently handles batching and pagination over the results of a molecule query.

Construct an iterator

Parameters:
  • client – QCPortal client object used to contact/retrieve data from the server

  • query_filters (MoleculeQueryFilters) – The actual query information to send to the server

reset()#

Starts retrieval of results from the beginning again