Linalgo W3C Web Annotation Library
Linalgo is a Python module to help Machine Learning team create and curate datasets for Natural Language Processing. It tries to follow the W3C Web Annotation Data Model and to provides a powerful system to add metadata to most commonly used text and image formats: TXT, PDF, HTML, etc.
Documentation
The documentation is available at https://linalgo.github.io/linalgo
Installation
Basic installation:
pip install linalgo
To use the annotation server functionality:
pip install "linalgo[hub]"
Linalgo CLI
Linalgo provides a command-line interface to interact with the annotation server (linhub) and manage your configuration.
Getting Started
Initialize your environment with interactive prompts:
linalgo init
This will:
- Set up your username and organization
- Configure the server URL
- Initialize a local server if using localhost
- Log you in and save your authentication token
Authentication
Log in to the Linalgo hub and save your authentication token:
linalgo login
Configuration Management
Manage your configuration settings:
linalgo config show # Show all configuration values
linalgo config get <key> # Get a specific configuration value
linalgo config set <key> <value> # Set a configuration value
linalgo config load [env_file] # Load configuration from .env file
Interacting with the Hub
Pass commands directly to linhub:
linalgo hub <command>
For example, to start the annotation server:
linalgo hub runserver
Running the Annotation Server
After installing with the hub extras, you can run a local annotation server using:
linalgo hub runserver
This will start a local Django server that you can use for annotation tasks.
Test
pytest
Storing Annotation Data
By default, linalgo stores annotations on a dedicated hub at https://hub.linalgo.com. There are also connectors to retrieve data from Google BigQuery.
Release files for linalgo 0.1.6
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| linalgo-0.1.6.tar.gz | 30.7 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| linalgo-0.1.6-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 65.7 kB
Release files / linalgo-0.1.6.tar.gz
| Download URL | linalgo-0.1.6.tar.gz |
|---|---|
| Size | 30.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
b80abeb476e4499da1a02fc8a52a995e8ca26dcde59c6fbc149e2d727645f315
|
|
BLAKE2b-256 checksum How to use checksums |
439bce183f803aa645648b07e15495f75a3fea46eb39ec93fec0cb783e5a628e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.12.9
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on May 14, 2025.
Transparency logRelease files / linalgo-0.1.6-py3-none-any.whl
| Download URL | linalgo-0.1.6-py3-none-any.whl |
|---|---|
| Size | 35.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
e9161a6076fb557be1cf1a186902393868b08412f09aa1ed5b880c4033ec27d6
|
|
BLAKE2b-256 checksum How to use checksums |
1b687b37657677ccc305e146b646c62fcc955b187e269d410e23f2545c7fd1f4
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.12.9
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on May 14, 2025.
Transparency log