API Reference

Yevhen Kuzmovych HTTPBin Client

Yevhen Kuzmovych’s python client to httpbin.org, open sourced under the MIT license

class kuzmoyev_httpbin.HttpBinClient(base_url='https://httpbin.org')[source]

Python client for the HTTPBin API.

Powered by requests.Session.

ip()[source]

Calls the /ip endpoint

Parameters:data – data to be passed to requests.Session.get()
Returns:a dict with deserialized the JSON response
make_full_url(path)[source]

Builds a full url to be used internally in this client.

Parameters:path – a string with the path.
Returns:a string

Note

any trailing slashes at the left side of the path argument will be stripped.

post(data=None)[source]

Calls the /post endpoint

Note

This function is here for demo purposes.

Parameters:data – data to be passed to requests.Session.post()
Returns:a dict with deserialized the JSON response