Skip to main content

python wrapper for Xvfb and Xephyr

Project description

pyvirtualdisplay is a python wrapper for Xvfb and Xephyr

home: https://github.com/ponty/PyVirtualDisplay

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

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

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

Uploaded Source

File details

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

File metadata

File hashes

Hashes for PyVirtualDisplay-0.0.5.tar.gz
Algorithm Hash digest
SHA256 d8ced7753ded8f99dcfddbef877b74503aad8fdb2661575872eff4ef752f13a9
MD5 e48866eabab935b4a7e65b02eb9d6c99
BLAKE2b-256 b3902623602896fdd4ae763adae328facf88d4903fefd8fb902212dd3cc3de77

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