xcl-lens
RCCL/NCCL log parser and analyzer.
Installation
From PyPI
Using pipx (recommended for CLI use)
pipx install xcl-lens
Using uv
uv tool install xcl-lens
Using pip
pip install xcl-lens
From Source
Using pipx
pipx install .
Using uv
# Install in editable mode
uv pip install -e .
# Or using uv's native install
uv tool install .
Using pip
pip install -e .
Usage
Process Existing Files
xcl-lens rccl-log.txt
xcl-lens --summary rccl.*.log
When multiple files are supplied, each file must contain a communicator Init START identity and
the files must collectively form one complete (commId, nranks) global-rank set. Ambiguous,
incomplete, or duplicate inputs are rejected with diagnostics instead of being silently merged.
Automatic detection of mixed stdout requires the rccl-tests rank table to establish trusted process
identities.
Process stdin
cat rccl-log.txt | xcl-lens
Options
--summarysuppresses the raw log.-vextends summary reports.--hostsfilters entries by hostname.--prefix-ranksfilters the numeric[n]field in RCCL/NCCL log prefixes. It does not select communicator global ranks.
Development
make setup # Set up development environment
make format # Auto-fix and format code (ruff)
make lint # Check code style and errors (ruff)
make test # Run all unit tests (pytest)
make build # Build wheel and sdist into dist/
make clean # Remove build caches and the virtual environment
Metadata
Release files for xcl-lens 0.3.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 | |
|---|---|---|---|
| xcl_lens-0.3.0.tar.gz | 55.3 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| xcl_lens-0.3.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 71.8 kB
Release files / xcl_lens-0.3.0.tar.gz
| Download URL | xcl_lens-0.3.0.tar.gz |
|---|---|
| Size | 55.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
4625ce85156d0bbe075afeefcdc36d347b32029d4ba963f5c57bfedde86c031f
|
|
BLAKE2b-256 checksum How to use checksums |
fff67310cb830c24a7b9adf80a964ec0d1d8e8f12c73130e6bb1f598defa8685
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
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 Aug 28, 2026.
Transparency logRelease files / xcl_lens-0.3.0-py3-none-any.whl
| Download URL | xcl_lens-0.3.0-py3-none-any.whl |
|---|---|
| Size | 16.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
4deaea019fa0000e5cb7c7ab16539cf1e95e2ced0cae2537acc62e4d25f1959a
|
|
BLAKE2b-256 checksum How to use checksums |
8ed247c0193a76641faa1dafb045d0a45e109f0fb3146fe37b7e21eddfe320cc
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
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 Aug 28, 2026.
Transparency log