Skip to main content
Pre-release

This release is a pre-release and may not be stable for production use.

napari-listener

License MIT PyPI tests napari hub

Opens a socket to listen for commands to control napari from other processes. This can be useful for controlling napari programmatically from other applications, or for improving general OS integration (e.g. opening data from a file or UrL in a running instance of napari).


This napari plugin was generated with Cookiecutter using @napari's cookiecutter-napari-plugin template.

Installation

You can install napari-listener via pip:

pip install napari-listener

Usage

Once installed, napari-listener can be started from the napari > Plugins > Start Listening menu. You will see a new docked widget that displays the address and port for the listener.

The listener is a TCP server that expects app-model command IDs. It will execute any valid app-model command, but napari-listener registers its own additional commands for demonstration purposes in https://github.com/aganders3/napari-listener/blob/main/src/napari_listener/_actions.py.

You can test napari-listener using a TCP client such as netcat or curl to send an app-model command (and optional args). For example:

% nc 127.0.0.1 40256 <<< "napari:open-file /path/to/local/file"
quick demo of napari-listener

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-listener" is free and open source software

Issues

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

Metadata

Release files for napari-listener 0.1.0b1.post1

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-listener 0.1.0b1.post1
File Size Uploaded Provenance
napari-listener-0.1.0b1.post1.tar.gz 518.0 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for napari-listener 0.1.0b1.post1
File Interpreter ABI Platform
napari_listener-0.1.0b1.post1-py3-none-any.whl Python 3 none any Details

Total release size: 525.9 kB

Release files / napari-listener-0.1.0b1.post1.tar.gz

Download URL napari-listener-0.1.0b1.post1.tar.gz
Size 518.0 kB
Tags Source
SHA-256 checksum
How to use checksums
4a97878e25ae9862fef8acf90072eb2046035fa110845e5e8f904d76621f50cf
BLAKE2b-256 checksum
How to use checksums
55226528b01b40bec1f2b0f7e658f9148bea3b22b2f8f8720ae17b2bcf180b39
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.11.2

Release files / napari_listener-0.1.0b1.post1-py3-none-any.whl

Download URL napari_listener-0.1.0b1.post1-py3-none-any.whl
Size 7.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
603f5827b478586103e3b3c60dee91c344ac78214585219107906d2ae95726f8
BLAKE2b-256 checksum
How to use checksums
18c7660fc4906e3eaebbac8fc2c8730694aa5ad40a99a713cd738b180a3d5637
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.11.2

Security for napari-listener 0.1.0b1.post1

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.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

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