The same way you do with kubectl, you configure your cluster in your kube config file. We can definitely add more examples though!
The Use case I have, is to use this within Jupyter notebooks for Devops / deployment journaling. Having something natively python that maps to actual commands is a huge bonus here.