WSGI Transport Adapter for Requests


License
BSD-3-Clause
Install
pip install requests-wsgi-adapter==0.4.1

Documentation

>>> from django.core.wsgi import get_wsgi_application
>>>
>>> import requests
>>> import wsgiadapter
>>>
>>> s = requests.Session()
>>> s.mount('http://staging/', wsgiadapter.WSGIAdapter(get_wsgi_application()))
>>> s.get('http://staging/index')
<Response [200]>