Skip to main content

bestcam

Alias of rustcam, a Rust-backed DXGI Desktop Duplication screen capture library for Windows. Same kind of API as bettercam, except the AcquireNextFrame loop runs in native Rust with the GIL released, so it actually rides the compositor refresh instead of stalling at ~140 fps.

This package is a shim. pip install bestcam pulls in rustcam and re-exports everything under the shorter name. All functionality, docs and bug reports live in the parent package.

The name is a wink at bettercam, which advertises itself as "the world's fastest publicly available Python screenshot library." It's a fork of dxcam that calls DXGI through comtypes from Python on every frame, so its own published benchmark hits ~130 fps regardless of what the monitor can do. rustcam does the same DDA loop in native Rust and rides a 180 Hz panel at the panel's refresh rate, capturing alot more unique frames per second on real content. If you came here looking for bestcam, just pip install rustcam (or keep this, same package).

import bestcam   # same as: import rustcam
cap = bestcam.Capturer(output=0, cursor=True)
frame = cap.grab()

Full docs: https://github.com/zen-ham/rustcam

Metadata

Release files for bestcam 0.1.0

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

Built distribution (wheel)

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

Release files / bestcam-0.1.0-py3-none-any.whl

Download URL bestcam-0.1.0-py3-none-any.whl
Size 2.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
f06fb49117d1afee6d0777c250b6dde279dd794c29906e5cf3de81b67a1d841b
BLAKE2b-256 checksum
How to use checksums
50debc97410cd70abf6bad87c6f35e7b261a632fa35bde988b138adf4612fe92
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.11.9

Security for bestcam 0.1.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.

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