|
You are here |
shrik3.com | ||
| | | | |
python-future.org
|
|
| | | | | ||
| | | | |
kchodorow.com
|
|
| | | | | I'm working on a command-line tool that will require user login, so I wanted to have the flow that all the snazzy command-line clis use: pop up a browser window and ask you to login with , then pass back something to the command line. Unfortunately, I had no idea what this type of... | |
| | | | |
blog.nobugware.com
|
|
| | | | | Python requests is the de facto HTTP package for Python, nice API, wonderful documentation. I had the need to sign my requests and to change the header after the request was built, [here is hooks](http://docs.python- requests.org/en/v0.10.7/user/advanced/#event-hooks), simply call a function pre_request and your are done: def auth_sign(req): user_id = '4f47a5f21aebcedff3001234' secret_key = 'C21LHQ5R4RVO2U2UMTEZ' timestamp = str(int(time.mktime(time.gmtime()))) string_to_sign = req.method + '\n' + user_i... | |
| | | | |
bpohoriletz.github.io
|
|
| | | Time: 5-10 min Level: Beginner Code: Application Revision: Mar 7, 22 References: Part one Mutagen Compose example DockerĀ® on Mac - how to speed it up? | ||