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.0.tar.gz.

File metadata

File hashes

Hashes for qt_remote_commands_over_ssh_for_napari_plugins-0.2.0.tar.gz
Algorithm Hash digest
SHA256 6a136a9bb746ce6131e0997fb5bd14ac661e82245914acce387c7034070fa058
MD5 291f18ebc79f42a119729bf11440b1f1
BLAKE2b-256 6455d194ae4d96dee2b504cb002942ecc2672569863d37c1886dc53d1a0be8b8

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.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.2.0-py3-none-any.whl.

File metadata

File hashes

Hashes for qt_remote_commands_over_ssh_for_napari_plugins-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 d652f013e5fb74eea109223394194f400a0a8555b94506c8b66b860604c9c220
MD5 33fdd02cea916b17e4601ea0d3c642af
BLAKE2b-256 84a2579b019ec1ee6c5e47b7b6f666da4d0ec35e3af65e091abdd72cc2de44c6

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.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