Skip to main content

View and edit layer metadata

Project description

napari-metadata

License BSD-3 PyPI Python Version tests codecov napari hub

napari-metadata is a [napari] plugin that visually exposes the functionality of napari's handling of layer metadata by directly connecting with the public API of napari layers.

[!NOTE] This plugin is in active development. You should not depend on any API, as it is likely to change. Instead, understand that this plugin intends to serve as a GUI to manage already available public API of napari layers. If you find a feature of this plugin useful, but it is not available in napari's core API, please consider opening an issue here or in the napari repository.

Installation

You can install napari-metadata via pip:

pip install napari-metadata

Usage

This plugin adds a dock widget to napari that allows you to view and edit metadata for each layer in your napari viewer. The widget is intended to be used in the typical vertical widget layout and additionally is designed to work great in a horizontal layout.

horizontal layout of metadata widget

File Metadata

The File Metadata section displays metadata related to the source of the layer, such as name, shape, dtype, and file size. All information except layer name is read-only.

Axes Metadata

The Axes Metadata section allows you to view and edit metadata related to the axes of the layer, such as axis labels, transforms, scales, and units. You can modify these properties directly in the widget, and the changes will be reflected in the layer, and visa versa.

[!TIP] Layers can be linked using the napari layer context menu Link Layers. When axes metadata is changed in the widget, all linked layers will update their axes metadata accordingly.

Axes Inheritance

The Axes Inheritance widget can be used to propagate axes metadata from one layer to other layers. Select a template layer from the dropdown, and apply any axes metadata with checked boolean boxes to the currently active layer and any linked layers.

Contributing

Contributions are very welcome. Fork or clone this repository directly and install in editable mode for development:

pip install -e . --group dev

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 [BSD-3] license, "napari-metadata" is free and open source software

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_metadata-0.1.1.tar.gz (4.3 MB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

napari_metadata-0.1.1-py3-none-any.whl (27.2 kB view details)

Uploaded Python 3

File details

Details for the file napari_metadata-0.1.1.tar.gz.

File metadata

  • Download URL: napari_metadata-0.1.1.tar.gz
  • Upload date:
  • Size: 4.3 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for napari_metadata-0.1.1.tar.gz
Algorithm Hash digest
SHA256 62841c6f379912ee6fab2fb27df4d14015632791223e6896259c0eefaf0042d3
MD5 5c6c44468562349aee9318c7b862c029
BLAKE2b-256 e16c9f4c45661a3c5832005580c5896fe9a88a0cba7fb133b926e5acf1912eac

See more details on using hashes here.

Provenance

The following attestation bundles were made for napari_metadata-0.1.1.tar.gz:

Publisher: test_and_deploy.yml on napari/napari-metadata

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file napari_metadata-0.1.1-py3-none-any.whl.

File metadata

File hashes

Hashes for napari_metadata-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 465ab9d8eb5630dbd3b10ab9d5af0d4d7a7ae7657447160268afe32584574df9
MD5 882c5c0b0a892878ffb7940008369e22
BLAKE2b-256 307626dd368528918e323cc36f9b479797414af682298015e1a4ff2fda924635

See more details on using hashes here.

Provenance

The following attestation bundles were made for napari_metadata-0.1.1-py3-none-any.whl:

Publisher: test_and_deploy.yml on napari/napari-metadata

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

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