lewis.core

Submodules

adapters

This module contains Adapter, which serves as a base class for concrete adapter implementations in lewis.adapters.

approaches

Defines functions that model typical behavior, such as a value approaching a target linearly at a certain rate.

control_client

This module provides client code for objects exposed via JSON-RPC over ZMQ.

control_server

This module contains classes to expose objects via a JSON-RPC over ZMQ server.

devices

This module contains DeviceBase as a base class for other device classes and infrastructure that can import devices from a module (DeviceRegistry).

exceptions

Defines exception types specific to lewis.

logging

This module contains everything logging-related in Lewis.

processor

This module defines two classes related to one of lewis' essential concepts, namely the cycle-based approach.

simulation

A Simulation combines a Device and its interface (derived from an Adapter).

statemachine

The statemachine module contains one of lewis' central parts, the cycle-based StateMachine.

utils

This module contains some useful helper classes and functions that are not specific to a certain module contained in the Core API.