This package integrates the Python programming language into Maya. The goal of the package is to combine the expressiveness of C++ and MEL so that anything that could either be expressed in C++ or in MEL can also be expressed in Python. Being able to extend Maya using Python allows a user to take advantage of the wealth of extension modules that are already available for Python.
The Maya Python package consists of two parts:
pySourcethat allow executing Python source code given as a string or a file.
The package can also extend the Maya menu to provide access to a Python Editor that works just as the MEL Script Editor and a Python plugin manager that is used to load/unload plugins written in Python.