skillfed

pylink-square

Python interface for SEGGER J-Link.

pylink-square v2.0.1 1.8M downloads/30d#3,542 on PyPI425
Permissive license Apache 2.0 Active released

What it is and what it does

pylink-square is a Python wrapper around the SEGGER J-Link native library, enabling programmatic control of J-Link debug probes from Python code. It abstracts the low-level C API into a Pythonic interface for tasks like connecting to embedded devices, flashing firmware, and resetting targets. The package depends on psutil and six for cross-platform compatibility and system introspection.

The library is designed for embedded systems developers and automation engineers who need to script J-Link operations—such as batch firmware deployment or integration into CI/CD pipelines. It requires the SEGGER J-Link Tools to be installed separately on the host system; pylink-square acts as a bridge between your Python code and that native toolchain.

Use it for:

  • Automate firmware flashing across multiple embedded devices in a manufacturing or testing environment.
  • Integrate J-Link operations into CI/CD pipelines for automated device testing and deployment.
  • Build custom debugging or diagnostic tools that programmatically interact with ARM-based microcontrollers.
  • Script device reset and connection sequences for batch testing or validation workflows.
  • Create Python-based test harnesses that need to control J-Link probes without manual intervention.

Worth the install?

AI-flagged interpretation of the facts on this page — verify before relying

Provides a Python interface to control SEGGER J-Link debug probes for embedded systems programming, including flashing firmware and device communication.

Yes. The package is actively maintained, has no known vulnerabilities, low install friction, and a permissive license. Install it if you need to automate or script SEGGER J-Link operations from Python. The main prerequisite is having SEGGER J-Link Tools >= 6.0b installed separately on your system; without that external dependency, the package cannot function.

Install

pylink-square on PyPI

pip

pip install pylink-square

uv

uv add pylink-square

poetry

poetry add pylink-square

Installing pylink-square

Before you install

Low friction installation with only two lightweight runtime dependencies (psutil and six). Repository is actively maintained with recent commits and no known vulnerabilities.

License in practice

Licensed under Apache 2.0 (permissive), allowing commercial and private use with minimal restrictions; you must retain license notices in distributions.

Quickstart

import pylink

jlink = pylink.JLink()
jlink.open('123456789')
jlink.connect('device', verbose=True)
jlink.flash(firmware, 0x0)
jlink.reset()

Requires SEGGER J-Link Tools >= 6.0b to be installed separately on your system; the native library (libjlinkarm.so/.dylib/JLinkARM.dll) must be discoverable via system library paths or explicitly configured.

Verify before relying

  • Whether the package works with Python versions between 3.0 and 3.7 (requires_python says >=3.0 but description says >=3.7)
  • Current test coverage and whether functional tests are regularly run in CI
  • Support status for J-Link Tools versions newer than 6.0b

Package facts

License Apache 2.0 (permissive)
Python support supports the current Python release (>=3.0)
Install friction low — pure-Python wheel
Runtime dependencies 2 — psutil, six
Maintenance actively maintained — 163 days since the last release
Last repo commit
First released
Downloads 1,801,278/month — #3,542 on PyPI (30-day window, as of 2026-08-14)
Known vulnerabilities none known (OSV.dev, checked 2026-08-14)

Evidence: pylink_square-2.0.1-py3-none-any.whl

Keywords: SEGGER, J-Link

Tags

j-link python interfacesegger jlink controlembedded device flashingdebug probe automationfirmware programming toolarm embedded debuggingjlink device connection
embedded-systemshardware-debuggingautomation

More Build Tools packages