WSGI middleware for setting:
environ["REMOTE_ADDR"]
based on:
environ["HTTP_X_FORWARDED_FOR"]
and proxy information.
Install it:
$ pip install wsgim-rip
...
and use it:
from wsgim_rip import RIPMiddleware
wrapped = RIPMiddleware(
app,
internal='10.0.0.0/8',
proxies={
'50.18.213.180': '192.168.0.0/16',
},
))
Metadata
Release files for wsgim-rip 0.1.0
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 | |
|---|---|---|---|---|
| wsgim-rip-0.1.0.tar.gz | 2.5 kB | Without provenance | Details |
Release files / wsgim-rip-0.1.0.tar.gz
| Download URL | wsgim-rip-0.1.0.tar.gz |
|---|---|
| Size | 2.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
a33945b5a8db93ffb0b202f45472334bec2ed0e6170a4c91caafdf467a8239b1
|
|
BLAKE2b-256 checksum How to use checksums |
e369c6c30ea73193a8286b89a7d5bc6b81bca0778b84642596a4eb91ccaaaa0c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for wsgim-rip 0.1.0
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.