title: I need to get resource usage of Pods in a Kubernetes Cluster with kubernetes python client
body: <p>i have linux command to get the resource usage of the pods in particular namespace what is the equivalent python command for it</p>
  <pre><code>$ kubectl top pod
  NAME                                CPU(cores)   MEMORY(bytes)   
  nginx-deployment-7fd6966748-57mt5   0m           2Mi             
  nginx-deployment-7fd6966748-jpbjl   0m           2Mi             
  nginx-deployment-7fd6966748-snrx4   0m           2Mi
  </code></pre>