Welcome to Python-flavored Magnum! Please note that, while already being rather stable, this functionality is still considered experimental and some APIs might get changed without preserving full backwards compatibility.

Magnum Python bindings

Lightweight and modular graphics middleware for games and data visualization.

This site documents the Python bindings for the Magnum project. To see high-level feature overview, project goals or read the developer blog, head over to the project homepage.

Getting started

Because it’s out of human capabilities to maintain the Python documentation at the same scale as the C++ documentation including all math equations, best practices and such, most of the Python documentation is written as a delta to the C++ docs — highlighting important differences and describing general conventions, but referring to documentation of underlying C++ APIs for all details.

See the building docs for an installation guide, API convention documentation and documentation of each module for more information about the actual usage. There are also examples to give you an idea about how the API feels.

Contact & support

If you want to contribute to Magnum, if you spotted a bug, need a feature or have an awesome idea, you can get a copy of the sources from GitHub and start right away!

See also the Contact & Support page on the project website for further information.

License

Magnum, including the Python bindings, is licensed under the MIT/Expat license:

Copyright © 2010, 2011, 2012, 2013, 2014, 2015, 2016, 2017, 2018, 2019 Vladimír Vondruš <mosra@centrum.cz> and contributors

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the “Software”), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.