Skip to main content

Enables interfacing with custom hardware modules running on Arduino or Teensy microcontrollers through Python interface clients.

Project description

ataraxis-communication-interface

A Python library that enables interfacing with custom hardware modules running on Arduino or Teensy microcontrollers through Python interface clients.

PyPI - Version PyPI - Python Version uv Ruff type-checked: mypy PyPI - License PyPI - Status PyPI - Wheel


Detailed Description

This library allows interfacing with custom hardware modules controlled by Arduino or Teensy microcontrollers via a local Python client or remote MQTT client. It is designed to work in tandem with the companion microcontroller library and allows hardware module developers to implement PC interfaces for their modules. To do so, the library exposes a shared API that can be integrated into custom interface classes by subclassing the ModuleInterface class. Additionally, the library offers the MicroControllerInterface class, which bridges microcontrollers managing custom hardware modules with local and remote clients, enabling efficient multi-directional communication and data logging.


Features

  • Supports Windows, Linux, and macOS.
  • Provides an easy-to-implement API that integrates any user-defined hardware managed by the companion microcontroller library with local and remote PC clients.
  • Abstracts communication and microcontroller runtime management via the centralized microcontroller interface class.
  • Contains many sanity checks performed at initialization time to minimize the potential for unexpected behavior and data corruption.
  • Uses MQTT protocol to allow interfacing with microcontrollers over the internet or from non-Python processes.
  • GPL 3 License.

Table of Contents


Dependencies

  • MQTT broker, if your interface needs to send or receive data over the MQTT protocol. This library was tested and is intended to be used with a locally running mosquitto MQTT broker. If you have access to an external broker or want to use a different local broker implementation, this would also satisfy the dependency.

For users, all other library dependencies are installed automatically by all supported installation methods (see Installation section).

For developers, see the Developers section for information on installing additional development dependencies.


Installation

Source

Note, installation from source is highly discouraged for everyone who is not an active project developer. Developers should see the Developers section for more details on installing from source. The instructions below assume you are not a developer.

  1. Download this repository to your local machine using your preferred method, such as Git-cloning. Use one of the stable releases from GitHub.
  2. Unpack the downloaded zip and note the path to the binary wheel (.whl) file contained in the archive.
  3. Run python -m pip install WHEEL_PATH, replacing 'WHEEL_PATH' with the path to the wheel file, to install the wheel into the active python environment.

pip

Use the following command to install the library using pip: pip install ataraxis-communication-interface.


Usage

Quickstart

This section demonstrates how to use custom hardware module interfaces compatible with this library. See this section for instructions on how to implement your own module interfaces. Note, the example below should be run together with the companion microcontroller module example. See the examples folder for the .py files used in all sections of this ReadMe.

# Imports the necessary assets, including the TestModuleInterface class
from pathlib import Path

import numpy as np
from ataraxis_time import PrecisionTimer
from example_interface import TestModuleInterface
from ataraxis_data_structures import DataLogger

from ataraxis_communication_interface import MicroControllerInterface

# Since MicroControllerInterface uses multiple processes, it has to be called with the '__main__' guard
if __name__ == "__main__":
    # Instantiates the DataLogger, which is used to save all incoming and outgoing MicroControllerInterface messages
    # to disk. See https://github.com/Sun-Lab-NBB/ataraxis-data-structures for more details on DataLogger class.
    output_directory = Path("/home/cyberaxolotl/Desktop/Demos/AXCI")  # Change this to your desired output directory
    data_logger = DataLogger(output_directory=output_directory, instance_name="AMC")

    # Defines two interface instances, one for each TestModule used at the same time. Note that each instance uses
    # different module_id codes, but the same type (family) id code. These codes match the values used on the
    # microcontroller.
    interface_1 = TestModuleInterface(module_type=np.uint8(1), module_id=np.uint8(1))
    interface_2 = TestModuleInterface(module_type=np.uint8(1), module_id=np.uint8(2))
    interfaces = (interface_1, interface_2)

    # Defines microcontroller parameters necessary to establish serial communication. Critically, this example uses a
    # Teensy 4.1 microcontroller, and the parameters defined below may not work for your microcontroller!
    # See MicroControllerInterface docstrings / API documentation for more details about each of these parameters.
    controller_id = np.uint8(222)  # Matches the microcontroller ID defined in the microcontroller's main.cpp file
    microcontroller_serial_buffer_size = 8192
    baudrate = 115200
    port = "/dev/ttyACM0"

    # Instantiates the MicroControllerInterface. This class functions similar to the Kernel class from the
    # ataraxis-micro-controller library and abstracts most inner-workings of the library. This interface also allows
    # issuing controller-wide commands and parameters.
    mc_interface = MicroControllerInterface(
        controller_id=controller_id,
        data_logger=data_logger,
        module_interfaces=interfaces,
        microcontroller_serial_buffer_size=microcontroller_serial_buffer_size,
        microcontroller_usb_port=port,
        baudrate=baudrate,
    )

    # Initialization can take some time. Notifies the user that the process is initializing.
    print("Initializing the communication process...")

    # Starts the logging process. By default, the process uses a separate core (process) and 5 concurrently active
    # threads to log all incoming data. The same data logger instance can be used by multiple MiroControllerInterface
    # instances and other Ataraxis classes that support logging data. Note, if this method is not called, no data
    # will be saved to disk.
    data_logger.start()

    # Starts the serial communication with the microcontroller. This method may take up to 15 seconds to execute, as
    # it verifies that the microcontroller is configured correctly, given the MicroControllerInterface configuration.
    # Also, this method JIT-compiles some assets as it runs, which speeds up all future communication.
    mc_interface.start()

    # As a safety feature, the microcontroller is locked when the communication starts. This prevents the
    # microcontroller from changing the states of output pins, but does not interfere with reading input pins or
    # setting runtime parameters. Since this demonstration manipulates an output pin, we need to unlock the
    # microcontroller before proceeding further.
    mc_interface.unlock_controller()

    # You have to manually generate and submit each module-addressed command (or parameter message) to the
    # microcontroller. This is in contrast to MicroControllerInterface commands, which are sent to the microcontroller
    # automatically (see unlock_controller above).

    # Generates and sends new runtime parameters to both hardware module instances running on the microcontroller.
    # On and Off durations are in microseconds. 1 second = 1_000_000 microseconds.
    interface_1.set_parameters(
        on_duration=np.uint32(1000000), off_duration=np.uint32(1000000), echo_value=np.uint16(121)
    )
    interface_2.set_parameters(
        on_duration=np.uint32(5000000), off_duration=np.uint32(5000000), echo_value=np.uint16(333)
    )

    # Requests instance 1 to return its echo value. By default, the echo command only runs once.
    interface_1.echo()

    # Since TestModuleInterface class used in this demonstration is configured to output all received data via
    # MicroControllerInterface's multiprocessing queue, we can access the queue to verify the returned echo value.

    # Waits until the microcontroller responds to the echo command.
    while interface_1.output_queue.empty():
        continue

    # Retrieves and prints the microcontroller's response. The returned value should match the parameter set above: 121.
    print(f"TestModule instance 1 returned {interface_1.output_queue.get()[2]}")

    # We can also set both instances to execute two different commands at the same time if both commands are noblock
    # compatible. The TestModules are written in a way that these commands are noblock compatible.

    # Instructs the first TestModule instance to start pulsing the managed pin (Pin 5 by default). With the parameters
    # we sent earlier, it will keep the pin ON for 1 second and then keep it off for ~ 2 seconds (1 from off_duration,
    # 1 from waiting before repeating the command). The microcontroller will repeat this command at regular intervals
    # until it is given a new command or receives a 'dequeue' command (see below).
    interface_1.pulse(repetition_delay=np.uint32(1000000), noblock=True)

    # Also instructs the second TestModule instance to start sending its echo value to the PC once every 500
    # milliseconds.
    interface_2.echo(repetition_delay=np.uint32(500000))

    # Delays for 10 seconds, accumulating echo values from TestModule 2 and pin On / Off notifications from TestModule
    # 1. Uses the PrecisionTimer class to delay the main process thread for 10 seconds, without blocking other
    # concurrent threads.
    delay_timer = PrecisionTimer("s")
    delay_timer.delay_noblock(10)

    # Cancels both recurrent commands by issuing a dequeue command. Note, the dequeue command does not interrupt already
    # running commands, it only prevents further command repetitions.
    interface_1.reset_command_queue()
    interface_2.reset_command_queue()

    # Counts the number of pin pulses and received echo values accumulated during the delay.
    pulse_count = 0
    echo_count = 0
    while not interface_1.output_queue.empty():
        message = interface_1.output_queue.get()
        # Pin pulses are counted when the microcontroller sends a notification that the pin was set to HIGH state.
        # The microcontroller also sends a notification when Pin state is LOW, but we do not consider it here.
        if message[0] == interface_1.module_id and message[1] == "pin state" and message[2]:
            pulse_count += 1

    while not interface_2.output_queue.empty():
        message = interface_2.output_queue.get()
        # Echo values are only counted if the echo value matches the value we set via the parameter message.
        if message[0] == interface_2.module_id and message[1] == "echo value" and message[2] == 333:
            echo_count += 1

    # The result seen here depends on the communication speed between the PC and the microcontroller and the precision
    # of microcontroller clocks. For Teensy 4.1, which was used to write this example, we expect the pin to pulse 4
    # times and the echo value to be transmitted 21 times during the test period. Note that these times are slightly
    # higher than the theoretically expected 3 and 20. This is because the modules are fast enough to start an extra
    # cycle for both pulse() and echo() commands in the time it takes the dequeue command to arrive to the
    # microcontroller.
    print("TestModule 1 Pin pulses:", pulse_count)
    print("TestModule 2 Echo values:", echo_count)

    # You can also try the same test as above, but this time with pulse noblock=False. In this case, pulsing the pin and
    # returning echo values will interfere with each other, which will drastically reduce the number of returned echo
    # values.

    # Stops the serial communication and the data logger processes.
    mc_interface.stop()
    data_logger.stop()

    # Compresses all logged data into a single .npz archive. This is a prerequisite for reading the logged data via the
    # ModuleInterface default methods!
    data_logger.compress_logs(remove_sources=True)  # Removes intermediate .npy log entries to save space.

    # If you want to process the data logged during runtime, you first need to extract it from the archive. To help
    # with this, the base ModuleInterface exposes a method that reads the data logged during runtime. The method
    # ONLY reads the data received from the module with the same type and ID as the ModuleInterface whose method is
    # called and only reads module messages with event-codes above 51. In other words, the method ignores
    # system-reserved messages that are also logged, but are likely not needed for further data analysis.

    # Log compression generates an '.npz' archive for each unique source. For MicroControllerInterface class, its
    # controlled_id is used as the source_id. In our case, the log is saved under '222_data_log.npz'.
    log_data = interface_1.extract_logged_data()
    print(f"Extracted event data: {log_data}")

User-Defined Variables

This library is designed to support many different use patterns. To do so, it intentionally avoids hardcoding certain metadata variables that allow the PC interface to identify the managed microcontroller and specific hardware module instances running on that controller. As a user, you have to manually define these values both for the microcontroller and the PC. The PC and the Microcontroller have to have the same interpretation for these values to work as intended.

  • Controller ID. This is a unique byte-code value between 1 and 255 that identifies the microcontroller during communication. This ID code is used when logging the data received from the microcontroller, so it has to be unique for all microcontrollers and other Ataraxis classes used at the same time that log data. For example, Video System classes also use the byte-code ID system to identify themselves during logging and will clash with microcontroller IDs if you are using both at the same time. This code is provided as an argument when initializing the MicroControllerInterface instance.

  • Module Type for each module. This is a byte-code between 1 and 255 that identifies the family of each module. For example, all solenoid valves may use the type-code '1,' while all voltage sensors may use type-code '2.' The type codes do not have an inherent meaning, they are assigned independently for each use case. Therefore, the same collection of custom module classes may have vastly different type-codes for two different projects. This design pattern is intentional and allows developers to implement modules without worrying about clashing with already existing modules. This code is provided as an argument when subclassing the ModuleInterface class.

  • Module ID for each module. This byte-code between 1 and 255 has to be unique within the module type (family) and is used to identify specific module instances. For example, this code will be used to identify different voltage sensors if more than one sensor is used by the same microcontroller at the same time. This code is provided as an argument when subclassing the ModuleInterface class.

Data Logging

Like some other Ataraxis libraries, this library relies on the DataLogger class to save all incoming and outgoing messages in their byte-serialized forms to disk as .npy files. It is highly advised to study the documentation for the class before using this library, especially if you want to parse the logged data manually instead of using the method exposed by each ModuleInterface class.

The DataLogger may be shared by multiple Ataraxis classes that generate log entries, such as VideoSystem classes. To support using the same logger class for multiple sources, each source (class) active at the same time has to use a unique byte-ID (system id). These id-codes are used to identify the source class in log files and during further processing.

Critically: Each MicroControllerInterface accepts a DataLogger instance at instantiation. Generally, it is advised to use the same DataLogger instance for all MicroControllerInterface classes active at the same time, although this is not required.

Log entries format

Each message is logged as a one-dimensional numpy uint8 array (.npy file). Inside the array, the data is organized in the following order:

  1. The uint8 id of the data source. For this library, the source ID is the ID code of the microcontroller managed by the MicroControllerInterface that submits the data to be logged. The ID occupies the first byte of each logged array.
  2. The uint64 timestamp that specifies the number of microseconds relative to the onset timestamp (see below). The timestamp occupies 8 bytes following the ID byte.
  3. The serialized message payload sent to the microcontroller or received from the microcontroller. The payload can be deserialzied using the appropriate message structure. The payload occupies all remaining bytes, following the source ID and the timestamp.

Onset timestamp:

Each MicroControllerInterface that logs its data generates an onset timestamp as part of its start() method runtime. This log entry uses a modified data order and stores the current UTC time, accurate to microseconds. All further log entries for the same source use the timestamp section of their payloads to communicate the number of microseconds elapsed since the onset timestamp. The onset log entries follow the following order:

  1. The uint8 id of the data source.
  2. The uint64 value 0 that occupies 8 bytes following the source id. This is the only time when the timestamp value of a log entry can be set to 0.
  3. The uint64 value that stores the number of microseconds elapsed since the UTC epoch. This value specifies the current time when the onset timestamp was generated.

Starting and stopping logging

Until the DataLogger is started through its start() method, the log entries will be buffered in the multiprocessing queue, which uses the host-computer’s RAM. To avoid running out of buffer space, make sure the DataLogger's start() method is called before calling the start() method of any MicroControllerInterface class. Once all sources using the same DataLogger have finished their runtime, call the stop() method to end log saving and then call the compress_logs() method to compress all individual .npy entries into an .npz archive. Compressing the logs is required to later parse logged module data for further analysis (see quickstart).

Reading custom module data from logs

The base ModuleInterface class exposes the extract_logged_data() method that allows parsing received ModuleState and ModuleData messages from compressed '.npz' archives. Currently, the method only works with messages that use 'event' byte-codes greater than 51 and only with messages sent by custom hardware module classes (children of base ModuleInterface class). The only exception to this rule is Command Completion events (event code 2), which are also parsed for each hardware module.

Note: to parse logged data, the ModuleInterface has to be used to initialize a MicroControllerInterface. The MicroControllerInterface overwrites certain attributes inside each managed ModuleInterface during its initialization, which is required for the log parser to find the target log file. Overall, it is advised to parse logged data immediately after finishing the communication runtime, as the class would be configured correctly for the parsing to work as intended.

Custom Module Interfaces

For this library an interface is a class that contains the logic for sending the command and parameter data to the hardware module and receiving and processing the data sent by the module to the PC. The microcontroller and PC libraries ensure that the data is efficiently moved between the module and the interface, but each custom hardware module developer is responsible for handling that data.

Implementing Custom Module Interfaces

All module interfaces intended to be accessible through this library have to follow the implementation guidelines described in the example module interface implementation file. Specifically, all custom module interfaces have to subclass the ModuleInterface class from this library and implement all abstract methods. Additionally, all commands and parameter messages generated by the interface have to use one of the valid message structures exposed by this library.

Abstract Methods

These methods act as a gateway that custom interface developers can use to execute custom logic to process incoming or outgoing data. The MicroControllerInterface class that manages the communication will call these methods for incoming or outgoing data according to the configuration of each managed ModuleInterface (see below for details). Currently, there are three abstract methods defined by the base ModuleInterface class: initialize_remote_assets(), process_received_data() and parse_mqtt_command()

initialize_remote_assets

This method is called by the MicroControllerInterface once for each ModuleInterface at the beginning of the communication cycle. The methods should be used to initialize or configure custom assets (queue, shared memory buffers, timer, etc.) that cannot be pickled and transferred to the communication Process. Any assets that can be pickled can be initialized during the interface init method runtime. All assets should be stored in class attributes, so that they can be accessed from other abstract methods.

def initialize_remote_assets(self) -> None:
    # Initializes a milliseconds-precise timer. The timer cannot be passed to a remote process and has to be created
    # by the code running inside the process.
    self._timer = PrecisionTimer("ms")

parse_mqtt_command

This method translates commands sent by other MQTT clients into ModuleCommand messages that are transmitted to the microcontroller for execution. MicroControllerInterface uses its MQTTCommunication class to monitor the topics listed by each managed ModuleInterface. When one of the monitored topics receives a message, MicroControllerInterface calls this method for all ModuleInterfaces that listed that topic as their 'command topic.'

The purpose of the method is to parse the topic and/or payload of a received MQTT message and, based on this data, to construct and return the command message to send to the Module. While the example TestModuleInterface does not demonstrate this functionality, consider this example implementation used to control water valves in the Sun Lab:

def parse_mqtt_command(self, topic: str, payload: bytes | bytearray) -> OneOffModuleCommand | None:
    if topic == 'gimbl/reward':
        return OneOffModuleCommand(
            module_type=self._module_type,
            module_id=self._module_id,
            return_code=np.uint8(0),
            command=np.uint8(1),
            noblock=np.bool(False),  # Blocks to ensure reward delivery precision.
        )

Currently, the method is designed to only process commands and work with all valid module commands.

process_received_data

This method allows processing incoming ModuleState and ModuleData messages as they are received by the PC. MicroControllerInterface calls this method for any State or Data message received from the hardware module, if the event code from that messages matches one of the codes in the data_codes attribute of the ModuleInterface. Therefore, this method will only be called on the messages specified by teh ModuleInterface developer.

Note: The MicroControllerInterface class automatically saves (logs) each received and sent message to the PC as a stream of bytes. Therefore, this method should not be used to save the data for post-runtime analysis. Instead, this method should be used to process the data in real time. For example, use this method to communicate the physical location of a real life object to the Unity game engine simulating the virtual reality (via MQTT). Or use this method to display a real-time graph for the microcontroller-recorded event, such as voltage detected by the voltage sensor.

Since all ModuleInterfaces used by the same MicroControllerInterface share the communication process, process_received_data should not use complex logic or processing. Treat this method as you would a hardware interrupt function: its main goal is to move the data to a different context, where it can be processed, as quickly as possible and allow the communication loop to run for other modules.

This example demonstrates the implementation of the processing method to send the data back to the main process. All assets other than the message are stored in class attributes. The timer is initialized via the initialize_remote_assets() method:

def process_received_data(
    self,
    message: ModuleData | ModuleState,
) -> None:
     if self._timer is None:
            raise RuntimeError("PrecisionTimer not initialized.")

    timestamp = self._timer.elapsed  # Returns the number of milliseconds elapsed since timer initialization

    # Event codes 52 and 53 are used to communicate the current state of the output pin managed by the example
    # module.
    if message.event == 52 or message.event == 53:
        # These event-codes are transmitted by State messages, so there is no additional data to parse other than
        # event codes. The codes are transformed into boolean values and are exported via the multiprocessing queue.
        message_type = "pin state"
        state = True if message.event == 52 else False
        self._output_queue.put((self.module_id, message_type, state, timestamp))

Module Messages

In addition to abstract methods, each interface may need to implement a number of messages that can be sent to the microcontroller. Unlike abstract methods, implementing custom command and parameter messages is optional: not all modules may need to receive data from the PC to function.

To communicate with the module, the interface has to define one of the valid Module-targeted messages: OneOffModuleCommand, RepeatedModuleCommand, DequeueModuleCommand, or ModuleParameters. Each of these messages is a dataclass that as a minimum contains 3 fields: the type of the target module, the instance ID of the target module, and a return_code. Since return_code is currently only used for debugging, make sure the return_code is always set to 0. Check the API documentation for details about supported message structures.

It is not relevant how each interface defines its command and parameter messages. For example, in the TestModuleInterface, we define methods that translate user-input into command messages. This enables users to flexibly define commands to be sent to the module.

def pulse(self, repetition_delay: np.uint32 = np.uint32(0), noblock: bool = True) -> None:
    # The _input_queue is provided by the managing MicroControllerInterface during its initialization. This guard
    # prevents this command from running unless the MicroControllerInterface is initialized.
    if self._input_queue is None:
        raise RuntimeError("MicroControllerInterface that manages ModuleInterface is not initialized.")

    # Repetition delay of 0 is interpreted as a one-time command (only runs once).
    command: RepeatedModuleCommand | OneOffModuleCommand
    if repetition_delay == 0:
        command = OneOffModuleCommand(
            module_type=self._module_type,
            module_id=self._module_id,
            return_code=np.uint8(0),  # Keep this set to 0, the functionality is only for debugging purposes.
            command=np.uint8(1),
            noblock=np.bool(noblock),
        )
    else:
        command = RepeatedModuleCommand(
            module_type=self._module_type,
            module_id=self._module_id,
            return_code=np.uint8(0),  # Keep this set to 0, the functionality is only for debugging purposes.
            command=np.uint8(1),
            noblock=np.bool(noblock),
            cycle_delay=repetition_delay,
        )

    # Directly submits the command to the communication process.
    self._input_queue.put(command)

However, you can also statically hard-code a set of fixed commands and expose them as interface class properties or follow any other implementation that makes sense for your use case.

Submitting messages to the microcontroller

Since version 3.0.0, there are two ways for sending command or parameter messages to the microcontroller. The first way is to submit the message instance to the send_message() method of the MicroControllerInterface instance managing the target microcontroller:

# This demonstrates creating and seinding a dequeue command to the hardware module with type 1 and id 3.
mc_interface.send_message(DequeueModuleCommand(np.uint8(1), np.uint8(3), np.uint8(0)))

The second way, introduced in version 3.0.0 is using the _input_queue attribute inherited from the base ModuleInterface class. Note, this attribute is provided by the managing MicroControllerInterface class, so it is initially set to None. The ModuleInterface has to be submitted to the initialization method of the MicroControllerInterface class to be able to use this attribute for message submission:

command = RepeatedModuleCommand(
    module_type=self._module_type,
    module_id=self._module_id,
    return_code=np.uint8(0),  # Keep this set to 0, the functionality is only for debugging purposes.
    command=np.uint8(2),
    noblock=np.bool(False),
    cycle_delay=repetition_delay,
)

# Directly submits the command to the communication process.
self._input_queue.put(command)

API Documentation

See the API documentation for the detailed description of the methods and classes exposed by components of this library.


Developers

This section provides installation, dependency, and build-system instructions for the developers that want to modify the source code of this library.

Installing the library

The easiest way to ensure you have most recent development dependencies and library source files is to install the python environment for your OS (see below). All environments used during development are exported as .yml files and as spec.txt files to the envs folder. The environment snapshots were taken on each of the three explicitly supported OS families: Windows 11, OSx Darwin, and GNU Linux.

Note! Since the OSx environment was built for the Darwin platform (Apple Silicon), it may not work on Intel-based Apple devices.

  1. If you do not already have it installed, install tox into the active python environment. The rest of this installation guide relies on the interaction of local tox installation with the configuration files included in with this library.
  2. Download this repository to your local machine using your preferred method, such as git-cloning. If necessary, unpack and move the project directory to the appropriate location on your system.
  3. cd to the root directory of the project using your command line interface of choice. Make sure it contains the tox.ini and pyproject.toml files.
  4. Run tox -e import to automatically import the os-specific development environment included with the source distribution. Alternatively, you can use tox -e create to create the environment from scratch and automatically install the necessary dependencies using pyproject.toml file.
  5. If either step 4 command fails, use tox -e provision to fix a partially installed environment.

Hint: while only the platforms mentioned above were explicitly evaluated, this project will likely work on any common OS, but may require additional configurations steps.

Additional Dependencies

In addition to installing the development environment, separately install the following dependencies:

  1. Python distributions, one for each version that you intend to support. These versions will be installed in-addition to the main Python version installed in the development environment. The easiest way to get tox to work as intended is to have separate python distributions, but using pyenv is a good alternative. This is needed for the 'test' task to work as intended.

Development Automation

This project comes with a fully configured set of automation pipelines implemented using tox. Check tox.ini file for details about available pipelines and their implementation. Alternatively, call tox list from the root directory of the project to see the list of available tasks.

Note! All commits to this project have to successfully complete the tox task before being pushed to GitHub. To minimize the runtime duration for this task, use tox --parallel.

For more information, check the 'Usage' section of the ataraxis-automation project documentation.

Automation Troubleshooting

Many packages used in 'tox' automation pipelines (uv, mypy, ruff) and 'tox' itself are prone to various failures. In most cases, this is related to their caching behavior. Despite a considerable effort to disable caching behavior known to be problematic, in some cases it cannot or should not be eliminated. If you run into an unintelligible error with any of the automation components, deleting the corresponding .cache (.tox, .ruff_cache, .mypy_cache, etc.) manually or via a cli command is very likely to fix the issue.


Versioning

We use semantic versioning for this project. For the versions available, see the tags on this repository.


Authors


License

This project is licensed under the GPL3 License: see the LICENSE file for details.


Acknowledgments

  • All Sun lab members for providing the inspiration and comments during the development of this library.
  • The creators of all other projects used in our development automation pipelines and source code see pyproject.toml.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

ataraxis_communication_interface-3.0.0.tar.gz (129.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

File details

Details for the file ataraxis_communication_interface-3.0.0.tar.gz.

File metadata

File hashes

Hashes for ataraxis_communication_interface-3.0.0.tar.gz
Algorithm Hash digest
SHA256 3fc21644b80f54e40f86e6b6d525e84facdf30ceb57eb0cbaa808276d33540ec
MD5 78a2f97ff14b178791f8279b966baed4
BLAKE2b-256 5d286ee37a9c5861ae9bf19e431ba53563f28cc6b3035d022659210f14d16e27

See more details on using hashes here.

File details

Details for the file ataraxis_communication_interface-3.0.0-py3-none-any.whl.

File metadata

File hashes

Hashes for ataraxis_communication_interface-3.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 698610ee1c9123c5d1ca44dbe08f4c10490594d89a86aceb738b30c4288b6087
MD5 2b5ac21d435136903519b416a5f6bc86
BLAKE2b-256 dd8c67f8894753dc94b9de124d05796b8fdd999787a3feea974c5723d28ff346

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page