PROXY protcol: http://www.haproxy.org/download/1.5/doc/proxy-protocol.txt.
Project description
====
pwho
====
.. image:: https://travis-ci.org/bninja/pwho.png
:target: https://travis-ci.org/bninja/pwho
.. image:: https://coveralls.io/repos/bninja/pwho/badge.png
:target: https://coveralls.io/r/bninja/pwho
PROXY protocol v1:
http://www.haproxy.org/download/1.5/doc/proxy-protocol.txt
parsing **taken** from:
https://github.com/benoitc/gunicorn/
Get it:
.. code:: bash
$ pip install pwho
Use it e.g. with ``SocketServer` like:
.. code:: python
import SocketServer
import pwho
class SFTPRequestHandler(
SocketServer.StreamRequestHandler,
pwho.StreamRequestMixin
):
def handle(self)
self.proxy_info = self.proxy_protocol(error='unread', authenticate=True)
...
pwho
====
.. image:: https://travis-ci.org/bninja/pwho.png
:target: https://travis-ci.org/bninja/pwho
.. image:: https://coveralls.io/repos/bninja/pwho/badge.png
:target: https://coveralls.io/r/bninja/pwho
PROXY protocol v1:
http://www.haproxy.org/download/1.5/doc/proxy-protocol.txt
parsing **taken** from:
https://github.com/benoitc/gunicorn/
Get it:
.. code:: bash
$ pip install pwho
Use it e.g. with ``SocketServer` like:
.. code:: python
import SocketServer
import pwho
class SFTPRequestHandler(
SocketServer.StreamRequestHandler,
pwho.StreamRequestMixin
):
def handle(self)
self.proxy_info = self.proxy_protocol(error='unread', authenticate=True)
...
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
pwho-0.1.0.tar.gz
(4.6 kB
view details)
File details
Details for the file pwho-0.1.0.tar.gz
.
File metadata
- Download URL: pwho-0.1.0.tar.gz
- Upload date:
- Size: 4.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | f410fd206ff078fbfa29ba2b797df041a7cd8645b533e831c0a4100b9394ffc0 |
|
MD5 | e14e45c020674797053e3dc56a07c3a0 |
|
BLAKE2b-256 | 0194be2c02661924d168b39a873a5af1537e6196cc1a28887499e20e74fa7976 |