logic2-automation
Library for using the Saleae Logic 2 Automation API
What it is and what it does
logic2-automation is a gRPC-based Python client for the Saleae Logic 2 Automation API, allowing you to control Logic 2 hardware analyzers programmatically. It wraps the Automation API's protocol buffer definitions and exposes them as a Python interface, letting you capture digital signals, configure analyzers, and retrieve results without manual interaction with the Logic 2 GUI.
The package depends on grpcio, protobuf, and pywin32, and has experienced a complex history of protobuf/gRPC version compatibility issues that the maintainers have worked to stabilize. It is actively maintained and supports current Python versions (3.7+), making it suitable for automation workflows that integrate hardware analysis into larger test or measurement systems.
Use it for:
- Automate digital signal capture and analysis in continuous integration or test pipelines using Saleae Logic 2 hardware.
- Build custom measurement or debugging tools that programmatically control Logic 2 analyzers without GUI interaction.
- Integrate protocol decoding and signal analysis into data acquisition or embedded systems validation workflows.
- Script batch analysis of multiple captured signals or configure analyzer settings dynamically based on test parameters.
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
Python client library for controlling Saleae Logic 2 hardware analyzers via the Automation API, enabling programmatic capture and analysis of digital signals.
Yes, if you own Saleae Logic 2 hardware and need to automate signal capture and analysis in Python. The package is actively maintained, has low install friction, and no known vulnerabilities. Verify the license before use in proprietary contexts. Be aware that protobuf/gRPC compatibility has been a historical issue; test with your specific dependency versions before deploying to production.
Install
logic2-automation on PyPI
pip
pip install logic2-automationuv
uv add logic2-automationpoetry
poetry add logic2-automationInstalling logic2-automation
Before you install
Low friction installation with a pure-Python wheel. Maintenance is active with recent releases; however, the changelog shows a history of protobuf/gRPC compatibility issues that have been addressed but may resurface if dependency versions diverge.
License in practice
License treatment is unclear—no SPDX identifier or raw license text is available in the package metadata. Verify the actual license at the repository before use in proprietary or restricted contexts.
Quickstart
pip install logic2-automation
import logic2_automation
# Create a client and connect to Logic 2 Automation API
client = logic2_automation.LogicClient()
Requires Python >=3.7 and a running Saleae Logic 2 application with Automation API enabled; pywin32 dependency is Windows-specific.
Verify before relying
- Exact API surface and supported analyzer operations beyond what the excerpt describes.
- Whether gRPC port configuration (added in 1.0.7) is documented and stable.
- Current state of protobuf/gRPC version pinning and whether compatibility issues have been fully resolved.
Package facts
| License | not declared (unclear) |
| Python support | supports the current Python release (>=3.7) |
| Install friction | low — pure-Python wheel |
| Runtime dependencies | 3 — grpcio, protobuf, pywin32 |
| Maintenance | actively maintained — 269 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 171,260/month — #10,375 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: logic2_automation-1.0.11-py3-none-any.whl
Tags
More Software Development packages
Provides backported and experimental type hints…
permissive · top 100 on PyPI
numpyNumPy provides an N-dimensional array object…
permissive · top 100 on PyPI
fastapiFastAPI is a Python web framework for building…
permissive · top 100 on PyPI
annotated-docProvides a way to document function parameters,…
permissive · top 100 on PyPI
typerTyper builds command-line applications from…
permissive · top 1,000 on PyPI
distlibDistlib provides low-level packaging utilities…
permissive · top 1,000 on PyPI
qm-octaveSDK for controlling Quantum Machine's Octave…
permissive · top 15,000 on PyPI
protoc-gen-openapiv2Generates Python support code for gRPC Gateway…
permissive · top 5,000 on PyPI
opentelemetry-exporter-otlp-proto-grpcExports telemetry data from Python applications…
permissive · top 1,000 on PyPI
grpc-gateway-protoc-gen-openapiv2Generates Python support code for gRPC Gateway…
permissive · top 15,000 on PyPI
smg-grpc-protoProvides pre-compiled Python gRPC stubs for…
permissive · top 5,000 on PyPI
aristaprotoGenerates Python gRPC stubs and message classes…
permissive · top 15,000 on PyPI
grpclibgrpclib is a pure-Python asyncio-based…
permissive · top 1,000 on PyPI
grpcio-toolsGenerates Python gRPC service stubs and message…
permissive · top 1,000 on PyPI
grpcio-reflectionEnables gRPC Python services to expose runtime…
permissive · top 5,000 on PyPI
grpcio-statusProvides Python protobuf definitions for…
permissive · top 100 on PyPI