/pyrhout

Python Request Headers Output

Primary LanguagePythonMIT LicenseMIT

Python Request Headers Output

Simple Flask app to dump all request headers. Useful for debugging.

Requirements

These software packages must be installed prior to using this repo:

  • Python
  • poetry

Usage

This describes how to run the demo code in this project:

docker pull ghcr.io/avnes/pyrhout:latest
docker run -d -p 8080:8080 ghcr.io/avnes/pyrhout:latest
curl http://127.0.0.1:8080/

Development

Virtual environment

poetry shell
poetry install
make

Linter

make lint

Install pre-commit hook

The Git pre-commit hook rules are defined in .pre-commit-config.yaml

poetry shell
pre-commit install

Git check

Check if the code can pass a git pre-commit hook.

make check