pipolars.PIValue

class pipolars.PIValue[source]

Bases: object

Represents a single PI value with timestamp and quality.

This is the fundamental data unit returned from PI queries.

__init__(timestamp, value, quality=DataQuality.GOOD)

Methods

__init__(timestamp, value[, quality])

to_dict()

Convert to a dictionary for DataFrame construction.

Attributes

timestamp

The timestamp of the value.

value

The actual value (can be numeric, string, or digital state).

quality

The quality flag for this value.

is_good

Convenience property indicating if the value is good quality.

timestamp: datetime

The timestamp of the value.

value: Any

The actual value (can be numeric, string, or digital state).

quality: DataQuality

The quality flag for this value.

is_good: bool

Convenience property indicating if the value is good quality.

to_dict()[source]

Convert to a dictionary for DataFrame construction.

__init__(timestamp, value, quality=DataQuality.GOOD)