HNHacker News
TopNewBestAskShowJobs

cle-b

86 karma · joined September 25, 2024

submissionscomments
cle-b··on Show HN: Hookdns (for Python devs)- Because /etc./hosts is not always an option
Source: https://github.com/cle-b/hookdns PyPI: https://pypi.org/project/hookdns/
cle-b··on Show HN: Httpdbg – A tool to trace the HTTP requests sent by your Python code
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.
cle-b··on Show HN: Httpdbg – A tool to trace the HTTP requests sent by your Python code
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.
cle-b··on Show HN: Httpdbg – A tool to trace the HTTP requests sent by your Python code
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.

cle-b··on Show HN: Httpdbg – A tool to trace the HTTP requests sent by your Python code
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/