Skip to main content

comgrab3

Windows DirectShow camera enumerator with stable USB location IDs.

Install

pip install comgrab3

Windows only — requires comtypes.

Usage

from comgrab3 import enumerate_cameras, get_usb_location

cams = enumerate_cameras()
for cam in cams:
    print(cam["index"], cam["name"], cam["location_id"])

CLI:

comgrab3

What it returns

Each camera dict contains:

  • index — OpenCV cv2.VideoCapture(index) index
  • name — friendly name (e.g. "USB Camera")
  • device_path — full DirectShow device path
  • location_id — stable USB port location (e.g. PCIROOT(0)#PCI(1400)#USB(0001)#USB(0003))

location_id is stable across reboots as long as the camera stays in the same physical USB port.

Metadata

Release files for comgrab3 1.0.0

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

Source distribution (sdist)

Source distribution for comgrab3 1.0.0
File Size Uploaded Provenance Actions
comgrab3-1.0.0.tar.gz 3.8 kB Without provenance Details for comgrab3-1.0.0.tar.gz

Built distribution (wheel)

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

Total release size: 8.0 kB

Release files / comgrab3-1.0.0.tar.gz

Download URL comgrab3-1.0.0.tar.gz
Size 3.8 kB
Tags Source
SHA-256 checksum
How to use checksums
1a749e3573eff232775a1f8ce55742f181530c89aceda0117000db401e339ab4
BLAKE2b-256 checksum
How to use checksums
6237b0312dd69d6f20c807da1215d118c1a3ef42b72cc93546fc589139c71d66
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.10.19

Release files / comgrab3-1.0.0-py3-none-any.whl

Download URL comgrab3-1.0.0-py3-none-any.whl
Size 4.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
42dc04974c56d56eeb0a12b88852a38bfe224202f663d2669321a0483753018c
BLAKE2b-256 checksum
How to use checksums
eaa932ad357a1511e6a43232c284fe421bdc8d0be982f8d76b62dc4b8705637e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.10.19

Security for comgrab3 1.0.0

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.

No provenance found

None of the files in this release were uploaded with provenance metadata.

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.

Release history Release notifications | RSS feed

This release

1.0.0 This release

2 release files No provenance

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