piel.types.reference#

Classes#

Reference

A base model class that serves as the foundation for other measurement in the project.

Module Contents#

class Reference(/, **data: Any)[source]#

Bases: piel.types.PielBaseModel

A base model class that serves as the foundation for other measurement in the project. This class extends pydantic’s BaseModel and includes additional configuration settings for strict validation and immutability.

Config#

A nested class to configure the behavior of the model. arbitrary_types_allowed (bool): Allows arbitrary measurement. extra (str): Forbids extra attributes not defined in the model. validate_assignment (bool): Validates fields on assignment. strict (bool): Enforces strict type validation. allow_mutation (bool): Prevents mutation of the model’s fields.

supplied_parameters() list[str]#

Returns a list of parameter names that have been supplied (i.e., are not None).

text: str = ''#
bibtex_id: str = ''#
bibtex: str = ''#