Selection API

The selection submodule is part of the FreeCADGui module. Example: