Skip to main content
====
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)
...

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)

Uploaded Source

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

Hashes for pwho-0.1.0.tar.gz
Algorithm Hash digest
SHA256 f410fd206ff078fbfa29ba2b797df041a7cd8645b533e831c0a4100b9394ffc0
MD5 e14e45c020674797053e3dc56a07c3a0
BLAKE2b-256 0194be2c02661924d168b39a873a5af1537e6196cc1a28887499e20e74fa7976

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

0.1.0 This release

1 file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page