Skip to main content

CLI for AI Image Labeling Tool — export annotations, manage projects

Project description

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/*

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

ailab_cli-0.2.0.tar.gz (13.2 kB view details)

Uploaded Source

Built Distribution

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

ailab_cli-0.2.0-py3-none-any.whl (13.0 kB view details)

Uploaded Python 3

File details

Details for the file ailab_cli-0.2.0.tar.gz.

File metadata

  • Download URL: ailab_cli-0.2.0.tar.gz
  • Upload date:
  • Size: 13.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.2

File hashes

Hashes for ailab_cli-0.2.0.tar.gz
Algorithm Hash digest
SHA256 e609adf7997e269804dc1ff8ea1ffb3089aefb6e20f87aea29bc6b4ddb2b1caf
MD5 1bba995dceae6eb31be65f643bd2e560
BLAKE2b-256 130abc47bed84da1fa38f00a38490b94fbdaaabbf6327a47e48bcc5363b2f0b5

See more details on using hashes here.

File details

Details for the file ailab_cli-0.2.0-py3-none-any.whl.

File metadata

  • Download URL: ailab_cli-0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 13.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.2

File hashes

Hashes for ailab_cli-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 458ce7f8effad7b7e18045e41c9591864d45eb7b08fc8c504594818874ad3048
MD5 d8d26e4585fd501b1639da4800c2a8a2
BLAKE2b-256 d5b612fa3c2e4b955e7f645e781c27d515bd48ded98edfbd83b5d23457961eb3

See more details on using hashes here.

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