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.1

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.1
File Size Uploaded
pixel_forge-0.2.1.tar.gz 175.2 kB Details

Built distributions (wheels)

Table of built distributions (wheels) for pixel-forge 0.2.1
File Interpreter ABI Platform
pixel_forge-0.2.1-cp310-abi3-win_amd64.whl CPython 3.10 abi3 Windows x86-64 Details
pixel_forge-0.2.1-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: 777.1 kB

Release files / pixel_forge-0.2.1.tar.gz

Download URL pixel_forge-0.2.1.tar.gz
Size 175.2 kB
Tags Source
SHA-256 checksum
How to use checksums
13817466b253db196a47200b620a24c2a8f7fce2423b2eb755b34a1969b7c315
BLAKE2b-256 checksum
How to use checksums
9695c0512ad96d137743e51949a022d0b2c408f1634c85417276351986a4039c
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.1-cp310-abi3-win_amd64.whl

Download URL pixel_forge-0.2.1-cp310-abi3-win_amd64.whl
Size 186.0 kB
Tags CPython 3.10 Windows x86-64 abi3
SHA-256 checksum
How to use checksums
1043ef66044d9b82dd0280d219bd04b27a146f64c34023887dd8294caed0a69b
BLAKE2b-256 checksum
How to use checksums
9fa43c17c3059a652edeb2e410924e45a7b21e9c2e9ebfde644c0981e90a0003
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.1-cp310-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl

Download URL pixel_forge-0.2.1-cp310-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Size 416.0 kB
Tags CPython 3.10 Linux glibc 2.17+ x86-64 abi3
SHA-256 checksum
How to use checksums
4a1af12d5c6f2c14d3553de0cf4dac26a2c5b888636ee12ed66f7dc59774468b
BLAKE2b-256 checksum
How to use checksums
2ff130a2db1bd5ac92dc4c8e7dc532872bc8001f54cf7b6b0b7589d0943e4c82
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

This release

0.2.1 This release

3 release files

0.2.0

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