ailab-cli
CLI for the AI Image Labeling Tool — export annotations, browse projects and annotation runs.
Installation
pip install ailab-cli
# or
pipx install ailab-cli
Quick Start
# Log in to your AI Image Labeling Tool instance
ailab auth login --api-url https://lab.ai.xmv.de
# Or use the interactive TUI
ailab
Usage
Interactive Mode
Simply run ailab to start the interactive TUI:
ailab
Navigate with arrow keys, Enter to select, Esc to go back.
Direct Commands
ailab auth login # Authenticate via browser
ailab auth logout # Remove local credentials
ailab auth status # Show current auth status
ailab projects # List accessible projects
ailab runs <projectId> # List annotation runs
ailab export -p <projectId> -r <runId> [-o export.json] [-f json|csv]
Global Options
ailab --url https://other-instance.example.com projects # Override API URL
Configuration
Config is stored at ~/.config/ailab/config.json.
You can also set the API URL via environment variable:
export AILAB_API_URL=https://lab.ai.xmv.de
Publishing to PyPI
Automated (GitHub Actions)
Tag a release to trigger the CI pipeline:
# Update version in pyproject.toml first
cd cli
git add pyproject.toml
git commit -m "chore: bump CLI version to X.Y.Z"
git tag cli-vX.Y.Z
git push origin main --tags
The GitHub Actions workflow builds, tests, and publishes to PyPI automatically.
First-time setup: Configure PyPI Trusted Publishing for the GitHub repository.
Manual
cd cli
pip install build twine
python -m build
twine upload dist/*
Metadata
Release files for ailab-cli 0.2.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| ailab_cli-0.2.0.tar.gz | 13.2 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| ailab_cli-0.2.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 26.2 kB
Release files / ailab_cli-0.2.0.tar.gz
| Download URL | ailab_cli-0.2.0.tar.gz |
|---|---|
| Size | 13.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
e609adf7997e269804dc1ff8ea1ffb3089aefb6e20f87aea29bc6b4ddb2b1caf
|
|
BLAKE2b-256 checksum How to use checksums |
130abc47bed84da1fa38f00a38490b94fbdaaabbf6327a47e48bcc5363b2f0b5
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.14.2
|
Release files / ailab_cli-0.2.0-py3-none-any.whl
| Download URL | ailab_cli-0.2.0-py3-none-any.whl |
|---|---|
| Size | 13.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
458ce7f8effad7b7e18045e41c9591864d45eb7b08fc8c504594818874ad3048
|
|
BLAKE2b-256 checksum How to use checksums |
d5b612fa3c2e4b955e7f645e781c27d515bd48ded98edfbd83b5d23457961eb3
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.14.2
|