I have a raspberry module in which python code running. Now I have to call web services asynchronously from it. But when i write code and execute gives an error like
Traceback (most recent call last):
File "async_ws.py", line 3, in <module>
from requests import async
ImportError: cannot import name async
my code is like
import json
import requests
from requests import async
urls = [
'http://python-requests.org',
'http://httpbin.org',
'http://python-guide.org',
'http://kennethreitz.com'
]
rs = [async.get(u) for u in urls]
async.map(rs)
pls help me