This release is a pre-release and may not be stable for production use.
Display Server Interactions
DSI allows you to perform basic interactions on your display server, like screenshotting a window or sending input to it. Currently, DSI only supports X11/Xorg (GNU/Linux) and Windows but it aims to be cross-platform.
WARNING: Please Do not use DSI in production, because it's currently in development!
Quick overview
Look at the documentation for moor information
Get a window
from display_server_interactions import DSI
dsi = DSI()
window = dsi.get_active_window()
Get basic window information
print("Active window: ")
print("\tName: {}".format(window.name))
print("\tPID: {}".format(window.pid))
Take a screenshot of the window
import cv2
import numpy as np
img = np.array(window.get_image())
cv2.imshow(f'Screenshot of "{window.name}"', img)
while True:
if cv2.waitKey(1) & 0xFF == ord('q'):
break
Sending keys to a window
window.send_str("Hello World")
Move the mouse pointer
window.warp_pointer(x=42, y=73)
Sending mouse clicks
window.send_mouse_click(x=42, y=73)
Metadata
Release files for display-server-interactions 0.0.dev11
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| display-server-interactions-0.0.dev11.tar.gz | 18.4 kB | Without provenance | Details for display-server-interactions-0.0.dev11.tar.gz |
Release files / display-server-interactions-0.0.dev11.tar.gz
| Download URL | display-server-interactions-0.0.dev11.tar.gz |
|---|---|
| Size | 18.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
663f066caff379c24939206a343421e2ac237295c7b68b8cf490f1cb84727f22
|
|
BLAKE2b-256 checksum How to use checksums |
e3b2b27276e7f148d439a703da6f11042cda3a416dd8ef827ff260ebcd3d1e3a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.10.10
|
Security for display-server-interactions 0.0.dev11
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.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.