A Python implementation of the Unity Engine


Keywords
gamedev, gamedevelopment, glfw, pysdl2, python, pyunity, unity, unity-engine
License
MIT
Install
pip install pyunity==0.8.4

Documentation

PyUnity

Documentation Status License PyPI version Python version Language grade: Python Total alerts Build status Discord Gitter GitHub Repo stars

Version 0.8.3 (in development)

PyUnity is a pure Python 3D Game Engine that was inspired by the structure of the Unity Game Engine. This does not mean that PyUnity are bindings for the UnityEngine. However, this project has been made to facilitate any programmer, beginner or advanced, novice or veteran.

Disclaimer

As we have said above, this is not a set of bindings for the UnityEngine, but a pure Python library to aid in making 3D games in Python.

Installing

To install PyUnity for Linux distributions based on Ubuntu or Debian, use:

> pip3 install pyunity

To install PyUnity for other operating systems, use pip:

> pip install pyunity

Alternatively, you can clone the repository to build the package from source. The latest version is on the master branch and you can build as follows:

> git clone https://github.com/pyunity/pyunity
> git checkout master
> python setup.py install

The latest builds are on the develop branch which is the default branch. These builds are sometimes broken, so use at your own risk.

> git clone https://github.com/pyunity/pyunity
> python setup.py install

Its only dependencies are PyOpenGL, PySDL2, GLFW, Pillow and PyGLM. Microsoft Visual C++ Build Tools are required on Windows for building yourself.

Links

For more information check out the API documentation. There we offer some tutorials on the basics of PyUnity, as well as all modules and utility functions that come with it.

If you would like to contribute, please first see the contributing guidelines, check out the latest issues and then make a pull request.