Skip to main content

Ultra-fast screen capture in Rust with Python bindings

Project description

pixel forge  Python Version Rust Version Licence Build Status Docs Status

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

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.

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.1.tar.gz (168.7 kB view details)

Uploaded Source

Built Distributions

pixel_forge-0.1.1-cp312-none-win_amd64.whl (169.2 kB view details)

Uploaded CPython 3.12 Windows x86-64

pixel_forge-0.1.1-cp311-none-win_amd64.whl (171.1 kB view details)

Uploaded CPython 3.11 Windows x86-64

pixel_forge-0.1.1-cp310-none-win_amd64.whl (170.9 kB view details)

Uploaded CPython 3.10 Windows x86-64

pixel_forge-0.1.1-cp39-none-win_amd64.whl (170.8 kB view details)

Uploaded CPython 3.9 Windows x86-64

pixel_forge-0.1.1-cp38-none-win_amd64.whl (171.1 kB view details)

Uploaded CPython 3.8 Windows x86-64

File details

Details for the file pixel_forge-0.1.1.tar.gz.

File metadata

  • Download URL: pixel_forge-0.1.1.tar.gz
  • Upload date:
  • Size: 168.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.11.8

File hashes

Hashes for pixel_forge-0.1.1.tar.gz
Algorithm Hash digest
SHA256 ca68118acf950cc1991465e6c94d5b0a87161260c15f9c541a6e3b6ebce00fca
MD5 4f584b0c743be77b8b8d54d29285455c
BLAKE2b-256 92efaa7dafbdfbbbff8486c4b3355b7cce1bf2eace42e0299dc2191c1cfd7b56

See more details on using hashes here.

File details

Details for the file pixel_forge-0.1.1-cp312-none-win_amd64.whl.

File metadata

File hashes

Hashes for pixel_forge-0.1.1-cp312-none-win_amd64.whl
Algorithm Hash digest
SHA256 fca17eedab3662a88e0424e22794a7ed2b45215326d3f3181ce0817695a38c82
MD5 ad61e8d6274178899ef4768fc04eb1d4
BLAKE2b-256 97d499ef241c09d7714ad12aa011f2e5a5e319975524dba356482b6b7d8b0eb7

See more details on using hashes here.

File details

Details for the file pixel_forge-0.1.1-cp311-none-win_amd64.whl.

File metadata

File hashes

Hashes for pixel_forge-0.1.1-cp311-none-win_amd64.whl
Algorithm Hash digest
SHA256 c121e0326c255acf4e29b0cf4c875a6b0f960bec5ed10df9afd98bdc77c91622
MD5 1ee0129c8b9bb2e147e39a17a3c1858d
BLAKE2b-256 ce5416b16c5b78e1383e012312485254599bcf280c716d39623eb2ef2b2bd534

See more details on using hashes here.

File details

Details for the file pixel_forge-0.1.1-cp310-none-win_amd64.whl.

File metadata

File hashes

Hashes for pixel_forge-0.1.1-cp310-none-win_amd64.whl
Algorithm Hash digest
SHA256 96aa1b8ebe5d6a2a1d58a4ba08c3e11a7f2e97cff2f4a32440ee34f417e215e5
MD5 b7b0dcc96186f8cb1934a34430426b4c
BLAKE2b-256 1c33f94bf86e4ced4c49fb2124fca7ab71d882b3c4aa8930dc7a95872482683d

See more details on using hashes here.

File details

Details for the file pixel_forge-0.1.1-cp39-none-win_amd64.whl.

File metadata

File hashes

Hashes for pixel_forge-0.1.1-cp39-none-win_amd64.whl
Algorithm Hash digest
SHA256 7e06c0fd05276d84da389c4edcec264d2320a835f891af2cd6b56f517fa99490
MD5 016ad24c5a7a87b3505a6df7bb3e0184
BLAKE2b-256 fd60b72eb5ea7edee359fa5b09e670ea7ecdbac8fbc967b89d6407a9bb2da23c

See more details on using hashes here.

File details

Details for the file pixel_forge-0.1.1-cp38-none-win_amd64.whl.

File metadata

File hashes

Hashes for pixel_forge-0.1.1-cp38-none-win_amd64.whl
Algorithm Hash digest
SHA256 8ebe1ce97e1873f59ddd093adbd44c8dfc2fcf1427ab459aa7b8d39ad4bd1490
MD5 d228a6332117735c3e2e1e85f2c4f224
BLAKE2b-256 0438863fef17f13631ca2c3480e22fe015309c0538a8ed0a494ffcf11115101b

See more details on using hashes here.

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