Object-Oriented HTTP Request
Project description
winney
Install
pip install winney
Tutorial
from winney import Winney
from winney.mock import Mock
class MockData(Mock):
data = {"name": "baidu.com"}
baidu = Winney(host="baidu.com")
baidu.register(method="get",
name="get_home",
uri="/home",
mock=True,
mock_data=MockData())
r = baidu.get_home()
print(r.json())
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
winney-0.5.5.tar.gz
(4.8 kB
view hashes)
Built Distribution
winney-0.5.5-py3-none-any.whl
(5.4 kB
view hashes)