
Research
SANDWORM_MODE: Shai-Hulud-Style npm Worm Hijacks CI Workflows and Poisons AI Toolchains
An emerging npm supply chain attack that infects repos, steals CI secrets, and targets developer AI toolchains for further compromise.
productivity
Advanced tools
Python driver and command-line tool for AutomationDirect Productivity Series PLCs.
uv pip install productivity
This driver uses Modbus TCP/IP for communication. Unlike the ClickPLC, modbus addresses need to be manually configured in the Productivity PLC firmware (see manual).
To use this driver, go to Write Program → Tag Database, scroll down to the values
you care about, and double click the Mod Start cell of each value to assign an address.
Then, go to File → Export → Tags to export a csv file. The file is used here so
you don't need to remember the addresses.
To print the tags and their values, simply call the library with the PLC IP address and the tags file.
$ productivity the-plc-ip-address path/to/tags.csv
Use --set to set values on the PLC:
$ productivity the-plc-ip-address path/to/tags.csv -s "{int_test: 4, float_test: 4.45, string_test: foo}"
The --set parameter takes YAML, a simple data format that allows you to easily set multiple tags at once.
See productivity --help for more.
This driver uses Python async/await syntax to asynchronously communicate with a Productivity2000 PLC. For example:
import asyncio
from productivity import ProductivityPLC
async def run():
async with ProductivityPLC('the-plc-ip-address', 'path/to/tags.csv') as plc:
print(await plc.get())
asyncio.run(run())
It is also possible to set tag values:
async def run():
async with ProductivityPLC('the-plc-ip-address', 'path/to/tags.csv') as plc:
await plc.set(start=True, setpoint=1.1)
asyncio.run(run())
FAQs
Python driver for AutomationDirect Productivity Series PLCs.
We found that productivity demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 4 open source maintainers collaborating on the project.
Did you know?

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.

Research
An emerging npm supply chain attack that infects repos, steals CI secrets, and targets developer AI toolchains for further compromise.

Company News
Socket is proud to join the OpenJS Foundation as a Silver Member, deepening our commitment to the long-term health and security of the JavaScript ecosystem.

Security News
npm now links to Socket's security analysis on every package page. Here's what you'll find when you click through.