Modular annotator building framework in Python
Project description
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.2
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 samplesadd 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 viewfinish javascript to typescript conversioncustomizable 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.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file metanno-1.0.0b2.tar.gz.
File metadata
- Download URL: metanno-1.0.0b2.tar.gz
- Upload date:
- Size: 241.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
018676d1e6ce7f9a0ba3c9e850b1f570dcc27473fc22a83353bb7ca6664c054f
|
|
| MD5 |
1ef913ecc5f00d145d19d68e8a6f5bc4
|
|
| BLAKE2b-256 |
c6ea8d98ec90a9f22b52ad6a6c2be61361d2145d276c9d0acde97cac082fb09b
|
Provenance
The following attestation bundles were made for metanno-1.0.0b2.tar.gz:
Publisher:
release.yml on percevalw/metanno
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
metanno-1.0.0b2.tar.gz -
Subject digest:
018676d1e6ce7f9a0ba3c9e850b1f570dcc27473fc22a83353bb7ca6664c054f - Sigstore transparency entry: 418000133
- Sigstore integration time:
-
Permalink:
percevalw/metanno@675082c9c7b630e5e584659b3562b8d906a126e1 -
Branch / Tag:
refs/tags/v1.0.0-beta.2 - Owner: https://github.com/percevalw
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@675082c9c7b630e5e584659b3562b8d906a126e1 -
Trigger Event:
release
-
Statement type:
File details
Details for the file metanno-1.0.0b2-py3-none-any.whl.
File metadata
- Download URL: metanno-1.0.0b2-py3-none-any.whl
- Upload date:
- Size: 350.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2ac013b9d88d9b6192a4f4a8827583d21a93824313ec5018d62b4224d2a4f781
|
|
| MD5 |
d0fd2efc5f37adc51b7514aef12f1e83
|
|
| BLAKE2b-256 |
72a86a76fe17829ad9991ac9873417cfacab6c8fde35293ab0119dab739be764
|
Provenance
The following attestation bundles were made for metanno-1.0.0b2-py3-none-any.whl:
Publisher:
release.yml on percevalw/metanno
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
metanno-1.0.0b2-py3-none-any.whl -
Subject digest:
2ac013b9d88d9b6192a4f4a8827583d21a93824313ec5018d62b4224d2a4f781 - Sigstore transparency entry: 418000190
- Sigstore integration time:
-
Permalink:
percevalw/metanno@675082c9c7b630e5e584659b3562b8d906a126e1 -
Branch / Tag:
refs/tags/v1.0.0-beta.2 - Owner: https://github.com/percevalw
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@675082c9c7b630e5e584659b3562b8d906a126e1 -
Trigger Event:
release
-
Statement type: