$npx skillfedfor your agent

moderngl-window

A cross platform helper library for ModernGL making window creation and resource loading simple

Worth itPyPI GraphicsReleased Jan 2025216.3K downloads / mopermissive licensePure Python

Decision gist · record as of 2026-08-14

pure-Python wheel — moderngl_window-3.1.1-py3-none-any.whl
v3.1.1 · released 2025-01-19 · Python >=3.9 · 5 runtime deps: moderngl, pyglet, numpy, pyglm, Pillow

Yes. The package is actively maintained, has no known vulnerabilities, installs with low friction, and solves a genuine cross-platform pain point for OpenGL development. It is well-suited for anyone building 3D graphics applications with ModernGL who wants to avoid reimplementing window management and resource loading for each platform.AI-flagged interpretation of the facts on this page — verify before relying

Before you install

  • Requires a working OpenGL context; windowing backend (pyglet, pygame, GLFW, SDL2, PySide2, PyQt5, or tkinter) must be installed separately or specified at runtime.
  • Low install friction with a pure-Python wheel distribution.
  • The package is actively maintained with a recent commit on 2026-07-11 and draws on five runtime dependencies (moderngl, pyglet, numpy, pyglm, Pillow) that are themselves well-established.

License · maintenance · safety

permissive license (permissive) — Licensed under the MIT License (permissive), allowing use in commercial and private projects with minimal restrictions.

last release 2025-01-19 (572 days) · last repo commit 2026-07-11 · 2,317 stars

0 known vulnerabilities (OSV.dev, 2026-08-14) · 216,278 downloads/mo, #9,383 on PyPI

Verify before relying

pip install moderngl-window

import moderngl_window as mglw

class Test(mglw.WindowConfig):
    gl_version = (3, 3)
    def on_render(self, time: float, frametime: float):
        self.ctx.clear(1.0, 0.0, 0.0, 0.0)

Test.run()
  • Whether all advertised windowing backends (pygame, GLFW, SDL2, PySide2, PyQt5, tkinter) are included as optional dependencies or must be installed separately.
  • Performance characteristics and typical use cases for large-scale 3D scene rendering or real-time graphics applications.
Same gist for agents: .md · .json

What it is and what it does

moderngl-window is a cross-platform utility library that abstracts away the complexity of setting up OpenGL windows and loading graphics resources. It sits on top of ModernGL and provides a unified interface for creating windows using your choice of backend (pyglet, pygame, GLFW, SDL2, PySide2, PyQt5, or tkinter), handling keyboard and mouse events consistently across platforms. The library also bundles loaders for 2D textures, texture arrays, cube maps, GLSL shaders, and 3D models in OBJ, GLTF 2.0, and STL formats.

The design emphasizes flexibility: you can use the simple WindowConfig class to get started immediately, or drop down to lower-level APIs for fine-grained control. It depends on moderngl for the core rendering, pyglet for windowing, numpy and pyglm for math operations, and Pillow for image loading. The package is actively maintained, supports Python 3.9 and later, and has been tested on Windows, Linux, and macOS.

Use it for

  • Build a cross-platform 3D visualization tool that works identically on Windows, Linux, and macOS without rewriting window code.
  • Prototype interactive graphics applications using ModernGL without manually handling platform-specific windowing details.
  • Load and render 3D models and textures from common formats (OBJ, GLTF, STL, PNG, JPEG) with minimal boilerplate.
  • Create educational graphics demos or scientific visualizations that need consistent event handling across multiple windowing systems.
  • Develop games or interactive applications using a pluggable architecture that lets you swap windowing backends at runtime.

Worth the install?

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

Worth it

Yes.

The package is actively maintained, has no known vulnerabilities, installs with low friction, and solves a genuine cross-platform pain point for OpenGL development. It is well-suited for anyone building 3D graphics applications with ModernGL who wants to avoid reimplementing window management and resource loading for each platform.

Install

moderngl-window on PyPI

Before you install

Low install friction with a pure-Python wheel distribution. The package is actively maintained with a recent commit on 2026-07-11 and draws on five runtime dependencies (moderngl, pyglet, numpy, pyglm, Pillow) that are themselves well-established.

Requires a working OpenGL context; windowing backend (pyglet, pygame, GLFW, SDL2, PySide2, PyQt5, or tkinter) must be installed separately or specified at runtime.

License in practice

Licensed under the MIT License (permissive), allowing use in commercial and private projects with minimal restrictions.

Quickstart

pip install moderngl-window

import moderngl_window as mglw

class Test(mglw.WindowConfig):
    gl_version = (3, 3)
    def on_render(self, time: float, frametime: float):
        self.ctx.clear(1.0, 0.0, 0.0, 0.0)

Test.run()

Verify before relying

  • Whether all advertised windowing backends (pygame, GLFW, SDL2, PySide2, PyQt5, tkinter) are included as optional dependencies or must be installed separately.
  • Performance characteristics and typical use cases for large-scale 3D scene rendering or real-time graphics applications.

Package facts

Licensepermissive license permissive
Python supportSupports the current Python release >=3.9
Install frictionLow. Pure-Python wheel
Runtime dependencies
5 packages
modernglpygletnumpypyglmPillow
MaintenanceActively maintained 572 days since the last release
Last repo commit
First released
Downloads216,278 / month, #9,383 on PyPI 30-day window, as of 2026-08-14
Known vulnerabilitiesNone known OSV.dev, checked 2026-08-14
Classifiers
License :: OSI Approved :: MIT LicenseOperating System :: OS IndependentProgramming Language :: Python :: 3 :: OnlyProgramming Language :: Python :: 3.10Programming Language :: Python :: 3.11Programming Language :: Python :: 3.12Programming Language :: Python :: 3.13Programming Language :: Python :: 3.9Topic :: Games/EntertainmentTopic :: Multimedia :: GraphicsTopic :: Multimedia :: Graphics :: 3D RenderingTopic :: Scientific/Engineering :: Visualization

Evidence: moderngl_window-3.1.1-py3-none-any.whl

Tags

Capabilities
opengl window creation cross-platformmoderngl utility library3d graphics window setupshader and texture loadingcross-platform opengl rendering
Topics
opengl3d-graphicscross-platform

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 window creation cross-platform”

  • moderngl-windowmoderngl-window simplifies OpenGL window creation and resource…
  • glfwPython bindings for GLFW 3 that wrap the C library via ctypes,…
  • 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 Worth it
PyPI · Graphics · released Jul 2026

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.

MIT-CMUcompiled wheel · 3.10+
547.1Mdownloads / mo
fonttools Worth it
PyPI · Text Processing · released May 2026

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.

permissive licensepure Python · 3.10+
235.9Mdownloads / mo
matplotlib-inline Worth it
PyPI · Graphics · released May 2026

Enables matplotlib figures to display inline directly within Jupyter notebooks and IPython environments instead of in separate windows.

BSD-3-Clausepure Python · 3.9+
130.5Mdownloads / mo
pymupdf Worth it
PyPI · Libraries · released Aug 2026

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.

AGPLcompiled wheel · 3.10+
114.9Mdownloads / mo
pypdfium2 Worth it
PyPI · Libraries · released Aug 2026

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.

permissive licensecompiled wheel · 3.6+
76.9Mdownloads / mo
altair Worth it
PyPI · Graphics · released Jun 2026

Altair is a declarative Python library for creating interactive statistical visualizations by writing simple, readable code that compiles to Vega-Lite specifications.

BSD-3-Clausepure Python · 3.10+
54.5Mdownloads / mo

See also glcontext · moderngl · rendercanvas · glfw · PyOpenGL · pyglet · wgpu · pyglm · PyOpenGL-accelerate · panda3d-simplepbr