pilot_drive.services package

Subpackages

Submodules

pilot_drive.services.abstract_service module

Module contains an abstract service used as a template for other service implementations

class pilot_drive.services.abstract_service.AbstractService(master_event_queue: MasterEventQueue, service_type: EventType, logger: MasterLogger)

Bases: ABC

The abstract class used to implement all other services

abstract main() None

runs servce main loop and logic

push_to_queue(event: dict, event_type: dict | None = None) None

Push a new event to the master queue.

Parameters:
  • event – the dict that will be converted to json & passed to the queue, and in turn to the UI.

  • event_type – the event type that will go on the queue. If no argument is specified, it defaults to the calling services type

abstract refresh() None

Add any stored events back to the event queue, as this will be called in a client refresh.

Module contents

The services of PILOT Drive