Skip to main content

A Simple HTTP Request Analysis Server

Project description

A Simple HTTP Request Analysis Server

PyPI Version Docs License: MIT Python Versions Code style: black

Pywhoami is inspired by the whoami Go server by Traefik Labs. Send a request to one of the endpoints to get back details from your HTTP request. With pywhoami you can help answer questions like, what headers were added to my original request by a proxy server.

Checkout the documentation.


Quick Start

Installation

bash

python3 -m pip install pywhoami

powershell

py -m pip install pywhoami

Running the Server

bash

>>> python3 -m pywhoami
[2021-04-17 15:00:25 -0700] [4400] [INFO] Running on http://127.0.0.1:8080 (CTRL + C to quit)

powershell

>>> py -m pywhoami
[2021-04-17 15:00:25 -0700] [4400] [INFO] Running on http://127.0.0.1:8080 (CTRL + C to quit)

Send it a test HTTP request.

>>> curl http://localhost:8080/
Hostname: 1d12c578bd1a
IP: 172.19.0.2
RemoteAddr: 172.19.0.1
GET / HTTP/1.1
Host: localhost:8080
User-Agent: curl/7.58.0
Accept: */*

Project details


Download files

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

Source Distribution

pywhoami-1.1.1.tar.gz (7.3 kB view details)

Uploaded Source

Built Distribution

pywhoami-1.1.1-py3-none-any.whl (5.3 kB view details)

Uploaded Python 3

File details

Details for the file pywhoami-1.1.1.tar.gz.

File metadata

  • Download URL: pywhoami-1.1.1.tar.gz
  • Upload date:
  • Size: 7.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.0 CPython/3.9.12

File hashes

Hashes for pywhoami-1.1.1.tar.gz
Algorithm Hash digest
SHA256 cb4feff8bd0df28f5afc5a169e84a1d8e0e7b6bf100a2f7abfb54e4e5f868bd9
MD5 4bca74a83a36e6fcc0c86b9675f6c629
BLAKE2b-256 ddecb5167eb06bf1b1ee4bbf4db7d315c9f6de5414c74aa2d2cfd9e151a5635d

See more details on using hashes here.

File details

Details for the file pywhoami-1.1.1-py3-none-any.whl.

File metadata

  • Download URL: pywhoami-1.1.1-py3-none-any.whl
  • Upload date:
  • Size: 5.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.0 CPython/3.9.12

File hashes

Hashes for pywhoami-1.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 07eb1fec121797d1d6cd840ba80b44601d438d2610c051ce0b81e71fecc3196f
MD5 e402ef38e9f2b2fa8840d0cae859ce35
BLAKE2b-256 bb9abf28d90e93b06e6c3bc446443478f7a308f9cd73e845b7b990c3285f291b

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page