NewYour coding agent can read the release notes before it upgrades.Set up the MCP server →
PyPI
PyPI, #2337 most downloaded on PyPI
pyglet is a cross-platform games and multimedia package.
Latest stable
2.1.19
Last release 13 days ago
09 Nov 2026
Ships fairly regularly
a new release about every 4 weeks
Most releases are documented
notes for 44 of the last 60 stable releases
2 versions withdrawn
withdrawn after publishing
17 years old
164 releases · first in 2010
Drag across the ruler to compare, or tap a release to open it.
v3.0 development point-in-time release.
v3.0 development point-in-time release.
Nothing published for this version
v3.0 development point-in-time release.
v3.0 development point-in-time release.
Your coding agent can read these notes before it upgrades. Set up the MCP server →
Nothing published for this version
Ready v3.0.dev8 release
Ready v3.0.dev8 release
Point in time snapshot of the upcoming v3.0 release
Point in time snapshot of the upcoming v3.0 release
Ready v3.0.dev6 release
Ready v3.0.dev6 release
Point in time snapshot of the upcoming v3.0 release, with new Camera additions.
Point in time snapshot of the upcoming v3.0 release, with new Camera additions.
Point in time snapshot of the upcoming v3.0 release, BEFORE Camera additions.
Point in time snapshot of the upcoming v3.0 release, BEFORE Camera additions.
Point in time snapshot of the upcoming v3.0 release.
Point in time snapshot of the upcoming v3.0 release.
Nothing published for this version
pyglet v3.0 development release
pyglet v3.0 development release
Minor maintenance bump to fix flit build issue.
Minor maintenance bump to fix flit build issue.
Nothing published for this version
Nothing published for this version
math: Fix Mat3.scale and Mat4.translate to match Mat4 conventions.
linux.fontconfig: Fix incorrect FcFreeTypeQueryFace argument. #1454
linux.fontconfig: Fix incorrect FcFreeTypeQueryFace argument. #1454
shapes: Handle ZeroDivisionError and domain error when calculating miter scale (#1418) window: On macOS, fix RecursionError when resizing Windows. (#1
shapes: Handle ZeroDivisionError and domain error when calculating miter scale (#1418) window: On macOS, fix RecursionError when resizing Windows. (#1421) text: Fix larger sized characters causing wrap issues. (#1426)
typing: Fix the Label type hints for font_family. (#1407) typing: Add type hints to the Quaternion.from_mat* methods. (#1406) typing: Provide concrete typing for Window based on selected platform. (#1409) docs: Fix typo. (#1416)
bugfix: check Windows version before importing shcore. by @thefatwhale in https://github.com/pyglet/pyglet/pull/1402
shcore. by @thefatwhale in https://github.com/pyglet/pyglet/pull/1402Full Changelog: https://github.com/pyglet/pyglet/compare/v2.1.12...v2.1.13
shapes: When vertex_lists are created, ensure that the vertex data is initialized for rotation.
shapes: When vertex_lists are created, ensure that the vertex data is initialized for rotation.
shader: Add some missing Uniform type definitions that were missed for less common types. #1380 ffmpeg: Remove some missing attributes (libavformat ve
shader: Add some missing Uniform type definitions that were missed for less common types. #1380 ffmpeg: Remove some missing attributes (libavformat version loading) that have been removed in FFMpeg 8.0.
media.ffmpeg: Fix source padding issue for some sources. #1386 window.win32: Fix memory address issues when queuing events during Windows OS window creation. #1382 font.dwrite: Fix bug in font_files indixing (use first object, not font_fact index).
media: Add support for FFmpeg 8.0 (#1365) window: Update default dpi_scaling option to "platform". (#1383) window: Convert the Window event queue to a
media: Add support for FFmpeg 8.0 (#1365) window: Update default dpi_scaling option to "platform". (#1383) window: Convert the Window event queue to a deque. (#1362) input.evdev: Do not attempt to reuse Controller instances on re-connect, as naming conflicts can occur.
text: fix typing of Label.init's align argument. (#1361) text: Update the passed args for attributed text. (#1379) shader: Fixed number of elements for GL_FLOAT_MAT3 (9, not 6) in pyglet.graphics.shader._uniform_setters. (#1364)
docs: Improve missing or underdeveloped math doc (#1295) input: Add new Controller properties for polling - Controller.dpad, Controller.leftanalog, Co
docs: Improve missing or underdeveloped math doc (#1295) input: Add new Controller properties for polling - Controller.dpad, Controller.leftanalog, Controller.rightanalog Vec2s.
input.linux.evdev: Add support for the SYN_DROPPED event, to prevent "stuck" controls when events are lost. input.linux.evdev: Implement missing EvdevDevice.poll method. graphics.shaders: Fix attribute pointer issue for integers. (#1351) window.headless: Add missing abstract methods to HeadlessScreen (#1350)
docs: Improve camera example documentation. (#1326) gl: Add type hints to GL functions. (#1237) (#1325) font: Add font shaping support to MacOSX. wind
docs: Improve camera example documentation. (#1326)
gl: Add type hints to GL functions. (#1237) (#1325)
font: Add font shaping support to MacOSX.
window: Add support for MacOSX to have transparent windows and overlays. (#1339)
window: Add new on_clipboard_copy & on_clipboard_paste events, and add support to the Caret class. (#1313)
examples: Add a get_mouse_scale helper method to the FixedResolution class.
math: Remove if checks from __matmul__ operations for small performance improvement.
font: Fix get_text_size for DirectWrite to include trailing whitespaces. font: Cache glyphs based on unique ID and indices to reduce cache collions. (#1346) font: Fix issue with inline elements crashing in a non-multiline scenario. (#1346) media: Fix WMFDecoder delivering audio data as float. (#1315) (#1316) window: Fix bugs with transparent framebuffers for transparent windows. (#1333) window: Adjust software cursor scale factor for MacOS for HiDPI. (#1343)
Nothing published for this version
⚠️ This release is part of the new 2.1 series, and has BREAKING CHANGES from the 2.0 series. If updating from 2.X, please see the migration guide in t…
⚠️ This release is part of the new 2.1 series, and has BREAKING CHANGES from the 2.0 series. If updating from 2.X, please see the migration guide in the documentation for more details: https://pyglet.readthedocs.io/en/latest/programming_guide/migration.html
Nothing published for this version
⚠️ This release is part of the new 2.1 series, and has BREAKING CHANGES from the 2.0 series. Please see the migration guide in the documentation for m…
⚠️ This release is part of the new 2.1 series, and has BREAKING CHANGES from the 2.0 series. Please see the migration guide in the documentation for more details: https://pyglet.readthedocs.io/en/latest/programming_guide/migration.html
⚠️ This release is part of the new 2.1 series, and has BREAKING CHANGES from the 2.0 series. Please see the migration guide in the documentation for m…
⚠️ This release is part of the new 2.1 series, and has BREAKING CHANGES from the 2.0 series. Please see the migration guide in the documentation for more details: https://pyglet.readthedocs.io/en/latest/programming_guide/migration.html
:warning: This release is part of the new 2.1 series, and has BREAKING CHANGES from the 2.0 series. Please see the migration guide in the documentatio…
:warning: This release is part of the new 2.1 series, and has BREAKING CHANGES from the 2.0 series. Please see the migration guide in the documentation for more details: https://pyglet.readthedocs.io/en/latest/programming_guide/migration.html
This is the first release in the 2.1 series, and has BREAKING CHANGES from the 2.0 series. Please see the migration guide in the documentation for mor…
This is the first release in the 2.1 series, and has BREAKING CHANGES from the 2.0 series. Please see the migration guide in the documentation for more details: https://pyglet.readthedocs.io/en/latest/programming_guide/migration.html
Vec2s for analog sticks and directional-pad movement.pyglet.canvas module has been renamed to pyglet.display.Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
font: Fix DirectWrite bitmap width being cut off for some fonts.
media: add support for FFmpeg 7.x
docs: update vertexbuffer.py module docstrings
docs: update vertexbuffer.py module docstrings
shader: add support for OpenGL structures in UBO's
sys.modules['sphinx'] into doc/conf.py to prevent conflicts with jupyter #1215image: Use dedicated shader for blitting to fix blending issues.
sub_data to commit to better reflect it's usage. (#1186)isinstance check for VertexList and go off the class variable that is set.PreciseStreamingSource; Move audio buffering back into Players. (#1175)sprite: Deprecate AdvancedSprite, and merge functionality into default Sprite class.
blend_mode property to change BLEND_MODE without needing to re-create the Sprite.AdvancedSprite, and merge functionality into default Sprite class.get_sprite_group method, allowing easy usage of custom SpriteGroups in subclasses.Texture.blit has been inlined. (#1109)thickness property to Box shapes.pyglet.libs.ioctl module, to consolidate shared code on Linux.match statement support to Vec classes.draw or draw_indexed.shader_bind_management option for users who want to have more control over UBO binding behavior.particles module.on_style_text to be more efficient.thickness property to Box.Arc thickness property.font: Clean up win32 legacy font renderer to remove unused or outdated code.
) to POINTER which causes XAudio2 to fail to be imported. (#1068)Nothing published for this version
Nothing published for this version
Note: This version is a quick bugfix release that superceeds v2.0.11. The previous release contained a bug that broke Batch/Group migration, which has
Note: This version is a quick bugfix release that superceeds v2.0.11. The previous release contained a bug that broke Batch/Group migration, which has now been fixed (and a unit test added for).
Nothing published for this version
sprite: moving Sprites is now about 35% faster (as tested on R5 5600X)
geoshader_sprite.py that is more complex, but faster than the standard Spritenet module with Server/Client proof of conceptContext.create_program method to assist in shader reuseapp: Passing None to pyglet.app.run will disable automatic Window redraws.
None to pyglet.app.run will disable automatic Window redraws.border thickness setter to BorderedRectangle.Sprite width & height properties are now settable, allowing scaling by pixels
in operatorgui: Add alpha value to the Caret's default color.
Initialize AudioDriver when media module is imported, prevent pause on first sound playback.
windows.key: add support for extended function keys
input.win32: ControlManager now supports both DirectInput and XInput devices.
shapes: Batch and Group can now be changed on shapes after instantiation, similar to Sprites.
filename attribute. macOS not yet implemented.pyglet.options['dw_legacy_naming']
to True will restore the old behavior, but this may be removed at a later date.velocity[:] = 1, 2)font_comparison.py example.One column per quarter.