Skip to main content

Modular annotator building framework in Python

Project description

Metanno

Tests Documentation PyPI metanno DOI


Metanno is a Python library built on top of the Pret framework for building dynamic, customizable annotation interfaces.

Who is it for? Research groups, clinical NLP and biomedical teams, data labeling squads, and anyone who wants custom and interactive annotation tools without wrestling with JavaScript.

Metanno currently focuses on text and images with richly structured entities. Its goals are:

  • Modularity: show your data from multiple synchronized angles. For example, highlight entities over text or images while editing the same rows in a table.
  • Python‑first UI: write the entire app in Python; it renders to a fast React UI under the hood.
  • Interactivity: handle annotations as plain Python objects at any time, so you can create, inspect, and transform them programmatically.

Features

Annotate anything

In addition to the Pret ecosystem component suite, Metanno provides components for common annotation views:

  • AnnotatedText: display text with highlighted, nestable spans
  • AnnotatedImage: draw shapes (boxes, polygons, etc.) over images.
  • Table: an editable, filterable spreadsheet‑style grid for inspecting and editing annotations.

You can compose these views of the same underlying annotations to get a better grasp of the data you are annotating or inspecting.

Run it your way

Use Metanno in two modes:

  • Standalone app: run a server and use it in your browser.
  • JupyterLab widgets: embed components directly in notebooks, with no extra ports or separate server process.

Develop and test in a notebook. If you prefer, you can also run it as a standalone app.

Easy setup

pip install metanno==1.0.0-beta.6

To use it with Jupyter, if you install the library in a custom environment (conda, venv, or other), you will likely need to tell Jupyter where to find the front-end files. You can do this by running the following command (only once):

pret update-jupyter-config --apply

Unlike other alternatives, Metanno requires no additional ports and no separate server process when used in JupyterLab. Write your app in Python and benefit from a fast React front end under the hood.

Interactive and customizable by design

  • Inspect and edit application state directly from Python.
  • Update the UI from Python; execute a notebook cell to see changes immediately.
  • Register event handlers for clicks, hovers, keystrokes, and more.

Why another annotation software?

Tool choice shapes both the annotation scheme and the workflow. In many out‑of‑the‑box tools, tasks like annotating implicit or document‑level entities, working across multiple documents at once, or coordinating multiple views can be difficult or unsupported. There are many available solutions (see Neves et al.). However, most of these are either proprietary, poorly adapted to document or multi-document annotation, require a complex installation that is not compatible with existing strict remote computing environments, or are difficult to customize.

Metanno takes a different approach: a modular, Python‑first framework that adapts to your schema and to your annotation process, instead of forcing you into fixed layers or rigid UIs.

Demo

Check out the demos!

Todo

  • add basic app samples
  • add a documentation
  • add more table column types and renderers (numerical, dates, ...)
  • add customizable column filterers
  • add relations visualizations and edition with editable arrows
  • add an image annotation view
  • finish javascript to typescript conversion
  • customizable undo / redo logic
  • add multi-cell editing (see a react-data-grid PR)
  • add a test suite (Cypress ?)
  • make a standalone version (without Jupyter)

Contribute

Any contribution is welcome, feel free to open a PR.

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

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

metanno-1.0.0b6-py3-none-any.whl (370.2 kB view details)

Uploaded Python 3

File details

Details for the file metanno-1.0.0b6-py3-none-any.whl.

File metadata

  • Download URL: metanno-1.0.0b6-py3-none-any.whl
  • Upload date:
  • Size: 370.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for metanno-1.0.0b6-py3-none-any.whl
Algorithm Hash digest
SHA256 34737ca6a300b058f5ecf0fc256ad16319ceda18014670f87b8ee77569fe9a16
MD5 59959425dde86c4fc6c03cc5c813e1d6
BLAKE2b-256 b9b5ee741540f9f2937768897bec93af00b53e74f9a44e31d09c7fffc70754ff

See more details on using hashes here.

Provenance

The following attestation bundles were made for metanno-1.0.0b6-py3-none-any.whl:

Publisher: release.yml on percevalw/metanno

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