pythia.applications.command_line#

Class defeinitions from pythia apps deisgned to be run from the cli.

class pythia.applications.command_line.CliApplication(pipeline: BasePipeline)[source]#

Bases: Application

Command-line application.

Construct an application from a pipeline.

Parameters:

pipeline – an instantiated Pipeline.

on_message_eos(bus: Bus, message: Message)#

Stop application on EOS event.

Parameters:
  • self – A stoppable instance.

  • bus – The application’s pipeline’s bus.

  • message – The gstreamer state change message.

on_message_error(*args, **kwargs) NoReturn[source]#

Print error and exit.

Parameters:
Raises:

RuntimeError – Always raises this error. You can wrap this in a try/except block to handle.