pylink-square
Python interface for SEGGER J-Link.
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-squareuv
uv add pylink-squarepoetry
poetry add pylink-squareInstalling 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
More Build Tools packages
Provides reusable utilities for Python…
permissive · top 100 on PyPI
tqdmWraps any iterable to display a real-time…
copyleft · top 100 on PyPI
pippip is the standard installer for Python…
permissive · top 100 on PyPI
hatchlingHatchling is a standards-compliant Python build…
permissive · top 100 on PyPI
grpcio-toolsGenerates Python gRPC service stubs and message…
permissive · top 1,000 on PyPI
pre-commitpre-commit is a framework for installing and…
permissive · top 1,000 on PyPI
isystem.connectProvides Python bindings to control winIDEA and…
unclear · top 15,000 on PyPI
spsdk-mcu-linkA plugin for SPSDK that adds support for NXP…
permissive · top 15,000 on PyPI
pyocdpyOCD is a Python-based debugger and programmer…
permissive · top 5,000 on PyPI
pypemicroProvides a Python interface to PEMicro debug…
permissive · top 15,000 on PyPI
pyocd-pemicroA PyOCD plugin that adds support for PEMicro…
permissive · top 15,000 on PyPI
tockloaderTockloader is a command-line tool for…
unclear · top 15,000 on PyPI
PyLinkPyLink provides a unified file-like interface…
permissive · top 15,000 on PyPI
membrowseAnalyzes binary size and memory footprint of…
unclear · top 15,000 on PyPI
esptoolesptool is a serial utility for flashing,…
copyleft · top 5,000 on PyPI
rpy2rpy2 embeds R within Python, allowing you to…
copyleft · top 15,000 on PyPI