Skip to main content

Alias for rustcam. Rust-backed DXGI Desktop Duplication screen capture for Windows.

Project description

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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

bestcam-0.0.7-py3-none-any.whl (2.5 kB view details)

Uploaded Python 3

File details

Details for the file bestcam-0.0.7-py3-none-any.whl.

File metadata

  • Download URL: bestcam-0.0.7-py3-none-any.whl
  • Upload date:
  • Size: 2.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.9

File hashes

Hashes for bestcam-0.0.7-py3-none-any.whl
Algorithm Hash digest
SHA256 73fa2886cb8907fbb46fef6997578b0ad54624fbd0c27bdd95035b28e065417a
MD5 89344edcede8481401828b224fbe4a46
BLAKE2b-256 1fdae5d3e8c3d45f89a7ae20291cbe1340bd1d68fcc2dc6d686ffe336b2d3b8b

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page