List Linux cameras, USB identity, V4L2 nodes, and formats without runtime dependencies
camls means camera list. It lists Linux V4L2 camera groups, USB identity, device nodes, supported formats, and query status. All interface text is English.
Requires Linux and Python 3.7+. There are no third-party runtime dependencies: no RealSense SDK, pip libraries, v4l2-ctl, or external commands are used to scan cameras. Building from source requires setuptools and wheel; installing the provided wheel does not require either build tool.
python3 -m pip install --upgrade camls camls --version Install from a wheel (including offline devices) Copy dist/camls-0.1.1-py3-none-any.whl to the target Linux machine, then run:
python3 -m pip install --user --upgrade --no-index ./camls-0.1.1-py3-none-any.whl camls If the command is not found, add the user scripts directory to PATH in the current terminal:
export PATH="$(python3 -m site --user-base)/bin:$PATH" Add that line to your shell startup file if needed. The wheel contains only Python code; its any platform tag does not imply Windows/macOS camera support. The camera queries require Linux.
If the operating system reports an externally managed Python environment, install into a virtual environment instead:
python3 -m venv ~/.venvs/camls ~/.venvs/camls/bin/python -m pip install --no-index ./camls-0.1.1-py3-none-any.whl mkdir -p ~/.local/bin ln -s ~/.venvs/camls/bin/camls ~/.local/bin/camls export PATH="$HOME/.local/bin:$PATH" camls If pipx is already installed, it can manage the environment and command:
pipx install ./camls-0.1.1-py3-none-any.whl Install from source Copy this complete project directory to the other machine. From its parent:
python3 -m pip install --user ./camls Pip may download build tools for a source installation. For offline installation, use the prebuilt wheel above. Source archives in dist/ can also be installed with pip.
camls camls --json camls --version camls --help The original standalone interface is also supported:
python3 camera_info.py python3 -m camera_info --json USB cameras are grouped by their physical sysfs USB ancestor, not by serial number or /dev/videoN numbering. Non-USB nodes with an explicit shared device parent are grouped conservatively; virtual cameras without that link remain separate. Camera groups cannot always be mapped one-to-one to physical sensors on complex non-USB media-controller hardware.
The report includes model, manufacturer, serial, USB port, VID:PID, negotiated USB link speed, drivers, sysfs path, and per-node formats/status. Nodes can be labelled Depth, Color-capable, Monochrome, Infrared, Metadata, or Unknown. Color-capable describes supported formats, not verified sensor color response. Unrecognized vendor formats remain Unknown. Stable /dev/v4l links are not collected or included in text or JSON output.
For RealSense D435 (8086:0b07), the stereo interface advertising GREY, UYVY, Y8I, and Y12I is labelled Infrared. Its UYVY descriptor does not identify the separate RGB sensor. The RGB interface advertising YUYV remains Color-capable. This device-specific rule uses USB identity and formats, not /dev/videoN numbering. Other cameras, including D415, retain generic format-based classification.
Information queries never set video parameters or start streaming. Queried means information was read successfully; it is not a frame capture, image quality, or hardware health test. Linux x86/x86_64 and ARM/ARM64 generic ioctl ABIs are supported; other ABIs retain sysfs-only discovery.
Run as an ordinary user first. Permission denied means device access is restricted. Device missing means sysfs exposes a node whose /dev/videoN is not accessible in the current environment, as can happen in containers. Failures of individual nodes are shown without aborting the inventory.
python3 -m unittest discover -s tests -v python3 -m pip wheel --no-deps --wheel-dir dist . To create both wheel and source distributions with the standard build frontend:
python3 -m pip install build python3 -m build Publishing The project is published at https://pypi.org/project/camls/. Version 0.1.0 was released on November 13, 2026. Version 0.1.1 fixes D435 stereo infrared nodes incorrectly labelled Color-capable, Monochrome in text and JSON output.
See PUBLISHING.md for release preparation, credential setup, upload, and verification. Upload only the intended version's artifacts:
python3 -m pip install build twine python3 -m build python3 -m twine check dist/camls-0.1.1.tar.gz dist/camls-0.1.1-py3-none-any.whl python3 -m twine upload --repository-url https://upload.pypi.org/legacy/ --username __token__ dist/camls-0.1.1.tar.gz dist/camls-0.1.1-py3-none-any.whl The CLI itself never uploads files or changes PyPI account settings.
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
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.
None of the files in this release were uploaded with provenance metadata.
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.




