Latest Threat Research:SANDWORM_MODE: Shai-Hulud-Style npm Worm Hijacks CI Workflows and Poisons AI Toolchains.Details
Socket
Book a DemoInstallSign in
Socket

pencompy

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

pencompy

Pencom relay controller over Ethernet

pipPyPI
Version
0.0.4
Maintainers
1

Pencom Package

Package to control Pencom serial relay boards through an Ethernet adaptor using Python.

Example:

from time import sleep
from pencompy import pencompy

hub = pencompy( 'host.test.com', 4008 )

# Turn the first relay on
hub.set( 0, 0, True )

# Pause for a second
sleep(1.)

# Turn the first relay off
hub.set( 0, 0, False )

# Close the interface
hub.close()

FAQs

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts