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.1.0.tar.gz (13.1 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.1.0-py3-none-any.whl (13.1 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: ailab_cli-0.1.0.tar.gz
  • Upload date:
  • Size: 13.1 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.1.0.tar.gz
Algorithm Hash digest
SHA256 502951534dfe06787de4cd3d2de8e88019d5bbc1ee291954c5f1bf4a5d67e4c9
MD5 308517bc4f0f1c9ca22ae8ccfc6b532b
BLAKE2b-256 924aed12b940e6e3ff08427c907ccc4ce12a23825ae85ef65fe34e5c3b9be7e3

See more details on using hashes here.

File details

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

File metadata

  • Download URL: ailab_cli-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 13.1 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.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 c49c006b3f3763cfb01d9ee718795bd8aaf3cd37f9a76c86f800740050554bca
MD5 fa4e3c54a0c1554e9e78d8082d22c19b
BLAKE2b-256 cf22018d0d842302e0dbcbab32f30f52fb01c321d59c24aa67c90bbcb58df3c9

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