title: Substituting curl parameters in python request
body: <p>I would like to modify a curl request</p>
  <pre><code>curl \
     -D- \
     -u 'username:password' \
     -X POST \
     --data '{&quot;fields&quot;: {&quot;project&quot;:{&quot;key&quot;: &quot;key&quot;},&quot;summary&quot;: &quot;REST ye merry gentlemen.&quot;,&quot;description&quot;: &quot;Creating of an issue using project keys and issue type names using the REST API&quot;,&quot;issuetype&quot;: {&quot;name&quot;: &quot;Bug&quot;}}}' \
     -H &quot;Content-Type: application/json&quot; \
     https://instance/rest/api/2/issue/
  </code></pre>
  <p>I'd like to know how to substitute the <code>-u</code> parameter in a request like</p>
  <pre><code>import requests
  
  url = 'https://instance/rest/api/2/issue/'
  body = dict(&quot;INSERT_BODY_HERE&quot;)
  
  response = requests.post(url, body)
  </code></pre>