Cross-platform windowing and multimedia library
Project description
pyglet
pyglet provides an object-oriented programming interface for developing games and other visually-rich applications for Windows, Mac OS X and Linux.
- Pyglet Documentation
- Pyglet Wiki
- Pyglet on PyPI
- Pyglet Discord Server
- Pyglet mailing list
- Pyglet Website
Pyglet has an active developer and user community. If you find a bug, please open an issue.
Requirements
pyglet runs under Python 2.7, and 3.4+. The entire codebase is fully 2/3 dual compatible, making use of the future module for backwards compatibility with legacy Python. Being written in pure Python, it also works on other Python interpreters such as PyPy. pyglet works on the following operating systems:
- Windows XP or later
- Mac OS X 10.3 or later
- Linux, with the following libraries (most recent distributions will have
these in a default installation):
- OpenGL and GLX
- GDK 2.0+ or PIL (required for loading images other than PNG and BMP)
- OpenAL or Pulseaudio (required for playing audio)
Installation
If you’re reading this README from a source distribution, you can install pyglet with:
python setup.py install
pyglet is also pip installable from PyPi:
pip install –upgrade pyglet –user
There are no compilation steps during the installation; if you prefer, you can simply add this directory to your PYTHONPATH and use pyglet without installing it. You can also copy pyglet directly into your project folder.
If you want to build the documentation yourself, please check the README file in the doc directory.
Testing
pyglet makes use of pytest for it’s test suite.
py.test tests/
Please check the documentation for more information about running and writing tests.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Filename, size | File type | Python version | Upload date | Hashes |
---|---|---|---|---|
Filename, size pyglet-1.4.2-py2.py3-none-any.whl (1.0 MB) | File type Wheel | Python version py2.py3 | Upload date | Hashes View |
Filename, size pyglet-1.4.2.tar.gz (4.0 MB) | File type Source | Python version None | Upload date | Hashes View |
Hashes for pyglet-1.4.2-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c1c49b2c384bc310aa3dca87817d2b4d22383e35776e73dace5a38235f0992a4 |
|
MD5 | 8399553000397eb7fbe7a02a564a602f |
|
BLAKE2-256 | d4ebe3742cc05eb640b6b59618ad8c8ae38f43aa57539e4cd1b40576c93afccb |