Skip to main content

Command line utilities for inspecting and validating plugins for the napari hub

Project description

napari-hub-cli

Command line utilities for inspecting and validating plugins for the napari hub.

Installation

From your console, you can install the napari hub CLI through pip

$ pip install napari-hub-cli

Usage

Metadata

This package provides two utilities for previewing and validating the metadata we will inspect from your plugin and display on the napari hub.

Previewing Metadata

$ napari-hub-cli preview-metadata /tmp/example-plugin

or

# display one field at a time and wait for input
$ napari-hub-cli preview-metadata /tmp/example-plugin -i

This utility will inspect the plugin at the given path for metadata and display it for preview.

Each field of metadata is accompanied by the file and attribute where it was found. When fields are missing, they are accompanied instead by a suggested source. When a field is sourced from setup.py, it is always an argument to the setup method.

Version - Depending on how you manage versioning for your package, we may not be able to parse its latest version. The version of your package displayed on the napari hub will always be the latest version released on PyPI.

Project Site - If your url or Project Site metadata is a GitHub url, it will be displayed as the Source Code field instead.

Example output:

--------------------------------------------------------------------------------
Authors
--------------------------------------------------------------------------------
Draga Doncila Pop
        ------
        Source
        ------
        /setup.cfg: metadata, author

--------------------------------------------------------------------------------
Description
--------------------------------------------------------------------------------
This is my napari-hub specific description. It is detailed, and comprehensive.
        ------
        Source
        ------
        /.napari/DESCRIPTION.md

--------------------------------------------------------------------------------
Source Code
--------------------------------------------------------------------------------
https://github.com/DragaDoncila/example-plugin
        ------
        Source
        ------
        /.napari/config.yml: project_urls, Source Code

--------------------------------------------------------------------------------
Summary
--------------------------------------------------------------------------------
~~Not Found~~
        ------
        Suggested Source
        ------
        /setup.cfg: metadata, summary

--------------------------------------------------------------------------------
User Support
--------------------------------------------------------------------------------
https://github.com/DragaDoncila/example-plugin/issues
        ------
        Source
        ------
        /.napari/config.yml: project_urls, User Support

You can then use check-metadata to get a display of just the missing metadata. See Customizing Your Plugin Listing for a detailed guide on how you can add this metadata to your project.

Checking Missing Metadata

$ napari-hub-cli check-missing /tmp/example-plugin

or

# display one field at a time and wait for input
$ napari-hub-cli check-missing /tmp/example-plugin -i

This utility will only display the metadata missing from your plugin, and will also suggest where you can add it. All metadata listed here will be displayed on your plugin's napari hub page. When this metadata might also be used for sorting, filtering or searching for plugins, this information is also displayed.

Example output:

--------------------------------------------------------------------------------
MISSING: Twitter
--------------------------------------------------------------------------------
        SUGGESTED SOURCE:       /.napari/config.yml: project_urls, Twitter

--------------------------------------------------------------------------------
MISSING: Summary
--------------------------------------------------------------------------------
        SUGGESTED SOURCE:       /setup.cfg: metadata, summary
        ------
        Used For
        ------
        Searching

For more information on how you can add metadata to your package, and how we use it on the napari hub, check out Customizing Your Plugin Listing.

Code of Conduct

This project adheres to the Contributor Covenant code of conduct. By participating, you are expected to uphold this code. Please report unacceptable behavior to opensource@chanzuckerberg.com.

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-hub-cli-0.0.3.tar.gz (17.7 kB view details)

Uploaded Source

Built Distribution

napari_hub_cli-0.0.3-py3-none-any.whl (19.1 kB view details)

Uploaded Python 3

File details

Details for the file napari-hub-cli-0.0.3.tar.gz.

File metadata

  • Download URL: napari-hub-cli-0.0.3.tar.gz
  • Upload date:
  • Size: 17.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.25.1 setuptools/46.4.0 requests-toolbelt/0.9.1 tqdm/4.61.0 CPython/3.8.8

File hashes

Hashes for napari-hub-cli-0.0.3.tar.gz
Algorithm Hash digest
SHA256 992e9295e44fa03aa8e76c95913da65f913fdc7b8deb1af8bb869f84b91dad69
MD5 3acfb1d5f52b28e81fa9fa385971935a
BLAKE2b-256 f464cb680308bd79f2c92bd452712860f158f0df2d54b7865b7ca3270816a3a9

See more details on using hashes here.

File details

Details for the file napari_hub_cli-0.0.3-py3-none-any.whl.

File metadata

  • Download URL: napari_hub_cli-0.0.3-py3-none-any.whl
  • Upload date:
  • Size: 19.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.25.1 setuptools/46.4.0 requests-toolbelt/0.9.1 tqdm/4.61.0 CPython/3.8.8

File hashes

Hashes for napari_hub_cli-0.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 bdeb32dac5c1665e4deca1e0ef89e493d04e2a65c460fd4ab63312eb52b56934
MD5 6edfd956099f1a87ee0e55ffe7c5efe1
BLAKE2b-256 e1d96122a2a913479200845c6b3a5ecefd24a0e3ea1808c7a6286615ff41186e

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page