semvec/pypi-packages huggingface dataset:
motion-master-bindings 4.7.2
Python bindings for connecting to the Synapticon Motion Master
Requires Python: >=3.6

# Motion Master Bindings

This package contains Python bindings for the Synapticon Motion Master, a lightweight
master controller for EtherCAT devices.

Motion Master v3.x is supported. This package does not support previous versions.

## Installation

Using virtualenv or Python3's venv is recommended.

To install from PyPi, run

    $ pip install motion-master-bindings

## Documentation

The Motion Master branch of the documentation department is currently working
on something better, but here's an example to get you started.

    from motion_master_bindings.motion_master_bindings import MotionMasterBindings
    from motion_master_proto.motion_master_pb2 import MotionMasterMessage

    mmb = MotionMasterBindings('127.0.0.1')
    mmb.connect()
    mmb.get_dealer_subject().subscribe(
        lambda message: print("Message: {}".format(message)))

    message = MotionMasterMessage()
    message.request.get_system_version.SetInParent()
    mmb.send_message(message)

You should get a response printed from the DEALER subject:

    Message: [b'\xb2\x06\x12\xb2\x06\x0f\n\r3.0.0-alpha.1']
motion-master-proto 5.2.0
Protobuf API for the Synapticon Motion Master

# Motion Master Protobuf API

This package contains generated Python code for the Synapticon Motion Master
Protobuf API.

Motion Master v3.x is supported. This package does not support previous versions.

## Installation

Using virtualenv or Python3's venv is recommended.

To install from PyPi, run

    $ pip install motion-master-proto

## Documentation

The only class of interest is the `MotionMasterMessage`.

    from motion_master_proto.motion_master_pb2 import MotionMasterMessage

    # Create a new message
    message = MotionMasterMessage()
    # Set the message type to 'get_system_version'
    message.request.get_system_version.SetInParent()

The `message` object can now be sent to the Motion Master on the DEALER socket.

For a full description of all messages, see the associated
`motion-master.proto` file.

## See also

Install the `motion-master-bindings` for easy access to the Synapticon Motion
Master.