A PyMOL API Method is a Python function call.
In the PyMOL 0.x and 1.x, these methods are members of the pymol.cmd module. In PyMOL 2.x and beyond, they are members of PyMOL Class instances. This is the paradigm already adopted in JyMOL.
concepts