Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/seanbrant/requests-wsgi-adapter

WSGI Transport Adapter for Requests
https://github.com/seanbrant/requests-wsgi-adapter

Last synced: 3 months ago
JSON representation

WSGI Transport Adapter for Requests

Awesome Lists containing this project

README

        

.. code-block:: python

>>> 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')