docker-hook icon indicating copy to clipboard operation
docker-hook copied to clipboard

remove requests requirements

Open pahaz opened this issue 7 years ago • 3 comments

pahaz avatar Jul 29 '16 13:07 pahaz

@pahaz Please be more specific. Is this a feature request? A bug report? What happened / what did you expect to happen? What do you want to do?

MartinThoma avatar Jul 29 '16 13:07 MartinThoma

@MartinThoma sorry, I try to explain you.

As you can see here https://github.com/schickling/docker-hook#features one of the feature of this project is "No dependencies". But now, this project have "requests" dependence.

pahaz avatar Aug 08 '16 12:08 pahaz

@pahaz Thank you for explaining it. urllib and urllib2 are in the standard library.

u = urllib2.urlopen(json_params['callback_url'], json.dumps(data))
h.request('POST', '/whatever/index.php', data, headers)

could be what we need.

MartinThoma avatar Aug 08 '16 18:08 MartinThoma