Skip to main content

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

Project details


Release history Release notifications

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for pwho, version 0.1.0
Filename, size File type Python version Upload date Hashes
Filename, size pwho-0.1.0.tar.gz (4.6 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page