Skip to main content

pixel forge

Python Version Rust Version Licence CI Docs Status

Ultra-fast screen capture in Rust with Python bindings.

Installing

The package can be installed via

pip install pixel_forge

Wheels are provided for Windows and Linux (x86_64).

Platform support

The capture backend is selected automatically at build time.

  • Windows: capture through Windows Graphics Capture.
  • Linux: capture through X11. Wayland support through XWayland.

Example

import time

import numpy as np
from pixel_forge import Capture, Monitor, Window, foreground_window

c = Capture()
m = Monitor()
c.start(m)
img = c.frame()
c.stop()
assert isinstance(img, np.ndarray)

w: Window = foreground_window()
c.start(w)
img1 = c.frame()
time.sleep(1)
img2 = c.frame()  # Returns the most recent frame
c.stop()

Documentation

For a more detailed description of the package, visit our documentation.

Credit

This package started as a rewrite of windows-capture, and a good chunk of the implementation is taken directly from that project. Full credit goes to NiiightmareXD for those parts.

Metadata

Release files for pixel-forge 0.2.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 pixel-forge 0.2.0
File Size Uploaded
pixel_forge-0.2.0.tar.gz 174.5 kB Details

Built distributions (wheels)

Table of built distributions (wheels) for pixel-forge 0.2.0
File Interpreter ABI Platform
pixel_forge-0.2.0-cp310-abi3-win_amd64.whl CPython 3.10 abi3 Windows x86-64 Details
pixel_forge-0.2.0-cp310-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl CPython 3.10 abi3 Linux glibc 2.17+ x86-64 Details

Total release size: 773.3 kB

Release files / pixel_forge-0.2.0.tar.gz

Download URL pixel_forge-0.2.0.tar.gz
Size 174.5 kB
Tags Source
SHA-256 checksum
How to use checksums
c4d59a0af47b9de4d19c4410d60529050a336dc27d1970ba2fde42daaa6cd0aa
BLAKE2b-256 checksum
How to use checksums
898494ad986e5c1f70b64ae955ebe05d6661c97f5084eb5ad015c24bc46c4b57
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Sep 16, 2026.

Transparency log

Release files / pixel_forge-0.2.0-cp310-abi3-win_amd64.whl

Download URL pixel_forge-0.2.0-cp310-abi3-win_amd64.whl
Size 185.7 kB
Tags CPython 3.10 Windows x86-64 abi3
SHA-256 checksum
How to use checksums
909743ceaf0ff682016ea990083f62b7ad8785e21034cb9e6e02cdaa60ce84ba
BLAKE2b-256 checksum
How to use checksums
8b1e46e725138743504fea9478d072603c23f0b68b99d5427426e7d67a8a361d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Sep 16, 2026.

Transparency log

Release files / pixel_forge-0.2.0-cp310-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl

Download URL pixel_forge-0.2.0-cp310-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Size 413.1 kB
Tags CPython 3.10 Linux glibc 2.17+ x86-64 abi3
SHA-256 checksum
How to use checksums
a94097cc239065707fca7b5fe020a794acac55b13a8582dfadd85ec9f2a26c20
BLAKE2b-256 checksum
How to use checksums
9584c6d524d1845cb5591310927a146d12c8433608f444b8f8483ebf1132f462
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Sep 16, 2026.

Transparency log

Release history Release notifications | RSS feed

0.2.1

3 release files

This release

0.2.0 This release

3 release files

0.1.1

6 release files

0.1.0

6 release files

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