Skip to main content

Alt text


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.

Metadata

Release files for napari-stream 0.1.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for napari-stream 0.1.2
File Size Uploaded
napari_stream-0.1.2.tar.gz 222.0 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for napari-stream 0.1.2
File Interpreter ABI Platform
napari_stream-0.1.2-py3-none-any.whl Python 3 none any Details

Total release size: 239.2 kB

Release files / napari_stream-0.1.2.tar.gz

Download URL napari_stream-0.1.2.tar.gz
Size 222.0 kB
Tags Source
SHA-256 checksum
How to use checksums
585e8e8633ce985321006490bb6a5b93d9c8328c8cb686b4087dd0c5710d14e3
BLAKE2b-256 checksum
How to use checksums
dcfaac25677330310e267d5df96c661fd40177a1c6080d5093cd5de3180fa7ae
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.7

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Dec 19, 2025.

Transparency log

Release files / napari_stream-0.1.2-py3-none-any.whl

Download URL napari_stream-0.1.2-py3-none-any.whl
Size 17.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
085520d25fda45c67ed234cc4783be98869488486687c61f43e1bd9cb3384baf
BLAKE2b-256 checksum
How to use checksums
f99e77af3fe8151a8d9a94968ea2e9635e6a2d13f70e5ab140b402e29c3bbfe0
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.7

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Dec 19, 2025.

Transparency log

Release history Release notifications | RSS feed

This release

0.1.2 This release

2 release files

0.1.1

2 release files

0.1.0

2 release files

0.0.9

2 release files

0.0.8

2 release files

0.0.5

2 release files

0.0.4

2 release files

0.0.3

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page