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

Uploaded Python 3

File details

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

File metadata

  • Download URL: bestcam-0.0.2-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.2-py3-none-any.whl
Algorithm Hash digest
SHA256 e31ae8422e684f2cee8d0ec8d35ed01a526fe5c14f4be0d9c8e67e5993c2916c
MD5 0b7c1523db201e396f6c155a607ef301
BLAKE2b-256 3c027d5b102b39b2e463896afeee1732a1786f273106b10a65e4e5c026ae9f1a

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