Skip to content
/ PMMA Public template

PMMA is targeted at helping you build applications of any size in Python and C++ by covering areas such as rendering, audio/video playback and much more!

License

Notifications You must be signed in to change notification settings

PycraftDeveloper/PMMA

Repository files navigation

PMMA logo

PMMA (Python Multi-Media API)

PyPI - Wheel Python 3.8 Python 3.9 Python 3.10 Python 3.11 Windows Linux GitHub commit activity GitHub commits since latest release

Build GuideTroubleshootingDocumentation

PMMA is a Python module targeted at helping you build applications in the Python programming language. It does this by providing its own tools covering areas like 2D graphics, noise generation, audio and video playback, event handling, text rendering and much more. The API has two fundamental goals; to make application development in Python easier, whilst also focusing on improving the performance and efficiency of the end result. The API is also being engineered with compatibility with other python modules, like Pygame, PIL and Numpy and is ideal for prototyping, application development, simulations, graphics intensive tasks and game development.

Contents

Installation

You can install the latest version of PMMA from PyPi using the command: pip install pmma or you can head over to the website here: PMMA on PyPi to select a custom version to install. Alternatively all versions of the API are also available here, on the releases page of this GitHub repository!

Requirements

In order to install PMMA 5 and newer, you must ensure you meet the following criteria:

Category Requirement
Operating System Windows, RHEL 9+, Debian 12+, Fedora 36+, Ubuntu 22.04+, AlmaLinux 9+, Rocky Linux 9+, openSUSE Leap 15.5 Architecture: 64-bit (x64)
Python Version 3.8.x, 3.9.x, 3.10.x, 3.11.x
pip Version 20.3 or newer

Note: If your platform is not listed here then you can attempt to build your own version of PMMA using our build guide! Note: If you do not see your operating system listed above, please check the 'Additional Technical Requirements' section below to see if your operating system is supported.

Additional Technical Requirements

Please note, these requirements are only needed by users installing PMMA onto Linux machines and in most cases the operating systems listed above should be compatible.

  • In order for PMMA to work as expected, you must be using either X-Lib, or Wayland. This means that Ubuntu 22.04 DESKTOP will not work, but Ubuntu 22.04 SERVER is unlikely to.
  • Additionally, you will need glibc 2.31 or newer, this can be checked on linux using the command ldd --version (root not required). The result should be on the first line as shown in the image below:

Example output


For older versions of PMMA, there are no hardware requirements.

If you encounter any issues or problems then check out our troubleshooting page.

Development Progress

Progress on PMMA 5.1

We are currently working on the next minor update to PMMA, version 5.1.x. This update is targeted at transitioning away from the OpenGL graphics API and into BGFX to better secure the future of the API with the gradual deprecation of the OpenGL API. This update will also bring numerous bug fixes, a major overhaul to the build system for the C++ side of PMMA, and an expansion ans general refinement of the Text and Animation portions of the API. If you want to check out our current progress list, you can find it here: Progress on PMMA 5.1

Credits

PMMA is made possible thanks to the following third party components.:

C/C++ projects:

Note: When downloading official compiled versions of PMMA 5 and newer these C++ projects are included by default for an easier installation process.

Python projects:

Note: These requirements are refined in the requirements.txt file for your convenience.

None of the projects mentioned above are owned or maintained by PycraftDeveloper the maker of this repository, who would also like to say a big thank you to all the teams working on these projects!

You can check out our licenses and the licenses of all the C/C++ projects PMMA uses as standard here or on your installed version of PMMA (version 5 or later) under pmma/licenses.

Note: If you spot a problem in our licensing or distribution of third party dependencies please raise the problem as an issue here with the title-prefix: 'LICENSING: ' and we will respond to these problems as soon as possible. Thanks!

About

We have worked on numerous large applications using the Python programming language. Most notably Pycraft which is our flagship project, an OpenGL based game using Python. Every time we write these large projects, we often find ourselves writing the same utility programs - which are small programs that help to eliminate complexity in our larger program files. So we decided to combine all of these utility programs into this project, PMMA which is intended then to make writing these larger applications easier as we don't need to keep re-using the same utility programs. The benefits don't stop there though as we are also ensuring this API is as fast and efficient as possible.

Please note that PMMA is currently in a developmental state, meaning that the API is subject to change - we are hoping to remove this warning and improve backwards compatibility in PMMA 6.

About

PMMA is targeted at helping you build applications of any size in Python and C++ by covering areas such as rendering, audio/video playback and much more!

Topics

Resources

License

Stars

Watchers

Forks

Contributors 3

  •  
  •  
  •