REP is an open-source library for controlling lab instruments. It’s an alternative to LabVIEW1 if you’d rather script your experiments in Python than fiddle with little wires and blocks.
If not using the Windows installer, then download the Source code, unzip it, open a terminal, and execute:
The API reference is hosted on GitHub Pages.
1 LabVIEW is a trademark of National Instruments Corp.