Pyglet
Pyglet is a library for the Python programming language that provides an object-oriented application programming interface for the creation of games and other multimedia applications. pyglet runs on Microsoft Windows, macOS, and Linux; it is released under the BSD Licence. pyglet was first created by Alex Holkner.
Features
Pyglet is written entirely in Python. Images, video, and sound files in a range of formats can be done natively but can also be expanded with the libav and ffmpeg libraries. It requires no external dependencies.Text display and formatting
Image and sprite work
- Fast image processing and rendering
- Built-in sprites
- Animated images
- OpenGL shaders supported
- Simple built-in shapes
- Batched rendering
- 3D model rendering
- Resource management
- Clock for processing events and time
- Window events
- Event dispatching
- Context management
Example
from pyglet.window import Window
from pyglet.app import run
window = Window
run