Skip to content

A simple GUI tool to process HTTP requests (Python + Qt).

Notifications You must be signed in to change notification settings

DenisMedeiros/H-Req

Repository files navigation

H-Req

A simple GUI tool to process HTTP requests written in Python + Qt.

./docs/images/hreq.png

Important notes:

  • All UI files are designed using QtDesigner.
  • All icon files are defined as SVG and edited using Inkscape.

Usage

To run the application, follow the steps bellow.

  1. Create a Python virtual environment and activate it.

    python3 -m venv venv/
    source venv/bin/activate
  2. Install the requirements.txt.

    python3 -m pip install -r requirements.txt

    If you want to install additional libraries for development, also install the libraries listed in requirements-dev.txt.

    python3 -m pip install -r requirements-dev.txt
  3. Finally, run the file hreq.py.

    python3 hreq.py

Command Line Arguments

This application also supports some command line arguments that pre-populate some of the GUI fields. To see all available options, run the help menu:

python3 hreq.py -h/--help

Example of command with some of the fields:

python3 hreq.py \
    --url 'http://127.0.0.1:5000' \
    --method 'POST' \
    --content-type 'JSON' \
    --body '{"test": "value"}' \
    --headers '{"header1": "value1"}'

Development

For development purposes, there is a small Flask web application that can be used to validate the HTTP requests. It can be found in the folder tests/flask-app/ and can be run with the following command:

flask --app tests/flask-app/app.py run

This will run a small webserver running locally. You can hit this endpoint at:

curl http://127.0.0.1:5000

About

A simple GUI tool to process HTTP requests (Python + Qt).

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages