Skip to main content
This is a pre-production deployment of Warehouse. Changes made here affect the production instance of PyPI (pypi.python.org).
Help us improve Python packaging - Donate today!

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

Release History

This version
History Node

0.1.0

Download Files

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

Filename, Size & Hash SHA256 Hash Help File Type Python Version Upload Date
pwho-0.1.0.tar.gz
(4.6 kB) Copy SHA256 Hash SHA256
Source None Sep 26, 2014

Supported By

Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Google Google Cloud Servers DreamHost DreamHost Log Hosting