httpdbg 0.18.0__tar.gz → 0.18.1__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (69) hide show
  1. {httpdbg-0.18.0 → httpdbg-0.18.1}/PKG-INFO +1 -1
  2. {httpdbg-0.18.0 → httpdbg-0.18.1}/httpdbg/__init__.py +1 -1
  3. {httpdbg-0.18.0 → httpdbg-0.18.1}/httpdbg/records.py +8 -16
  4. {httpdbg-0.18.0 → httpdbg-0.18.1}/httpdbg.egg-info/PKG-INFO +1 -1
  5. {httpdbg-0.18.0 → httpdbg-0.18.1}/LICENSE +0 -0
  6. {httpdbg-0.18.0 → httpdbg-0.18.1}/README.md +0 -0
  7. {httpdbg-0.18.0 → httpdbg-0.18.1}/httpdbg/__main__.py +0 -0
  8. {httpdbg-0.18.0 → httpdbg-0.18.1}/httpdbg/args.py +0 -0
  9. {httpdbg-0.18.0 → httpdbg-0.18.1}/httpdbg/hooks/__init__.py +0 -0
  10. {httpdbg-0.18.0 → httpdbg-0.18.1}/httpdbg/hooks/aiohttp.py +0 -0
  11. {httpdbg-0.18.0 → httpdbg-0.18.1}/httpdbg/hooks/all.py +0 -0
  12. {httpdbg-0.18.0 → httpdbg-0.18.1}/httpdbg/hooks/external.py +0 -0
  13. {httpdbg-0.18.0 → httpdbg-0.18.1}/httpdbg/hooks/generic.py +0 -0
  14. {httpdbg-0.18.0 → httpdbg-0.18.1}/httpdbg/hooks/httpx.py +0 -0
  15. {httpdbg-0.18.0 → httpdbg-0.18.1}/httpdbg/hooks/requests.py +0 -0
  16. {httpdbg-0.18.0 → httpdbg-0.18.1}/httpdbg/hooks/socket.py +0 -0
  17. {httpdbg-0.18.0 → httpdbg-0.18.1}/httpdbg/hooks/urllib3.py +0 -0
  18. {httpdbg-0.18.0 → httpdbg-0.18.1}/httpdbg/hooks/utils.py +0 -0
  19. {httpdbg-0.18.0 → httpdbg-0.18.1}/httpdbg/initiator.py +0 -0
  20. {httpdbg-0.18.0 → httpdbg-0.18.1}/httpdbg/mode_console.py +0 -0
  21. {httpdbg-0.18.0 → httpdbg-0.18.1}/httpdbg/mode_module.py +0 -0
  22. {httpdbg-0.18.0 → httpdbg-0.18.1}/httpdbg/mode_script.py +0 -0
  23. {httpdbg-0.18.0 → httpdbg-0.18.1}/httpdbg/preview.py +0 -0
  24. {httpdbg-0.18.0 → httpdbg-0.18.1}/httpdbg/server.py +0 -0
  25. {httpdbg-0.18.0 → httpdbg-0.18.1}/httpdbg/utils.py +0 -0
  26. {httpdbg-0.18.0 → httpdbg-0.18.1}/httpdbg/webapp/__init__.py +0 -0
  27. {httpdbg-0.18.0 → httpdbg-0.18.1}/httpdbg/webapp/api.py +0 -0
  28. {httpdbg-0.18.0 → httpdbg-0.18.1}/httpdbg/webapp/app.py +0 -0
  29. {httpdbg-0.18.0 → httpdbg-0.18.1}/httpdbg/webapp/static/api.js +0 -0
  30. {httpdbg-0.18.0 → httpdbg-0.18.1}/httpdbg/webapp/static/column.css +0 -0
  31. {httpdbg-0.18.0 → httpdbg-0.18.1}/httpdbg/webapp/static/configuration.js +0 -0
  32. {httpdbg-0.18.0 → httpdbg-0.18.1}/httpdbg/webapp/static/detail.css +0 -0
  33. {httpdbg-0.18.0 → httpdbg-0.18.1}/httpdbg/webapp/static/favicon.ico +0 -0
  34. {httpdbg-0.18.0 → httpdbg-0.18.1}/httpdbg/webapp/static/filter.js +0 -0
  35. {httpdbg-0.18.0 → httpdbg-0.18.1}/httpdbg/webapp/static/icons/download-install-line-icon.svg +0 -0
  36. {httpdbg-0.18.0 → httpdbg-0.18.1}/httpdbg/webapp/static/icons/engine-gears-icon.svg +0 -0
  37. {httpdbg-0.18.0 → httpdbg-0.18.1}/httpdbg/webapp/static/icons/files-papers-outline-icon.svg +0 -0
  38. {httpdbg-0.18.0 → httpdbg-0.18.1}/httpdbg/webapp/static/icons/filter-outline-icon.svg +0 -0
  39. {httpdbg-0.18.0 → httpdbg-0.18.1}/httpdbg/webapp/static/icons/information-mark-circle-outline-icon.svg +0 -0
  40. {httpdbg-0.18.0 → httpdbg-0.18.1}/httpdbg/webapp/static/icons/math-multiplication-icon.svg +0 -0
  41. {httpdbg-0.18.0 → httpdbg-0.18.1}/httpdbg/webapp/static/icons/push-pin-green-icon.svg +0 -0
  42. {httpdbg-0.18.0 → httpdbg-0.18.1}/httpdbg/webapp/static/icons/question-mark-round-line-icon.svg +0 -0
  43. {httpdbg-0.18.0 → httpdbg-0.18.1}/httpdbg/webapp/static/icons/recycle-bin-line-icon.svg +0 -0
  44. {httpdbg-0.18.0 → httpdbg-0.18.1}/httpdbg/webapp/static/icons/wait-sandclock-icon.svg +0 -0
  45. {httpdbg-0.18.0 → httpdbg-0.18.1}/httpdbg/webapp/static/index.htm +0 -0
  46. {httpdbg-0.18.0 → httpdbg-0.18.1}/httpdbg/webapp/static/main.js +0 -0
  47. {httpdbg-0.18.0 → httpdbg-0.18.1}/httpdbg/webapp/static/mustache.min.js +0 -0
  48. {httpdbg-0.18.0 → httpdbg-0.18.1}/httpdbg/webapp/static/render.js +0 -0
  49. {httpdbg-0.18.0 → httpdbg-0.18.1}/httpdbg/webapp/static/style.css +0 -0
  50. {httpdbg-0.18.0 → httpdbg-0.18.1}/httpdbg/webapp/static/table.css +0 -0
  51. {httpdbg-0.18.0 → httpdbg-0.18.1}/httpdbg.egg-info/SOURCES.txt +0 -0
  52. {httpdbg-0.18.0 → httpdbg-0.18.1}/httpdbg.egg-info/dependency_links.txt +0 -0
  53. {httpdbg-0.18.0 → httpdbg-0.18.1}/httpdbg.egg-info/entry_points.txt +0 -0
  54. {httpdbg-0.18.0 → httpdbg-0.18.1}/httpdbg.egg-info/requires.txt +0 -0
  55. {httpdbg-0.18.0 → httpdbg-0.18.1}/httpdbg.egg-info/top_level.txt +0 -0
  56. {httpdbg-0.18.0 → httpdbg-0.18.1}/pyproject.toml +0 -0
  57. {httpdbg-0.18.0 → httpdbg-0.18.1}/setup.cfg +0 -0
  58. {httpdbg-0.18.0 → httpdbg-0.18.1}/tests/test_api.py +0 -0
  59. {httpdbg-0.18.0 → httpdbg-0.18.1}/tests/test_cli.py +0 -0
  60. {httpdbg-0.18.0 → httpdbg-0.18.1}/tests/test_context_manager.py +0 -0
  61. {httpdbg-0.18.0 → httpdbg-0.18.1}/tests/test_hook_aiohttp.py +0 -0
  62. {httpdbg-0.18.0 → httpdbg-0.18.1}/tests/test_hook_httpx.py +0 -0
  63. {httpdbg-0.18.0 → httpdbg-0.18.1}/tests/test_hook_requests.py +0 -0
  64. {httpdbg-0.18.0 → httpdbg-0.18.1}/tests/test_hook_urllib3.py +0 -0
  65. {httpdbg-0.18.0 → httpdbg-0.18.1}/tests/test_initiator.py +0 -0
  66. {httpdbg-0.18.0 → httpdbg-0.18.1}/tests/test_mode_console.py +0 -0
  67. {httpdbg-0.18.0 → httpdbg-0.18.1}/tests/test_mode_module_pytest.py +0 -0
  68. {httpdbg-0.18.0 → httpdbg-0.18.1}/tests/test_mode_script.py +0 -0
  69. {httpdbg-0.18.0 → httpdbg-0.18.1}/tests/test_preview.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: httpdbg
3
- Version: 0.18.0
3
+ Version: 0.18.1
4
4
  Summary: A very simple tool to debug HTTP(S) client requests
5
5
  Author-email: cle-b <cle@tictac.pm>
6
6
  License: Apache-2.0
@@ -3,6 +3,6 @@ from httpdbg.hooks.all import httprecord
3
3
  from httpdbg.records import HTTPRecords
4
4
 
5
5
 
6
- VERSION = "0.18.0"
6
+ VERSION = "0.18.1"
7
7
 
8
8
  __all__ = ["httprecord", "HTTPRecords"]
@@ -12,7 +12,6 @@ from typing import Dict, List, Tuple, Union
12
12
  from httpdbg.utils import HTTPDBGCookie
13
13
  from httpdbg.utils import HTTPDBGHeader
14
14
  from httpdbg.initiator import in_lib
15
- from httpdbg.initiator import compatible_path
16
15
  from httpdbg.initiator import Initiator
17
16
  from httpdbg.preview import generate_preview
18
17
  from httpdbg.utils import get_new_uuid
@@ -303,21 +302,14 @@ class HTTPRecords:
303
302
  initiator = self._initiators[os.environ[envname]]
304
303
  else:
305
304
  fullstack = traceback.format_stack()
306
- if compatible_path("httpdbg/mode_script.py") in "".join(
307
- fullstack
308
- ): # TODO: find another way the detect the mode
309
- stack: List[str] = []
310
- for line in fullstack[6:]:
311
- if in_lib(line):
312
- break
313
- stack.append(line)
314
- long_label = stack[-1]
315
- short_label = long_label.split("\n")[1]
316
- initiator = Initiator(
317
- get_new_uuid(), short_label, None, long_label, stack
318
- )
319
- else:
320
- initiator = Initiator(f"console{self.id}", "console", None, "", [])
305
+ stack: List[str] = []
306
+ for line in fullstack[6:]:
307
+ if in_lib(line):
308
+ break
309
+ stack.append(line)
310
+ long_label = stack[-1]
311
+ short_label = long_label.split("\n")[1]
312
+ initiator = Initiator(get_new_uuid(), short_label, None, long_label, stack)
321
313
 
322
314
  if ("PYTEST_CURRENT_TEST" in os.environ) and (
323
315
  "HTTPDBG_PYTEST_PLUGIN" not in os.environ
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: httpdbg
3
- Version: 0.18.0
3
+ Version: 0.18.1
4
4
  Summary: A very simple tool to debug HTTP(S) client requests
5
5
  Author-email: cle-b <cle@tictac.pm>
6
6
  License: Apache-2.0
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes