This is a Python 3 port of DmxPy.
DmxPy is a super-lightweight Python library for controlling any USB-DMX device that is compatible with Enttec's DMXUSB Pro. This includes all Dmxking ultraDMX devices.
DmxPy requires PySerial to work - GitHub
pip install pyserial
To import:
from DmxPy import DmxPy
To initialize:
dmx = DmxPy('serial port')
Where 'serial port' is where your device is located.
To set a channel's value:
dmx.setChannel(chan, value)
Where 'chan' and 'value' are integers representing the respective DMX channels and values to set!
To push dmx changes to device:
dmx.render()
You need to call this to update the device!