SequenceData#

Module: exa.core.sequence.interface

class SequenceData(*, name, analysis, options={})#

Bases: BaseModel

The serializable part of a Sequence.

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.

Attributes

model_config

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

name

Name of the sequence.

analysis

Callable that analyzes the sequence-level SequenceExecuteResultData.

options

Arbitrary options to control sequence behavior.

Methods

serialize_analysis

Serialize analysis.

validate_analysis

Cast str fqdn to type.

Parameters:
  • name (str)

  • analysis (Callable[[...], SequenceAnalyzeResult])

  • options (Annotated[dict[str, Any], PlainSerializer(func=~exa.core.sequence.interface._serialize_nested_value, return_type=PydanticUndefined, when_used=always), PlainValidator(func=~exa.core.sequence.interface._deserialize_nested_value, json_schema_input_type=~typing.Any)])

name: str#

Name of the sequence.

analysis: Analysis#

Callable that analyzes the sequence-level SequenceExecuteResultData.

options: Annotated[dict[str, Any], PlainSerializer(_serialize_nested_value), PlainValidator(_deserialize_nested_value)]#

Arbitrary options to control sequence behavior. Must contain only basic Python types.

model_config: ClassVar[ConfigDict] = {'arbitrary_types_allowed': True}#

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

serialize_analysis(value, _info)#

Serialize analysis.

Parameters:
  • value (Any)

  • _info (FieldSerializationInfo)

Return type:

str

classmethod validate_analysis(value)#

Cast str fqdn to type.

Parameters:

value (Any)

Inheritance

Inheritance diagram of exa.core.sequence.interface.SequenceData