As the answer and comment in https://stackoverflow.com/a/31764155/10189759
suggest that everything could be done using a curl could be done using python request.
My question is how to pass option like -u -i to the request function?
For example in this tutorial github api
curl -i -u your_username:your_token https://api.github.com/user
How could I use request to pass my args and option to the url?