Skip to main content

PyRelayCtl is a library to control FTDI FT245R based relay boards. This includes the SainSmart 4-channel 5V USB relay board. The outlets can be switched on and off via USB.

The library depends on PyUSB (https://github.com/walac/pyusb).

On Debian PyUSB can be installed using:

apt-get install python3-usb

Per default, only root is allowed to use devices directly, therefore the library also only works as root.

To allow group relayctl access create file /lib/udev/rules.d/60-relayctl.rules with the following content:

SUBSYSTEM=="usb", ATTR{idVendor}=="0403", ATTR{idProduct}=="6001", GROUP="relayctl", MODE="660"

Then reload the udev rules with:

udevadm control --reload-rules

Metadata

Release files for pyrelayctl 0.1

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

Source distribution (sdist)

Source distribution for pyrelayctl 0.1
File Size Uploaded
pyrelayctl-0.1.tar.gz 3.4 kB Details

Release files / pyrelayctl-0.1.tar.gz

Download URL pyrelayctl-0.1.tar.gz
Size 3.4 kB
Tags Source
SHA-256 checksum
How to use checksums
29ae8bb1390355e03eae4830dac8ce718772ebccaabce92ca952281fdd865b8e
BLAKE2b-256 checksum
How to use checksums
65c6dfbf99e133c5f48df1a1640c3fcf67fd821eab02ba9fb335d0d589c38d07
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release history Release notifications | RSS feed

This release

0.1 This release

1 release file

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