$npx skillfedfor your agent

PyVirtualDisplay

python wrapper for Xvfb, Xephyr and Xvnc

With conditionsPyPI TestingReleased Feb 20222.2M downloads / moBSDPure Python

Decision gist · record as of 2026-08-14

pure-Python wheel — PyVirtualDisplay-3.0-py3-none-any.whl
v3.0 · released 2022-02-13

Yes, if you need headless X11 GUI automation on Linux and can accept dormant maintenance. The package is stable, has no dependencies, and works reliably for its core use case. Install the underlying X server backend (xvfb, xephyr, or tigervnc-server) separately on your system first. Not suitable for macOS or Windows.AI-flagged interpretation of the facts on this page — verify before relying

Before you install

  • Requires Xvfb, Xephyr, or Xvnc to be installed on the system (e.g., `sudo apt-get install xvfb` on Ubuntu).
  • Only works on Linux with X11; not compatible with Windows or macOS.
  • Low install friction with no runtime dependencies.

License · maintenance · safety

BSD (permissive) — BSD license is permissive; you can use this in commercial and proprietary projects with minimal restrictions.

last release 2022-02-13 (1643 days) · last repo commit 2024-02-19 · 780 stars

0 known vulnerabilities (OSV.dev, 2026-08-14) · 2,214,308 downloads/mo, #3,204 on PyPI

Verify before relying

from pyvirtualdisplay import Display

with Display(visible=False, size=(100, 60)) as disp:
    # Run GUI applications here
    print(disp.is_alive())  # True
# Display automatically stopped
  • Whether the package works reliably with Python 3.12 (description mentions it but classifiers only list through 3.11).
  • Current status of thread-safety guarantees and whether manage_global_env=False is production-ready.
  • Whether dormant maintenance poses risk for future X11 ecosystem changes or Python version incompatibilities.
Same gist for agents: .md · .json

What it is and what it does

PyVirtualDisplay is a Python wrapper that manages virtual X11 display servers (Xvfb, Xephyr, Xvnc) on Linux. It lets you run GUI applications and capture their output without a physical display or graphical environment. The package handles display lifecycle (start/stop), environment variable management, and optional screenshot capture via its SmartDisplay submodule.

Typical use is in CI/CD pipelines, automated testing, and server environments where you need to run GUI tools headlessly. It requires the underlying X server backend (Xvfb, Xephyr, or Xvnc) to be installed on the system separately; PyVirtualDisplay only wraps and controls them. The context-manager API makes cleanup automatic.

Use it for

  • Run GUI tests in CI/CD without a display server, capturing pass/fail via virtual display.
  • Automate screenshots of X11 applications running on a headless server.
  • Test applications at specific resolutions or color depths by configuring virtual display parameters.
  • Expose a GUI application via VNC by running it on a virtual Xvnc backend.
  • Run multiple nested X servers concurrently for complex testing scenarios.

Worth the install?

AI-flagged interpretation of the facts on this page. Verify before relying on it.

With conditions

Yes, if you need headless X11 GUI automation on Linux and can accept dormant maintenance.

The package is stable, has no dependencies, and works reliably for its core use case. Install the underlying X server backend (xvfb, xephyr, or tigervnc-server) separately on your system first. Not suitable for macOS or Windows.

Install

pyvirtualdisplay on PyPI

Before you install

Low install friction with no runtime dependencies. Maintenance is dormant—last release was in 2022 and no commits since February 2024—but the package is stable and widely used (780 GitHub stars, top 5000 on PyPI).

Requires Xvfb, Xephyr, or Xvnc to be installed on the system (e.g., `sudo apt-get install xvfb` on Ubuntu). Only works on Linux with X11; not compatible with Windows or macOS.

License in practice

BSD license is permissive; you can use this in commercial and proprietary projects with minimal restrictions.

Quickstart

from pyvirtualdisplay import Display

with Display(visible=False, size=(100, 60)) as disp:
    # Run GUI applications here
    print(disp.is_alive())  # True
# Display automatically stopped

Verify before relying

  • Whether the package works reliably with Python 3.12 (description mentions it but classifiers only list through 3.11).
  • Current status of thread-safety guarantees and whether manage_global_env=False is production-ready.
  • Whether dormant maintenance poses risk for future X11 ecosystem changes or Python version incompatibilities.

Package facts

LicenseBSD permissive
Python supportNot specified
Install frictionLow. Pure-Python wheel
Runtime dependenciesNone
MaintenanceDormant 1,643 days since the last release
Last repo commit
First released
Downloads2,214,308 / month, #3,204 on PyPI 30-day window, as of 2026-08-14
Known vulnerabilitiesNone known OSV.dev, checked 2026-08-14
Classifiers
License :: OSI Approved :: BSD LicenseNatural Language :: EnglishOperating System :: OS IndependentProgramming Language :: PythonProgramming Language :: Python :: 3Programming Language :: Python :: 3 :: OnlyProgramming Language :: Python :: 3.10Programming Language :: Python :: 3.6Programming Language :: Python :: 3.7Programming Language :: Python :: 3.8Programming Language :: Python :: 3.9

Evidence: PyVirtualDisplay-3.0-py3-none-any.whl

Tags

Capabilities
virtual X11 displayheadless GUI testingXvfb wrapperautomated screenshot captureX server automationGUI testing without displayvirtual display server
Topics
headless-testingx11-automationlinux-only
PyPI keywords
XvfbXephyrXwrapper

Let your AI agent find packages like this

Example. Real query, live index.

You found this page by searching. An agent finds it by wishing: SkillFed indexes 14,416 PyPI packages by what they can do, searchable in plain language.

wish › “GUI testing without display”

  • PyVirtualDisplayWraps Xvfb, Xephyr, and Xvnc to create virtual X11 displays for…
  • xvfbwrapperManages headless X11 virtual displays using Xvfb, allowing GUI…
  • pytest-xvfbA pytest plugin that automatically runs tests with Xvfb (or…

Give your agent the search over MCP, or paste the wish link into any chat.

More Testing packages

pluggy Worth it
PyPI · Libraries · released May 2025

Pluggy provides a plugin system that lets you define hook specifications and register implementations to be called in sequence, enabling extensible Python applications without tight coupling.

Install it if you're building an extensible application or framework.

MITpure Python · 3.9+aging
1.3Bdownloads / mo
pytest Worth it
PyPI · Libraries · released Jun 2026

pytest is a testing framework that lets you write test functions using plain assert statements and automatically discovers and runs them, with detailed failure reporting.

MITpure Python · 3.10+
1.1Bdownloads / mo
virtualenv Worth it
PyPI · Libraries · released Aug 2026

virtualenv creates isolated Python environments where packages can be installed independently without affecting the system Python or other projects.

MITpure Python · 3.9+
532.9Mdownloads / mo
coverage Worth it
PyPI · Testing · released Aug 2026

Coverage.py measures which lines of Python code are executed during test runs, reporting coverage percentages and identifying untested code paths.

Install it if you want to measure test completeness or enforce coverage thresholds in your project.

permissive licensepure Python · 3.10+
335.8Mdownloads / mo
pytest-asyncio Worth it
PyPI · Testing · released May 2026

pytest-asyncio is a pytest plugin that enables writing and running async test functions using the asyncio library, allowing developers to await code directly within test cases.

Install it if you write tests for any asyncio-based code.

Apache-2.0pure Python · 3.10+
275.9Mdownloads / mo
pytest-json-ctrf Worth it
PyPI · Testing · released Jul 2026

A pytest plugin that generates test reports in Common Test Report Format (CTRF) as JSON, compatible with pytest-xdist and pytest-playwright for distributed and browser-based testing.

Install it if you need CTRF-formatted test output for CI/CD integration or cross-tool reporting.

MITpure Python · 3.8+
273.0Mdownloads / mo

See also pytest-xvfb · sbvirtualdisplay · vncdotool · xvfbwrapper · xlib · pywebview · nvitop · pytest-playwright-visual · html2image · MouseInfo