streaming#

Provides a module for streaming services.

Classes:

StreamingService(stream_begin_method, ...)

Encapsulates a Fluent streaming service.

class ansys.fluent.core.streaming_services.streaming.StreamingService(stream_begin_method, target, streaming_service)#

Bases: object

Encapsulates a Fluent streaming service.

Methods:

__init__(stream_begin_method, target, ...)

__init__ method of StreamingService class.

register_callback(callback, *args, **kwargs)

Register the callback.

start(*args, **kwargs)

Start streaming.

stop()

Stop streaming.

unregister_callback(callback_id)

Unregister the callback.

Attributes:

is_streaming

Checks whether it is streaming.

__init__(stream_begin_method, target, streaming_service)#

__init__ method of StreamingService class.

property is_streaming#

Checks whether it is streaming.

register_callback(callback, *args, **kwargs)#

Register the callback.

Parameters:
callbackCallable

Callback to register.

argsAny

Arguments.

kwargsAny

Keyword arguments.

Returns:
str

Registered callback ID.

start(*args, **kwargs)#

Start streaming.

stop()#

Stop streaming.

unregister_callback(callback_id)#

Unregister the callback.

Parameters:
callback_idstr

ID of the registered callback.