Skip to main content

A plugin to send and receive multi-dimensional image data for visualization in Napari over the network.

Project description

napari-stream

License MIT PyPI Python Version codecov napari hub npe2 Copier

A plugin to send and receive multi-dimensional image data for visualization in Napari over the network.

napari-stream lets you push images from any application, process, or codebase into a running napari instance—even from another machine. It can automatically pull array-like data (NumPy, PyTorch tensors, zarr arrays, etc.) from nested Python lists and dicts, so you can stream complex structures without manual extraction. You can keep things private (local IPC/loopback) or make the receiver reachable publicly over TCP. The receiver endpoint can also be set via the NAPARI_STREAM_ENDPOINT environment variable.

Quick usage

from napari_stream.sender import StreamSender, send
import numpy as np

# Option 1: explicit sender (recommended when reusing across many sends)
sender = StreamSender(endpoint="tcp://192.0.2.10:5556")  # or leave None to use NAPARI_STREAM_ENDPOINT/default
sender.send(np.random.rand(256, 256), name="image")

# Option 2: convenience function; pass connection kwargs through
send(np.random.rand(64, 64), name="quick", endpoint="tcp://127.0.0.1:5556")

On the receiving side, open the napari dock widget, choose your endpoint, and toggle public access if you want to accept connections from other machines.

Installation

You can install napari-stream via pip:

pip install napari-stream

If napari is not already installed, you can install napari-stream with napari and Qt via:

pip install "napari-stream[all]"

Contributing

Contributions are very welcome. Tests can be run with tox, please ensure the coverage at least stays the same before you submit a pull request.

License

Distributed under the terms of the MIT license, "napari-stream" is free and open source software

Issues

If you encounter any problems, please [file an issue] along with a detailed description.

Acknowledgments

    

This repository is developed and maintained by the Applied Computer Vision Lab (ACVL) of Helmholtz Imaging and the Division of Medical Image Computing at DKFZ.

This repository was generated with copier using the napari-plugin-template.

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

napari_stream-0.1.1.tar.gz (23.7 kB view details)

Uploaded Source

Built Distribution

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

napari_stream-0.1.1-py3-none-any.whl (17.2 kB view details)

Uploaded Python 3

File details

Details for the file napari_stream-0.1.1.tar.gz.

File metadata

  • Download URL: napari_stream-0.1.1.tar.gz
  • Upload date:
  • Size: 23.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for napari_stream-0.1.1.tar.gz
Algorithm Hash digest
SHA256 86c2e587dfacf2c7708fa0cc5f4e8e795c71db8f7c68f1305ed6093ae4ef8abb
MD5 ce008f930748834bd09aa90e3564e7f4
BLAKE2b-256 73ba9a2978d57a200b9dbc719db1cfd03c36ecd1d30f78e936a968c6c2558dd6

See more details on using hashes here.

Provenance

The following attestation bundles were made for napari_stream-0.1.1.tar.gz:

Publisher: test_and_deploy.yml on MIC-DKFZ/napari-stream

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

File details

Details for the file napari_stream-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: napari_stream-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 17.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for napari_stream-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 a000bb319665d09c542cbc172236f663169284048baad70e4a47b4e35074395d
MD5 cd76d07ac92a7f6925b603528bb40a17
BLAKE2b-256 42f96813fa0e7f471efcd152f1d830bc568895c2cc83d8bdf683cd3b575c379c

See more details on using hashes here.

Provenance

The following attestation bundles were made for napari_stream-0.1.1-py3-none-any.whl:

Publisher: test_and_deploy.yml on MIC-DKFZ/napari-stream

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