Skip to content

Commit 1a4f536

Browse files
authored
docs (#129)
1 parent ced5a60 commit 1a4f536

File tree

4 files changed

+20
-13
lines changed

4 files changed

+20
-13
lines changed

README.md

+14-10
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,13 @@
11
# httpdbg
22

3-
A very simple tool to debug HTTP(S) client requests.
3+
`httpdbg` is a tool for Python developers to easily debug the HTTP(S) client requests in a Python program.
4+
5+
To use it, execute your program using the `pyhttpdbg` command instead of `python` and that's it. Open a browser to `http://localhost:4909` to view the requests:
46

57
![](ui.png)
68

9+
Full documentation => [https://httpdbg-docs.readthedocs.io/](https://httpdbg-docs.readthedocs.io/en/latest/)
10+
711
## installation
812

913
```
@@ -14,9 +18,9 @@ pip install httpdbg
1418

1519
### interactive console
1620

17-
Open an interactive console using the following command: `pyhttpdbg`
21+
Open an interactive console using the command `pyhttpdbg`.
1822

19-
```
23+
```console
2024
(venv) dev@host:~/dir$ pyhttpdbg
2125
.... - - .--. -.. -... --. .... - - .--. -.. -... --. .... - - .--. -.. -... --.
2226
httpdbg - HTTP(S) requests available at http://localhost:4909/
@@ -35,21 +39,21 @@ You can inspect the HTTP requests directly in your web browser at http://localho
3539

3640
You can trace all the HTTP requests performed by a script
3741

38-
```sh
42+
```console
3943
pyhttpdbg --script filename.py [arg1 --arg2 ...]
4044
```
4145

4246
### pytest
4347

4448
You can trace all the HTTP requests performed during your tests
4549

46-
```sh
50+
```console
4751
pyhttpdbg -m pytest [arg1 --arg2 ...]
4852
```
4953

5054
If you use the `pytest-xdist` plugin to execute your tests in parallel, then you must install the `pytest-httpdbg` plugin if you want to trace the requests done by the pytest workers.
5155

52-
```
56+
```console
5357
pip install httpdbg[pytest]
5458
```
5559

@@ -59,8 +63,8 @@ You can trace all the HTTP requests performed by a library module run as a scrip
5963

6064
For example, you can view which HTTP requests are performed by `pip` when you install a package.
6165

62-
```sh
63-
pyhttpdbg -m pip install httpdbg --upgrade
66+
```console
67+
pyhttpdbg -m pip install hookdns --upgrade
6468
```
6569

6670
## Initiators
@@ -69,7 +73,7 @@ An initiator is the function/method that is at the origin of the HTTP requests.
6973

7074
To add a new package in the list of initiators, you can use the `-i` command line argument:
7175

72-
```sh
76+
```console
7377
pyhttpdbg -i api_client_pck --script my_script.py
7478
```
7579

@@ -92,7 +96,7 @@ No configuration is necessary to start but some few settings are available for p
9296

9397
### command line
9498

95-
```
99+
```console
96100
usage: pyhttpdbg [-h] [--port PORT] [--version] [--initiator INITIATOR] [--keep-up | --force-quit]
97101
[--console | --module MODULE | --script SCRIPT]
98102

httpdbg/__init__.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,6 @@
33
from httpdbg.records import HTTPRecords
44

55

6-
VERSION = "0.17.1"
6+
VERSION = "0.17.2"
77

88
__all__ = ["httprecord", "HTTPRecords"]

pyproject.toml

+5-2
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ authors = [
99
]
1010
description="A very simple tool to debug HTTP(S) client requests"
1111
readme="README.md"
12-
urls = {repository = "https://github.com/cle-b/httpdbg"}
1312
requires-python = ">=3.6"
1413
license = {text = "Apache-2.0"}
1514
classifiers = [
@@ -43,4 +42,8 @@ disable_error_code= ["method-assign",]
4342
files = ["httpdbg"]
4443

4544
[project.optional-dependencies]
46-
pytest = ["pytest-httpdbg>=0.3.1"]
45+
pytest = ["pytest-httpdbg>=0.3.1"]
46+
47+
[project.urls]
48+
Source = "https://github.com/cle-b/httpdbg/"
49+
Documentation = "https://httpdbg-docs.readthedocs.io/"

ui.png

-105 KB
Loading

0 commit comments

Comments
 (0)