Skip to main content
Pre-release

This release is a pre-release and may not be stable for production use.

This Sphinx_ 1.0 extension executes programs during the build step and
includes their screenshot into the documentation.
GUI version of the :py:mod:`sphinxcontrib.programoutput` extension.


home: https://github.com/ponty/sphinxcontrib-programscreenshot

documentation: http://ponty.github.com/sphinxcontrib-programscreenshot


Basic usage
============
::

.. program-screenshot:: xmessage hello
:prompt:

How it works
========================

#. start Xvfb headless X server using PyVirtualDisplay_
#. redirect program display to Xvfb server by setting $DISPLAY variable.
#. wait some seconds
#. take screenshot by pyscreenshot_ which needs scrot.
#. use ``.. image::`` directive to display image



Installation
============

General
--------

* install Xvfb_ and Xephyr_
* install PIL_
* install scrot
* install setuptools_ or pip_
* install the program:

if you have setuptools_ installed::

# as root
easy_install sphinxcontrib-programscreenshot

if you have pip_ installed::

# as root
pip install sphinxcontrib-programscreenshot

Ubuntu
----------
::

sudo apt-get install python-setuptools
sudo apt-get install scrot
sudo apt-get install xvfb
sudo apt-get install xserver-xephyr
sudo apt-get install python-imaging
sudo easy_install sphinxcontrib-programscreenshot


Uninstall
----------
::

# as root
pip uninstall sphinxcontrib-programscreenshot


.. _Sphinx: http://sphinx.pocoo.org/latest
.. _`sphinxcontrib-ansi`: http://packages.python.org/sphinxcontrib-ansi
.. _`sphinx-contrib`: http://bitbucket.org/birkenfeld/sphinx-contrib
.. _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
.. _PIL: http://www.pythonware.com/library/pil/
.. _pyscreenshot: https://github.com/ponty/pyscreenshot
.. _PyVirtualDisplay: https://github.com/ponty/PyVirtualDisplay

Metadata

Release files for sphinxcontrib-programscreenshot 0.0.0dev-20110212

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for sphinxcontrib-programscreenshot 0.0.0dev-20110212
File Size Uploaded Provenance Actions
sphinxcontrib-programscreenshot-0.0.0dev-20110212.tar.gz 31.1 kB Without provenance Details for sphinxcontrib-programscreenshot-0.0.0dev-20110212.tar.gz

Release files / sphinxcontrib-programscreenshot-0.0.0dev-20110212.tar.gz

Download URL sphinxcontrib-programscreenshot-0.0.0dev-20110212.tar.gz
Size 31.1 kB
Tags Source
SHA-256 checksum
How to use checksums
edd4a9c583a11b9fedbd5912c2588ae4a322de13e955357a25e5a27e300bb3a6
BLAKE2b-256 checksum
How to use checksums
3a4fc913a005231f406e9adfcaf97f973062118f77220d05cb391cb4c7dfdf52
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Security for sphinxcontrib-programscreenshot 0.0.0dev-20110212

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.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page