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 API Docs site (will take you to another site)