napari-plugin-engine 0.2.0


pip install napari-plugin-engine

  Latest version

Released: Sep 17, 2021

Project Links

Meta
Author: napari team
Requires Python: >=3.6

Classifiers

Development Status
  • 4 - Beta

Intended Audience
  • Education
  • Science/Research

License
  • OSI Approved :: MIT License

Programming Language
  • Python
  • Python :: 3 :: Only
  • Python :: 3.6
  • Python :: 3.7
  • Python :: 3.8

Topic
  • Scientific/Engineering
  • Scientific/Engineering :: Visualization
  • Scientific/Engineering :: Information Analysis
  • Scientific/Engineering :: Bio-Informatics
  • Software Development :: Testing
  • Software Development :: Libraries
  • Utilities

Operating System
  • Microsoft :: Windows
  • POSIX
  • MacOS

napari plugin engine

License Build Status Docs Status codecov Python Version PyPI

napari-plugin-engine is a fork of pluggy, modified by the napari team.

There are some API and feature changes, including:

  • discovery via naming convention as well as entry_points
  • support for reordering of hook calls after registration.
  • enhanced API for retrieving plugin package metadata.
  • modified plugin call and registration exception handling
  • modified HookResult object and hook call loop, with ability to retrieve the HookImplementation responsible for the result.
  • lazy plugin discovery
  • some changes to variable and attribute naming
  • removed all deprecated code
  • type annotations on everything
  • pytest fixtures for testing
  • a couple napari-specific convenience imports

For usage overview and a reference for the napari-plugin-engine API, see our Documentation

(see also: the pluggy documentation)

install

pip install napari-plugin-engine

Usage

see documentation

Extras:
Dependencies:
importlib-metadata (>=1.5.0)