Progress#

class ansys.additive.core.progress_handler.Progress(/, **data: Any)#

Bases: pydantic.BaseModel

Progress information.

Overview#

from_proto_msg

Create a Progress object from a progress protobuf message.

from_operation_metadata

Create a Progress object from an operation metadata (long-running operations) protobuf message.

Import detail#

from ansys.additive.core.progress_handler import Progress

Attribute detail#

Progress.sim_id: str#
Progress.state: ProgressState#
Progress.percent_complete: int#
Progress.message: str#
Progress.context: str#

Method detail#

classmethod Progress.from_proto_msg(sim_id: str, progress: ansys.api.additive.v0.additive_domain_pb2.Progress)#

Create a Progress object from a progress protobuf message.

classmethod Progress.from_operation_metadata(metadata: ansys.api.additive.v0.additive_operations_pb2.OperationMetadata)#

Create a Progress object from an operation metadata (long-running operations) protobuf message.

Progress.__str__()#