preheat_open.query

query.py

This module defines classes and functions for querying objects based on specified criteria.

Classes:

Query

Functions:

query_stuff

Functions

build_instance_from_dict(cls, data[, ...])

Builds an instance of a dataclass from a dictionary and returns the instance and the remaining keys.

query_stuff(obj, query, sub_obj_attrs[, ...])

Queries objects and their sub-objects based on specified criteria.

unique(generator)

Returns the unique element from the generator.

Classes

Query([exclude])

Represents a query for filtering objects based on specified attributes.

Exceptions

NoElementError

Raised when there is no unique element in the generator.

NoUniqueElementError

Raised when there is no unique element in the generator.