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

See 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.2.2.tar.gz.

File metadata

File hashes

Hashes for qt_remote_commands_over_ssh_for_napari_plugins-0.2.2.tar.gz
Algorithm Hash digest
SHA256 66c02fa34759bf29e89da58bc05c5ca808312d72c65e90354cbaa25a97e329c2
MD5 ad579630f2489126fd8afc734ebba0ea
BLAKE2b-256 fe37fbb6df7b16664ea8780dcf9ea06d95f585b9f11afbd29f5843e6a3d935bc

See more details on using hashes here.

Provenance

The following attestation bundles were made for qt_remote_commands_over_ssh_for_napari_plugins-0.2.2.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.2.2-py3-none-any.whl.

File metadata

File hashes

Hashes for qt_remote_commands_over_ssh_for_napari_plugins-0.2.2-py3-none-any.whl
Algorithm Hash digest
SHA256 501300b0da3f3c967f1766065055883cb2a3b7ddeac05449e5343d342b3705a5
MD5 7b1f3f61c39fe55f9f66773965f4b640
BLAKE2b-256 61b50b6130c51f06f7a9ee12a6ad9b11c91e634568f5916a795856b554af023e

See more details on using hashes here.

Provenance

The following attestation bundles were made for qt_remote_commands_over_ssh_for_napari_plugins-0.2.2-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