Better HN
topnewbestaskshowjobs
Log inSign up

cle-b

86 karma · joined Sep 25, 2024 (2y ago) · 9 submissions

Submissions

1.

Show HN: Pytest-httpdbg – a simple way to include HTTP traces in Allure reports(github.com ↗)

3 points · by cle-b · 1y ago · discuss

comment 1y ago · link · parent

Source: https://github.com/cle-b/hookdns PyPI: https://pypi.org/project/hookdns/

3.

Show HN: Hookdns (for Python devs)- Because /etc./hosts is not always an option(github.com ↗)

2 points · by cle-b · 1y ago · 1 comment

4.

Show HN: See what your Python app sends and receives over HTTP(httpdbg.readthedocs.io ↗)

6 points · by cle-b · 1y ago · 1 comment

comment 2y ago · link · parent

I really like vrcpy. I used it a lot with pytest in my previous job. httpdbg isn’t exactly the same; the idea is more about seeing HTTP requests in real-time and being able to easily study them.

comment 2y ago · link · parent

Unlike other tools such as proxies that allow you to trace HTTP requests, httpdbg makes it possible to link the HTTP request to the Python code that initiated it. This is why it is specific to Python and does not work with other languages.

comment 2y ago · link · parent

It works only with Python code because it intercepts HTTP requests by hooking into certain Python functions.

It supports any HTTP library based on Python’s standard socket library. Specifically, it works with libraries like requests, httpx, aiohttp, and urllib3, as well as pytest, providing more detailed information about the initiator of the requests.

comment 2y ago · link · parent

If you want to trace the HTTP requests in a notebook, you must install the package notebook-httpdbg.

This is documented here: https://httpdbg.readthedocs.io/en/latest/notebook/

9.

Show HN: Httpdbg – A tool to trace the HTTP requests sent by your Python code(github.com ↗)

200 points · by cle-b · 2y ago · 55 comments