Examples files for Python
Your Qube installation directory contains an "examples/python" subdirectory. In there, you will find a README file and several python examples.
Some of those examples are explained, in depth, in the Beginner Python submission and dependencies page.
You can find API documentation in documentation for the
qb python module at here API Docs site (will take you to another site).