Skip to main content

SSH JSONL messaging utilities for napari

Project description

Qt Remote Commands over SSH for napari Plugins

A Python package for executing remote processing tasks over SSH from napari plugins with Qt-based UIs.

Overview

This package enables napari plugins to offload computationally intensive image processing to remote servers via SSH. It provides:

  • Thread-safe SSH client for sending requests and transferring files
  • Qt widget integration for connection management UI
  • JSON-based request/response protocol for structured communication
  • Context manager API for safe resource handling

Installation

pip install qt-remote-commands-over-ssh-for-napari-plugins[client]

Use Case

When building napari plugins that need to process large images or run heavy computations, you can:

  1. Run a lightweight server script on a remote machine
  2. Send image data and processing parameters from the napari UI
  3. Receive processed results and display them as new layers

The package handles SSH connection pooling, file transfers (via scp), and thread synchronization so multiple UI operations can safely share a single connection.

Example

ee the included example which demonstrates:

  • A napari plugin that applies a gamma factor to images
  • Serializing numpy arrays and sending them to a remote server
  • Processing the data remotely and returning results
  • Adding processed images back to the napari viewer

The client sends image data over SSH, the server processes it, and results are transferred back and displayed—all while keeping the napari UI responsive through background threading.

Project details


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

If you're not sure about the file name format, learn more about wheel file names.

File details

Details for the file qt_remote_commands_over_ssh_for_napari_plugins-0.1.0.tar.gz.

File metadata

File hashes

Hashes for qt_remote_commands_over_ssh_for_napari_plugins-0.1.0.tar.gz
Algorithm Hash digest
SHA256 9677d2a97ffbe16da119e36510486dfe1cc7828bb921c74c60ec5b5b92dfe161
MD5 3a43488db7142631eecbe33a1cfb781c
BLAKE2b-256 137576a02693af746eefc41b85d8db22d73dbe0d22211cdc68a7de8d70b388ba

See more details on using hashes here.

Provenance

The following attestation bundles were made for qt_remote_commands_over_ssh_for_napari_plugins-0.1.0.tar.gz:

Publisher: ci-cd.yml on pnewstein/qt-remote-commands-over-ssh-for-napari-plugins

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file qt_remote_commands_over_ssh_for_napari_plugins-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for qt_remote_commands_over_ssh_for_napari_plugins-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 202e3cfd08e85f25c000630fb754c8778dc18129ffaa2760c5821d4181d75525
MD5 430d7680fa3f03d152f34cd93ff6e35b
BLAKE2b-256 1026d0203e12e2dc670c012d819abb810c92e18cc47cb4dfff4524e22bfaf50d

See more details on using hashes here.

Provenance

The following attestation bundles were made for qt_remote_commands_over_ssh_for_napari_plugins-0.1.0-py3-none-any.whl:

Publisher: ci-cd.yml on pnewstein/qt-remote-commands-over-ssh-for-napari-plugins

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page