requests_proxy
A WSGI Proxy using requests.
Installation
With pip:
$ pip install requests_proxy
Usage
Create a proxy:
>>> from requests_proxy import Proxy >>> proxy = Proxy(application_url)
Then use it. Here is an example with WebOb but you can use it like a classic WSGI application:
>>> from webob import Request
>>> req = Request.blank('/form.html')
>>> resp = req.get_response(proxy)
>>> print(resp.text)
<html>...
...</html>
The Proxy application accept some keyword arguments. Those arguments are passed to requests during the process. By default allow_redirects and verify are set to False but you can change the behavior:
>>> proxy = Proxy(application_url, verify=True, allow_redirects=True, max_redirects=10)
Cheers
Changes
0.1
Initial public release
Metadata
Release files for requests_proxy 0.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| requests_proxy-0.1.tar.gz | 3.1 kB | Without provenance | Details for requests_proxy-0.1.tar.gz |
Release files / requests_proxy-0.1.tar.gz
| Download URL | requests_proxy-0.1.tar.gz |
|---|---|
| Size | 3.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
43868ce1deac0b490b5acceb0fa55bb4d643f18860ea07bdf55bbcedeea1b1af
|
|
BLAKE2b-256 checksum How to use checksums |
c52527e8dbe9cb1a5e5d9640933deeba3c159031d1656079d6f1f357a0fedb3b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for requests_proxy 0.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.