Skip to main content

Lab22 CLI

lab22 is the command-line tool for downloading the datasets you are licensed for on the Lab22 platform. It needs Python 3.9 or newer and nothing beyond the standard library.

Install

python3 -m venv ~/lab22-venv           # Python 3.9 or newer; the one macOS ships is fine
source ~/lab22-venv/bin/activate
pip3 install lab22

Use

export LAB22_API_KEY=l22_sk_live_...   # from the API Keys page; the only way to authenticate

lab22 datasets                         # what you can download, and where to request access
lab22 describe ego4d                   # its parts, and the values each filter takes, with file counts
lab22 download ego4d -o ~/lab22-data/ego4d --parts clips annotations --benchmarks FHO --dry-run
lab22 download ego4d -o ~/lab22-data/ego4d --parts clips annotations --benchmarks FHO -y
lab22 verify ~/lab22-data/ego4d --checksum

python3 -m lab22 works the same as lab22.

A command written for the official ego4d or egoexo tool runs unchanged with lab22 in front. lab22 ego4d and lab22 egoexo take the official tools' options, with their spellings, abbreviations and defaults, and accept the AWS options and ignore them. They add four options of their own, which work only when spelled in full: --dry-run, --shard N/M, --refresh-manifest and --ignore-disk-space.

lab22 ego4d -o ~/lab22-data/ego4d --datasets clips --benchmarks EM --dry-run
lab22 egoexo -o ~/lab22-data/egoexo4d --parts annotations metadata -y

lab22 download <dataset> takes the official tools' options, spellings and defaults as well (--parts/--datasets, --uids/--video_uids, --uid-file, --universities, --benchmarks, --splits, --views, --metadata/--no-metadata, --version/--release, --config_path, --list-datasets, --manifest, --force, --delete), with the AWS options accepted and ignored. On top: --shard N/M for splitting one download across machines, --workers, --dry-run, -y, and --refresh-manifest. A dry run fetches nothing but does create the output folder and save the manifest in it, so the real run that follows targets the same release. Files land in the official layout under -o; .lab22/ inside it holds the saved manifest, a log and a done-record per run. Rerunning the same command skips completed files; a file that was interrupted starts again from its beginning. Interrupted or failed downloads leave *.part files, which a run and verify report and never delete (shards may share a folder); delete them when no run is using the folder.

Exit codes: 0 done · 1 usage · 2 key problem · 3 not entitled · 4 incomplete/unreachable.

The full guide is on the Lab22 platform, signed in, under Documentation → CLI: installation, API keys, choosing what to download, each dataset's parts and layout, verifying, large and sharded downloads, a command reference and troubleshooting. Its source is docs/ in the source repository; working on the CLI itself is covered in DEVELOPMENT.md there.

Metadata

Release files for lab22 0.1.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for lab22 0.1.1
File Size Uploaded Provenance Actions
lab22-0.1.1.tar.gz 59.7 kB With provenance Details for lab22-0.1.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for lab22 0.1.1
File Interpreter ABI Platform Actions
lab22-0.1.1-py3-none-any.whl Python 3 none any Details for lab22-0.1.1-py3-none-any.whl

Total release size: 127.4 kB

Release files / lab22-0.1.1.tar.gz

Download URL lab22-0.1.1.tar.gz
Size 59.7 kB
Tags Source
SHA-256 checksum
How to use checksums
62c03891529a28d23cf87a837df20a2bca455afb2f384f01619ce211b3d02ff8
BLAKE2b-256 checksum
How to use checksums
8e30e89e274c81cff1ce238d0042f8635a7bb6aaf7d7fa2be2167da3b8b0979f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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 Oct 29, 2026.

Transparency log

Release files / lab22-0.1.1-py3-none-any.whl

Download URL lab22-0.1.1-py3-none-any.whl
Size 67.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
8b48978b002aaafca2f5b8e378ecbc5916a23750a28fa076fda998b732ce8f06
BLAKE2b-256 checksum
How to use checksums
08c4c1c2a4d616041226bd553659e18754397cf56fc1bd2e957b790e38e022e1
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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 Oct 29, 2026.

Transparency log

Security for lab22 0.1.1

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.

Full provenance

All 2 files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for lab22-0.1.1.tar.gz

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 Oct 29, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page