Skip to main content
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
--------

* install Xvfb_ and Xephyr_.
* install setuptools_ or pip_
* optional: pyscreenshot_ and PIL_ should be installed for :mod:`pyvirtualdisplay.smartdisplay`
* 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


.. _setuptools: http://peak.telecommunity.com/DevCenter/EasyInstall
.. _pip: http://pip.openplans.org/
.. _Xvfb: http://en.wikipedia.org/wiki/Xvfb
.. _Xephyr: http://en.wikipedia.org/wiki/Xephyr
.. _pyscreenshot: https://github.com/ponty/pyscreenshot
.. _PIL: http://www.pythonware.com/library/pil/

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

Uploaded Source

File details

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

File metadata

File hashes

Hashes for PyVirtualDisplay-0.0.3.tar.gz
Algorithm Hash digest
SHA256 37a00c06858db26d5d3d84bd9dc1947bd822e509510b9819cd8dcf75abd82e65
MD5 b2a7ff035921abfcc26f895f2f3e2639
BLAKE2b-256 62a48eddfa9f4cf717299929ed4ed09401a51fa86af06650946f8f2f94ade1f7

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