pyglet
pyglet is a cross-platform games and multimedia package.
Decision gist · record as of 2026-08-14
Yes, if you are building games or multimedia applications in Python and want a lightweight, dependency-free solution. The active maintenance, zero runtime dependencies, and cross-platform support make it a solid choice. However, verify the license terms for your use case, and be aware that version 3.0 is coming soon with potential API changes if you use OpenGL directly.AI-flagged interpretation of the facts on this page — verify before relying
Before you install
- Requires Python 3.8+.
- On Linux, system libraries (OpenGL/GLX, GDK 2.0+ or Pillow, OpenAL or Pulseaudio) must be installed.
- OpenGL 3.3+ is required as of pyglet 2.0.
License · maintenance · safety
(unclear) — License treatment is unclear from the metadata, though the description states pyglet is provided under the BSD open-source license allowing both commercial and open-source use. Verify the actual license terms before relying on this for commercial projects.
last release 2026-08-01 (13 days)
0 known vulnerabilities (OSV.dev, 2026-08-14) · 2,830,028 downloads/mo, #2,875 on PyPI
Alternatives
Verify before relying
pip install pyglet
import pyglet
window = pyglet.window.Window()
pyglet.app.run()- Exact scope of BSD license terms and any restrictions for specific use cases
- Whether version 3.0 migration will require significant code changes for existing applications
- Performance characteristics when rendering thousands of objects on different platforms
What it is and what it does
pyglet is a pure-Python cross-platform library for building games and multimedia applications on Windows, macOS, and Linux. It handles windowing, OpenGL graphics rendering, input events (keyboard, mouse, joysticks), and multimedia playback (images, audio, video) without requiring external Python dependencies—only system libraries for audio and graphics on Linux. The library uses ctypes to interface with native platform libraries, allowing it to run on standard Python and PyPy without compilation steps.
Developers use pyglet to build 2D and 3D games, interactive visualizations, and multimedia applications. It supports multiple windows, multi-monitor setups, and fullscreen rendering. For audio and video, it can use FFmpeg for a wide range of compressed formats or rely on built-in support for standard formats like WAV and PNG. The library is actively maintained with an upcoming major version (3.0) that will add multiple rendering backends and WebGL support.
Use it for
- Build 2D or 3D games with OpenGL graphics and cross-platform input handling
- Create interactive multimedia applications with audio and video playback
- Develop fullscreen applications or games that span multiple monitors
- Package and distribute Python games using tools like PyInstaller or Nuitka
- Build visualizations or simulations requiring real-time graphics rendering
Worth the install?
AI-flagged interpretation of the facts on this page. Verify before relying on it.
Yes, if you are building games or multimedia applications in Python and want a lightweight, dependency-free solution.
The active maintenance, zero runtime dependencies, and cross-platform support make it a solid choice. However, verify the license terms for your use case, and be aware that version 3.0 is coming soon with potential API changes if you use OpenGL directly.
Install
pyglet on PyPI
Before you install
Installation is straightforward with no external runtime dependencies beyond Python itself. The package is actively maintained with a recent release, and being pure Python with no compilation steps, it installs cleanly across platforms.
Requires Python 3.8+. On Linux, system libraries (OpenGL/GLX, GDK 2.0+ or Pillow, OpenAL or Pulseaudio) must be installed. OpenGL 3.3+ is required as of pyglet 2.0.
License in practice
License treatment is unclear from the metadata, though the description states pyglet is provided under the BSD open-source license allowing both commercial and open-source use. Verify the actual license terms before relying on this for commercial projects.
Quickstart
pip install pyglet
import pyglet
window = pyglet.window.Window()
pyglet.app.run()
Verify before relying
- Exact scope of BSD license terms and any restrictions for specific use cases
- Whether version 3.0 migration will require significant code changes for existing applications
- Performance characteristics when rendering thousands of objects on different platforms
Package facts
| License | Not declared unclear |
| Python support | Supports the current Python release >=3.8 |
| Install friction | Low. Pure-Python wheel |
| Runtime dependencies | None |
| Maintenance | Actively maintained 13 days since the last release |
| First released | |
| Downloads | 2,830,028 / month, #2,875 on PyPI 30-day window, as of 2026-08-14 |
| Known vulnerabilities | None known OSV.dev, checked 2026-08-14 |
Evidence: pyglet-2.1.16-py3-none-any.whl
Tags
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 › “opengl python multimedia”
- pygletpyglet is a cross-platform windowing and multimedia library for…
- PyOpenGLPyOpenGL provides standard OpenGL bindings for Python, enabling…
- glcontextProvides portable OpenGL context creation across Windows, Linux, and…
Give your agent the search over MCP, or paste the wish link into any chat.
More Graphics packages
Pillow adds image processing capabilities to Python, providing file format support, efficient pixel data handling, and image manipulation operations.
Install it if you need to work with images in Python—it is the de facto standard for this task.
fonttools manipulates font files in multiple formats (TrueType, OpenType, AFM, Type 1, Mac-specific) and includes TTX, a tool to convert fonts to and from XML text format.
Install it if you need to read, write, or manipulate fonts programmatically or via the TTX command-line tool.
Enables matplotlib figures to display inline directly within Jupyter notebooks and IPython environments instead of in separate windows.
PyMuPDF extracts, renders, converts, and manipulates PDF and other document formats (XPS, EPUB, images, Office files via Pro) with high performance, providing text, tables, images, and metadata with precise layout information.
The AGPL license requires careful review if you are building proprietary software—commercial licensing is available from Artifex.
pypdfium2 is a Python binding to PDFium that enables PDF rendering, inspection, manipulation, and creation through a ctypes interface to Google's PDFium library.
Install it if you need PDF rendering, inspection, or manipulation in Python; the medium install friction is offset by comprehensive platform support.
Altair is a declarative Python library for creating interactive statistical visualizations by writing simple, readable code that compiles to Vega-Lite specifications.
See also glcontext · moderngl-window · dearpygui · glfw · moderngl · PyMonCtl · wgpu · PyOpenGL · imgui · pyvips-binary