Introducing Quarchpy: Python Package for Power Data Analysis

What is QuarchPy?

When it comes to analyzing power data for your storage devices, we like to think QuarchPy is something of a savior when used in conjunction with our tools.

QuarchPy is a Python package designed to provide an easy-to-use API that will work seamlessly over any connection option: USB, Serial, and LAN. With it, you can create your own scripts for controlling Quarch devices – without having to worry about the low-level code involved with communication.

The package contains all prerequisites needed as a single PyPI project, which can be installed from the Python online repository using PIP or a downloaded local copy. This makes it easy to install and update, while also providing you with full access to the source code if you want to make changes or additions.

QuarchPy can also communicate with the device via QIS (Quarch Instrument Server), QPS (Quarch Power Studio), or simply using Python scripts. Both QIS and QPS are included with the QuarchPy package – they are ready to use (Java and drivers may also be needed).

Using QPS through QuarchPy

Quarch Power Studio (QPS) is a unique and powerful system for capturing and analyzing power data from storage devices using Quarch power modules. It can record and display live data for an unlimited time, then easily navigate through it, zooming in on the smallest details.

The software is built on the Quarch Instrument Server (QIS) platform. QuarchPy (Python) can be used to launch and control an instance of QPS allowing power data to be displayed on the screen while running tests on a drive. An example of this can be found in Application Notes AN0017 where the recording example script is used to draw drive power data along with IOPS/Temperature and custom annotations, all in real time.

Using QIS through QuarchPy

The Quarch Instrument Server hides the complexity of locating – and communicating with power modules. QIS buffers the large amounts of data received when ‘streaming’ from the device, making it easy for a Python (or similar) script to handle.

All communication with QIS is via a simple network socket. Users can create their own scripts using QuarchPy to talk to the device via QIS. This is slightly lower-level than automating with QPS, but since QPS is built on QIS, the process is similar. This script scans for devices, allows the user to select one, and opens a QIS connection to the device. The script can then run a stream while sending commands, such as changing the voltage output and recording the current.

Using QuarchPy

QuarchPy installs into Python 2.x and 3.x versions on both Windows and Linux (we recommend Python 3.x, and this will be assumed in the more recent application notes). Installation is normally via PIP [“pip install quarchpy”] but a local installer is also provided. QuarchPy allows the user to connect to all breaker / hot-swap modules, physical layer switches, and power modules. Scripts can be made in Python using QuarchPy where connecting to a device is made as simple as using a string – including the connection type and the serial number for the device you would like to connect to.

You can send commands and perform all kinds of tests. An example of this can be found in the application note AN-006 hot-plug example, where a function is made to power up and down a device multiple times to test how it copes, verifying the drive enumerates each time. We suggest to users that they download our application notes as a starting point for creating their own scripts using QuarchPy and encourage the development of more complex tests from these notes.

Commands for specific modules can be found in the technical manual for each product and are available for download on our website.

For a general overview of automation, see the Quarch Automation Manual.

For an overview of the Torridon system and its components, see the Torridon System Manual.


Register for a Quarch account

Stay up to date with the latest Technical Updates and News.

© 2026 Quarch Technology ltd SC307569
Web Design by: Purple Imp