runtimepy.channel.event package#

Submodules#

runtimepy.channel.event.header module#

A module implementing interfaces related to channel-protocol headers.

class runtimepy.channel.event.header.PrimitiveEventHeader[source]#

Bases: ProtocolFactory

A protocol for implementing channel events.

classmethod init_header(protocol: Protocol, identifier: int) None[source]#

Initialize a channel-event header.

classmethod initialize(protocol: Protocol) None[source]#

Initialize this protocol.

Module contents#

A module implementing a channel-event protocol.

class runtimepy.channel.event.PrimitiveEvent(primitive: Int8Primitive | Int16Primitive | Int32Primitive | Int64Primitive | Uint8Primitive | Uint16Primitive | Uint32Primitive | Uint64Primitive | HalfPrimitive | FloatPrimitive | DoublePrimitive | BooleanPrimitive, identifier: int)[source]#

Bases: object

A class implementing a simple channel-even interface.

registered(stream: BinaryIO, flush: bool = False, channel: ChannelMetrics = None, force: bool = False) Iterator[None][source]#

Register a stream as a managed context.

set_min_period(min_period_s: float) None[source]#

Set a minimum period.