Skip to main content

DmxPy - Python Controller for USB - DMX devices

DmxPy is a super-lightweight Python library for controlling any USB-DMX device that is compatible with Enttec's USB DMX Pro, including all Dmxking ultraDMX devices.

DmxPy requires PySerial to work

There is a console interface for basic sanity testing and validation

For detailed usage instructions

dmxpy -h

To black out (turn off) the lights when the DMX is on port COM4

dmxpy --port COM4 -b

To turn on all the lights at 50% (level 128)

dmxpy -p /dev/ttyUSB2 --level 128 -w

To play the demo light pattern with the default level at 200, auto-detect USB port

dmxpy -l 200 --demo

For more specific use cases use the DmxPy module

To import

from dmxpy import DmxPy

To initialize

dmx = DmxPy.DmxPy('serial port')

where 'serial port' is where your device is located, .e.g, /dev/ttyUSB1 or COM3

If None, attempt to identify port based on grep expression: hwid, serial number, etc

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!

Metadata

Release files for DmxPy 0.5

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for DmxPy 0.5
File Size Uploaded
DmxPy-0.5.tar.gz 3.1 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for DmxPy 0.5
File Interpreter ABI Platform
DmxPy-0.5-py3-none-any.whl Python 3 none any Details

Total release size: 7.5 kB

Release files / DmxPy-0.5.tar.gz

Download URL DmxPy-0.5.tar.gz
Size 3.1 kB
Tags Source
SHA-256 checksum
How to use checksums
f3a7c86a0b6c9e2d5e0ea52c0e5ed0ec2988ecaf2d089b808cf003b218020ae6
BLAKE2b-256 checksum
How to use checksums
64c318dc910d7fb1a40913c2b9852d487cbe36fd6b5e02be9879ca9f6bdaba1c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.3.0 pkginfo/1.6.1 requests/2.25.1 setuptools/51.1.2 requests-toolbelt/0.9.1 tqdm/4.55.2 CPython/3.7.3

Release files / DmxPy-0.5-py3-none-any.whl

Download URL DmxPy-0.5-py3-none-any.whl
Size 4.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
b9d8e6e40a0e3727020826cbdc894af27910c1ca3b0f53a9b9c985d2cd40f74d
BLAKE2b-256 checksum
How to use checksums
a16c19faa3dbac4cf7d8f6b7c35417f709794c377086ecb1d004c00429dc0dcf
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.3.0 pkginfo/1.6.1 requests/2.25.1 setuptools/51.1.2 requests-toolbelt/0.9.1 tqdm/4.55.2 CPython/3.7.3

Release history Release notifications | RSS feed

This release

0.5 This release

2 release files

0.4

2 release files

0.3

2 release files

0.2

2 release files

0.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page