Skip to main content

Ultra-fast screen capture in Rust with Python bindings

Project description

pixel forge

Ultra-fast screen capture in Rust with Python bindings

Installing

The package can be installed via

pip install pixel_forge

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()

Project details


Download files

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

Source Distribution

pixel_forge-0.1.0.tar.gz (163.7 kB view hashes)

Uploaded Source

Built Distributions

pixel_forge-0.1.0-cp312-none-win_amd64.whl (166.7 kB view hashes)

Uploaded CPython 3.12 Windows x86-64

pixel_forge-0.1.0-cp311-none-win_amd64.whl (168.4 kB view hashes)

Uploaded CPython 3.11 Windows x86-64

pixel_forge-0.1.0-cp310-none-win_amd64.whl (168.4 kB view hashes)

Uploaded CPython 3.10 Windows x86-64

pixel_forge-0.1.0-cp39-none-win_amd64.whl (168.3 kB view hashes)

Uploaded CPython 3.9 Windows x86-64

pixel_forge-0.1.0-cp38-none-win_amd64.whl (168.4 kB view hashes)

Uploaded CPython 3.8 Windows x86-64

Supported by

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