Skip to content
pyglet is a cross-platform windowing and multimedia library for Python, for developing games and other visually rich applications.
Python Other
  1. Python 98.2%
  2. Other 1.8%
Branch: master
Clone or download
Latest commit 5334753 Aug 26, 2019
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
contrib Record recent changes in release notes. Jul 16, 2019
doc Adjust "make dist" commands, since PyPi only supports a single sdist … Aug 13, 2019
examples Added a new model example in examples/3dmodel/ Aug 20, 2019
experimental Use print() function in both Python 2 and Python 3 Aug 2, 2019
pyglet Clarified docstrings for get_decoders/encoders in image/media/model m… Aug 26, 2019
tests Rewrite resource integration tests, removing invalid use cases. Aug 13, 2019
tools Adjust "make dist" commands, since PyPi only supports a single sdist … Aug 13, 2019
website Update README.rst Aug 26, 2019
.coveragerc Add coverage configuration for use with pytest-cov Sep 14, 2015
.gitignore Organize gitigore + add common venvs Jul 21, 2019
.travis.yml Tweaked Travis-CI due to OSX breakage. Aug 16, 2019
DESIGN Rename pyglet.text -> pyglet.font. Mar 14, 2007
LICENSE Ready 1.4.0 release. Jul 5, 2019
MANIFEST.in Update setup.py with project_urls and long_description. Jul 10, 2019
NOTICE Added Claudio Canepa to the contributors list Apr 1, 2014
README.rst Update README.rst Aug 6, 2019
RELEASE_NOTES Make some text.runlist APIs consistent. Aug 21, 2019
make.py Adjust "make dist" commands, since PyPi only supports a single sdist … Aug 13, 2019
pytest.ini Add WIP website, and update Travis configuration to automatically dep… Aug 3, 2019
setup.cfg Create a universal wheel for both py2 and py3. Add future as dependen… Jun 30, 2015
setup.py Ready 1.4.2 release. Aug 12, 2019

README.rst

pyglet

pyglet provides an object-oriented programming interface for developing games and other visually-rich applications for Windows, Mac OS X and Linux.

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.

You can’t perform that action at this time.