To install this package, run one of the following:
PyScreenReader is a library for developers to parse on-screen information using the simplicity of Python.
It's a cross-platform abstraction of native accessibility APIs for Windows, macOS, and Linux, based around representing UI elements in a common tree-like interface in Python.
Key features:
Full documentation of PyScreenReader can be found HERE.
[!WARNING] PyScreenReader is not yet released and is still in testing. Stay tuned for its public release on PyPi in the near future.
Install PyScreenReader latest release from pip registries.
pip install PyScreenReader
In your Python script, import PyScreenReader -
# Import the reader itself
from PyScreenReader.screen_reader import ScreenReader
# Import the widgets the reader will return
from PyScreenReader.virtual_widgets import VirtualWidget
# Create a screen reader instance
screen_reader = ScreenReader()
# Read the virtual widget tree by your program's PID
root = screen_reader.from_pid(20880)
# Print the location of the root widget extracted
print(f"Position of Root Widget (X: {root.get_x()}, Y: {root.get_y()})")
# Optional: Get all children of the root as a list of VirtualWidgets to traverse the tree!
children = root.get_children()
This is just a quick start. For more information, please refer to our full documentation.
We are glad to hear that you are interested in contributing to PyScreenReader! Please see the contribution guideline for more information.
The guideline includes how to file a GitHub issue, open a GitHub Pull Request, set up local dev environment, etc.
Feedback is a gift! We appreciate any kind of feedback/questions/concerns in the following forms:
PyScreenReader is licensed under MIT License. By using, distributing, or contributing to this project, you agree the terms and conditions of this license.
PyScreenReader greatly relies on:
Special thanks to:
Last Updated
Oct 20, 2025 at 05:13
Supported Platforms