pyvirtualdisplay is a python wrapper for Xvfb and Xephyr
- Links:
documentation: http://ponty.github.com/PyVirtualDisplay
- Possible applications:
GUI testing
automatic GUI screenshot
Basic usages
Start Xephyr:
from pyvirtualdisplay import Display xephyr=Display(visible=1, size=(320, 240)).start()
Create screenshot of xmessage with Xvfb:
from easyprocess import EasyProcess
from pyvirtualdisplay.smartdisplay import SmartDisplay
disp = SmartDisplay(visible=0, bgcolor='black').start()
xmessage = EasyProcess('xmessage hello').start()
img = disp.waitgrab()
xmessage.stop()
disp.stop()
img.show()
Installation
General
install setuptools or pip
optional: pyscreenshot and PIL should be installed for smartdisplay submodule
install the program:
if you have setuptools installed:
# as root easy_install pyvirtualdisplay
if you have pip installed:
# as root pip install pyvirtualdisplay
Ubuntu
sudo apt-get install python-setuptools sudo apt-get install xvfb sudo apt-get install xserver-xephyr sudo easy_install pyvirtualdisplay # optional sudo apt-get install python-imaging sudo apt-get install scrot sudo easy_install pyscreenshot
Uninstall
# as root pip uninstall pyvirtualdisplay
Metadata
Release files for PyVirtualDisplay 0.0.6
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 |
|---|---|---|---|---|
| PyVirtualDisplay-0.0.6.tar.gz | 37.1 kB | Without provenance | Details for PyVirtualDisplay-0.0.6.tar.gz |
Release files / PyVirtualDisplay-0.0.6.tar.gz
| Download URL | PyVirtualDisplay-0.0.6.tar.gz |
|---|---|
| Size | 37.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
ef9deb8a6855eb606099f157f051079c5e448dd66d4e71792f757a90162e53b4
|
|
BLAKE2b-256 checksum How to use checksums |
ed186c6e9f7f5f02959b681eac658b5c9dfe4f0297f4bcdb6fb943cb6ff5dcbd
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for PyVirtualDisplay 0.0.6
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.