Python interface to the caenhv-client GUI: fire/raise the application from other Python projects (e.g. labscript BLACS)
Project description
caenhv-client-python
Python interface to the caenhv-client GUI (CAEN HV control with channel linking). Zero dependencies; the GUI itself is distributed as a standalone executable.
The only capability is firing the GUI — raise its window if running, launch it otherwise — over a tiny local IPC protocol. There is deliberately no remote control of HV settings.
from caenhv_client_python import fire_gui, notify_gui
fire_gui() # raise the window if running, otherwise launch the GUI
notify_gui() # raise only; returns False if the GUI is not running
Remote hosts: with fire_gui(host="hv-pc", port=50251) (or
CAENHV_CLIENT_REMOTE=hv-pc:50251) the show request goes over TCP to a GUI
on another machine. The GUI must enable its listener
(CAENHV_CLIENT_TCP_PORT=50251, optional CAENHV_CLIENT_TCP_BIND /
CAENHV_CLIENT_TCP_TOKEN) and must already be running there — remote
launch is impossible, so auto-start the GUI at login on that host. This
channel can only show/raise the window, never change HV state.
Configuration via environment variables:
CAENHV_CLIENT_COMMAND— path (or command line) of the caenhv-client executable, used when it is not onPATH.CAENHV_CLIENT_IPC_NAME— IPC server name (defaultcaenhv-client), must match the GUI's setting when overridden.CAENHV_CLIENT_REMOTE—host:portof a remote GUI's TCP listener.CAENHV_CLIENT_TCP_TOKEN— shared token when the remote listener requires one.
Works from any Python process, including labscript BLACS tabs and workers; no Qt required (a Unix-socket / named-pipe transport is used, with PyQt5 as an optional fallback).
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file caenhv_client_python-0.2.0.tar.gz.
File metadata
- Download URL: caenhv_client_python-0.2.0.tar.gz
- Upload date:
- Size: 5.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2545914875b4b2d3955281ce6024828e6e1d2bd6a9e7dcdcbbd218df25ea33ae
|
|
| MD5 |
6dd2961a2aef96d203092fd9e92e8552
|
|
| BLAKE2b-256 |
239c1537d8b7494fc188dc9ffa958d21ec244202beadef9efea24f70ff8d3e2f
|
Provenance
The following attestation bundles were made for caenhv_client_python-0.2.0.tar.gz:
Publisher:
publish-python.yml on kenji0923/caenhv-client
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
caenhv_client_python-0.2.0.tar.gz -
Subject digest:
2545914875b4b2d3955281ce6024828e6e1d2bd6a9e7dcdcbbd218df25ea33ae - Sigstore transparency entry: 2080791038
- Sigstore integration time:
-
Permalink:
kenji0923/caenhv-client@c098bf56daa7721d4d9af62d4080eb82143cbd63 -
Branch / Tag:
refs/tags/py-v0.2.0 - Owner: https://github.com/kenji0923
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish-python.yml@c098bf56daa7721d4d9af62d4080eb82143cbd63 -
Trigger Event:
push
-
Statement type:
File details
Details for the file caenhv_client_python-0.2.0-py3-none-any.whl.
File metadata
- Download URL: caenhv_client_python-0.2.0-py3-none-any.whl
- Upload date:
- Size: 6.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
dc787ed511adf4632b7c596c79dc7a3d7ddebfd28a8cd6980ea5c04e84e43465
|
|
| MD5 |
263f9d960c467567e167492befe6cab3
|
|
| BLAKE2b-256 |
06f451df228ac742bb52e931bf5a6557abde48ed8074b3d6d7a831e8a80451d0
|
Provenance
The following attestation bundles were made for caenhv_client_python-0.2.0-py3-none-any.whl:
Publisher:
publish-python.yml on kenji0923/caenhv-client
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
caenhv_client_python-0.2.0-py3-none-any.whl -
Subject digest:
dc787ed511adf4632b7c596c79dc7a3d7ddebfd28a8cd6980ea5c04e84e43465 - Sigstore transparency entry: 2080791191
- Sigstore integration time:
-
Permalink:
kenji0923/caenhv-client@c098bf56daa7721d4d9af62d4080eb82143cbd63 -
Branch / Tag:
refs/tags/py-v0.2.0 - Owner: https://github.com/kenji0923
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish-python.yml@c098bf56daa7721d4d9af62d4080eb82143cbd63 -
Trigger Event:
push
-
Statement type: