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.6-py3-none-any.whl (2.5 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: bestcam-0.0.6-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.6-py3-none-any.whl
Algorithm Hash digest
SHA256 c3e57510f4506bbcad3a50f1ae9309b177f7f3e852e6a17454ac5a19571e6492
MD5 ab4bb41f7ca7ee6dcf4c1cc8d038a5f1
BLAKE2b-256 64b2498f864b567cc5a5984d78db69b04f1d0166d849ae877235fff4f6c6163d

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