Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/seanbrant/requests-wsgi-adapter
- Owner: seanbrant
- License: bsd-3-clause
- Created: 2015-10-10T02:13:16.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2022-05-08T14:32:42.000Z (over 2 years ago)
- Last Synced: 2024-06-18T23:41:01.184Z (5 months ago)
- Language: Python
- Homepage:
- Size: 37.1 KB
- Stars: 42
- Watchers: 1
- Forks: 8
- Open Issues: 7
-
Metadata Files:
- Readme: README.rst
- License: LICENSE
Awesome Lists containing this project
- starred-awesome - requests-wsgi-adapter - WSGI Transport Adapter for Requests (Python)
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')