$ pip install curequests
from curio import run
from curequests import get, post
async def main():
r = await get('https://httpbin.org/get')
print(r.json())
r = await post('https://httpbin.org/post', json={'hello': 'world'})
print(r.json())
run(main)
和 Requests 一样的味道,请参考 Requests 文档 食用!
Github: https://github.com/guyskk/curequests