Skip to main content

npe2 - napari plugin engine version 2

CI codecov

Project description

The napari plugin engine version 2, npe2 extends the functionality of napari's core. The plugin ecosystem offers user additional functionality for napari as well as specific support for different scientific domains.

This repo contains all source code and documentation required for defining, validating and managing plugins for napari.

Getting started

The napari plugin docs landing page offers comprehensive information for plugin users and for plugin developers.

Plugin users

For plugin users, the docs include information about:

Plugin developers

For plugin developers, the docs cover topics like:

Try the napari plugin template to streamline development of a new plugin.

Installation

The npe2 command line tool can be installed with pip or conda, but will already be installed as a dependency if you have napari installed.

Using pip

  1. Create and activate a virtual environment.

If you are new to using virtual environments, visit our virtual environments guide.

```bash
python3 -m venv .venv
source .venv/bin/activate
```
  1. Install npe2.

    pip install npe2
    
  2. Test your installation.

    npe2 --help
    

Using conda

  1. Create and activate a virtual environment.

    conda create -n npe-test -c conda-forge python=3.12
    conda activate npe-test
    
  2. Install npe2.

    conda install npe2
    
  3. Test your installation.

    npe2 --help
    

Usage

The command line tool npe2 offers the following commands:

cache      Cache utils
compile    Compile @npe2.implements contributions to generate a manifest.
convert    Convert first generation napari plugin to new (manifest) format.
fetch      Fetch manifest from remote package.
list       List currently installed plugins.
parse      Show parsed manifest as yaml.
validate   Validate manifest for a distribution name or manifest filepath.

Examples

List currently installed plugins:

npe2 list

Compile a source directory to create a plugin manifest:

npe2 compile PATH_TO_SOURCE_DIRECTORY

Convert current directory to an npe2-ready plugin (note: the repo must also be installed and importable in the current environment.):

npe2 convert .

Validate a plugin package. For example, a plugin named your-plugin-package:

npe2 validate your-plugin-package

Show a parsed manifest of your plugin:

npe2 parse your-plugin-package

License

npe2 uses the BSD License.

History

This repo replaces the initial napari plugin engine v1. See also https://github.com/napari/napari/issues/3115 for motivation and technical discussion about the creation of v2.

Contact us

Visit our community documentation or open a new issue on this repo.

Metadata

Release files for npe2 0.10.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 npe2 0.10.2
File Size Uploaded Provenance Actions
npe2-0.10.2.tar.gz 138.6 kB Without provenance Details for npe2-0.10.2.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for npe2 0.10.2
File Interpreter ABI Platform Actions
npe2-0.10.2-py3-none-any.whl Python 3 none any Details for npe2-0.10.2-py3-none-any.whl

Total release size: 236.4 kB

Release files / npe2-0.10.2.tar.gz

Download URL npe2-0.10.2.tar.gz
Size 138.6 kB
Tags Source
SHA-256 checksum
How to use checksums
2eeec4a379f96a8a106801808aa710ff071c5de80a3b7b52d76b4219903466cf
BLAKE2b-256 checksum
How to use checksums
ea6fe2f1f82693793dbe123adfd35ca76b40d14cbc3b4823e259e03108151ea1
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.15.1

Release files / npe2-0.10.2-py3-none-any.whl

Download URL npe2-0.10.2-py3-none-any.whl
Size 97.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
98adf80167f53a0a34bb7ae7e4607380bda2617e98e216986035d9e5028777b2
BLAKE2b-256 checksum
How to use checksums
ef1a4b90fa12d2880a7e06fc525d1f34540511c9627615c6c219e60579d87719
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.15.1

Security for npe2 0.10.2

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.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.10.2 This release

2 release files No provenance

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