Skip to main content

python wrapper for Xvfb and Xephyr

Project description

pyvirtualdisplay is a python wrapper for Xvfb and Xephyr

Links:
Features:
Known problems:
  • Python 3 is not supported

  • only a few backend options are supported

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
with SmartDisplay(visible=0, bgcolor='black') as disp:
    with EasyProcess('xmessage hello'):
        img = disp.waitgrab()
img.show()

Installation

General

Ubuntu

sudo apt-get install python-setuptools
sudo apt-get install xvfb
sudo apt-get install xserver-xephyr
sudo apt-get install tightvncserver
sudo easy_install pyvirtualdisplay
# optional
sudo apt-get install python-imaging
sudo apt-get install scrot
sudo easy_install pyscreenshot

Uninstall

install pip:

# as root
pip uninstall pyvirtualdisplay

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

PyVirtualDisplay-0.0.7.tar.gz (37.9 kB view details)

Uploaded Source

File details

Details for the file PyVirtualDisplay-0.0.7.tar.gz.

File metadata

File hashes

Hashes for PyVirtualDisplay-0.0.7.tar.gz
Algorithm Hash digest
SHA256 eda83ebf18e1dbf76ec69aba44d30fe161fc78ca993c406e420c7efcab9c33e3
MD5 6f54110ca2b876539a79b4d2703cf150
BLAKE2b-256 3ecd153bd4b147e33e95e786a8abe0c92876fed7f0f748faa1cc759542404608

See more details on using hashes here.

Supported by

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