PyOpenGL
Standard OpenGL bindings for Python
Decision gist · record as of 2026-08-14
Yes, if you need direct OpenGL access from Python. PyOpenGL is the standard choice for this use case, actively maintained, permissively licensed, and has no runtime dependencies. Install it only if your project requires low-level graphics control; higher-level libraries may be simpler for many applications. Requires a working OpenGL environment on the target system.AI-flagged interpretation of the facts on this page — verify before relying
Before you install
- Requires OpenGL libraries and a graphics context on the host system; headless environments will not work.
- Installation is straightforward via pip with no runtime dependencies.
- The package is actively maintained with a recent commit on 2026-07-15 and has been stable since its initial release in 2006.
License · maintenance · safety
permissive license (permissive) — Licensed under a permissive BSD license, allowing use in both open-source and proprietary projects without significant restrictions.
last release 2025-08-18 (361 days) · last repo commit 2026-07-15 · 415 stars
0 known vulnerabilities (OSV.dev, 2026-08-14) · 4,991,920 downloads/mo, #2,184 on PyPI
Alternatives
Verify before relying
pip install PyOpenGL
import PyOpenGL
# Then use OpenGL bindings for graphics operations- Whether PyOpenGL_accelerate (optional compiled extension) is necessary for performance-critical applications.
- Current Python version support boundaries (classifiers list Python 2 and 3 but requires_python is unspecified).
- Whether all OpenGL extensions (EXT, ARB) are fully supported in version 3.1.10.
- Specific module structure and import patterns for typical usage.
What it is and what it does
PyOpenGL is a mature Python wrapper around the OpenGL graphics API and related libraries (GLU, GLUT, GLX, GLE, Mesa). It uses ctypes to provide direct bindings without requiring compiled C extensions, making it portable across platforms. The package exposes the OpenGL API surface, allowing developers to write 3D graphics applications directly in Python.
The library is designed for developers building graphics applications, visualizations, or games. It works by dynamically loading OpenGL libraries at runtime, so it depends on the host system having OpenGL drivers and libraries installed. An optional companion package, PyOpenGL_accelerate, provides compiled extensions for performance-sensitive code paths, though the base package functions without it.
Use it for
- Building 3D graphics applications and games using OpenGL directly from Python.
- Creating scientific visualizations that require real-time 3D rendering.
- Prototyping graphics algorithms and shaders without leaving Python.
- Educational projects to learn OpenGL concepts with Python's accessibility.
- Integrating OpenGL rendering into larger Python applications via windowing toolkits.
Worth the install?
AI-flagged interpretation of the facts on this page. Verify before relying on it.
Yes, if you need direct OpenGL access from Python.
PyOpenGL is the standard choice for this use case, actively maintained, permissively licensed, and has no runtime dependencies. Install it only if your project requires low-level graphics control; higher-level libraries may be simpler for many applications. Requires a working OpenGL environment on the target system.
Install
pyopengl on PyPI
Before you install
Installation is straightforward via pip with no runtime dependencies. The package is actively maintained with a recent commit on 2026-07-15 and has been stable since its initial release in 2006.
Requires OpenGL libraries and a graphics context on the host system; headless environments will not work.
License in practice
Licensed under a permissive BSD license, allowing use in both open-source and proprietary projects without significant restrictions.
Quickstart
pip install PyOpenGL
import PyOpenGL
# Then use OpenGL bindings for graphics operations
Verify before relying
- Whether PyOpenGL_accelerate (optional compiled extension) is necessary for performance-critical applications.
- Current Python version support boundaries (classifiers list Python 2 and 3 but requires_python is unspecified).
- Whether all OpenGL extensions (EXT, ARB) are fully supported in version 3.1.10.
- Specific module structure and import patterns for typical usage.
Package facts
| License | permissive license permissive |
| Python support | Not specified |
| Install friction | Low. Pure-Python wheel |
| Runtime dependencies | None |
| Maintenance | Actively maintained 361 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 4,991,920 / month, #2,184 on PyPI 30-day window, as of 2026-08-14 |
| Known vulnerabilities | None known OSV.dev, checked 2026-08-14 |
| Classifiers | Intended Audience :: DevelopersLicense :: OSI Approved :: BSD LicenseProgramming Language :: PythonProgramming Language :: Python :: 2Programming Language :: Python :: 3Topic :: Multimedia :: Graphics :: 3D RenderingTopic :: Software Development :: Libraries :: Python Modules |
Evidence: pyopengl-3.1.10-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 bindings”
- PyOpenGLPyOpenGL provides standard OpenGL bindings for Python, enabling…
- glfwPython bindings for GLFW 3 that wrap the C library via ctypes,…
- pyglmPyGLM provides Python bindings to OpenGL Mathematics (GLM), a C++…
Give your agent the search over MCP, or paste the wish link into any chat.
More Python Modules packages
Converts domain names between Unicode and ASCII-compatible encoding (Punycode) according to IDNA 2008 and Unicode Technical Standard 46, with security validation and broader script coverage than the standard library.
Install it if you work with internationalized domain names, need to validate domains, or use HTTP clients that depend on it transitively.
Setuptools is a Python build backend and package management tool that handles building, distributing, and installing Python packages, including support for C/C++ extension modules.
PyYAML parses and emits YAML 1.1 data format, enabling serialization and deserialization of configuration files and Python objects to and from human-readable YAML text.
Pydantic validates Python data structures against type hints, coercing and checking input at runtime to ensure it matches a declared schema.
Provides reusable metadata objects for use with PEP-593 `typing.Annotated` to express common constraints like bounds, collection sizes, and predicates on types.
Install it if you use or build libraries that need to express type constraints in a standardized, inspectable way—or if you want to annotate your own types with…
Provides runtime tools to inspect and introspect Python type annotations, enabling programmatic examination of type hints at execution time.
See also glfw · PyOpenGL-accelerate · moderngl · moderngl-window · pyglm · vispy · glcontext · PyGEL3D · Panda3D · pyglet