title: Call REST API with authentication using Python
body: <p>I'm a beginner and learning Python. I wanted to write a python code to "call an REST API". Can you please guide me the steps to call an Rest API?</p>
  
  <p>Also I've curl command which I wanted to write it in python code.</p>
  
  <p>curl -u username:password -X GET '<a href="http://google.com:8070/api/v2/organizations" rel="nofollow noreferrer">http://google.com:8070/api/v2/organizations</a>'</p>
  
  <p>It would much helpful if anyone can help me out.</p>
  
  <p>Thanks</p>