py4web-debug-tools 1.3.1__tar.gz → 1.3.2__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.
- {py4web_debug_tools-1.3.1 → py4web_debug_tools-1.3.2}/CHANGELOG.md +6 -0
- {py4web_debug_tools-1.3.1 → py4web_debug_tools-1.3.2}/PKG-INFO +1 -1
- py4web_debug_tools-1.3.2/src/py4web_debug/__about__.py +1 -0
- {py4web_debug_tools-1.3.1 → py4web_debug_tools-1.3.2}/src/py4web_debug/dumping.py +0 -1
- {py4web_debug_tools-1.3.1 → py4web_debug_tools-1.3.2}/src/py4web_debug/internals.py +3 -4
- py4web_debug_tools-1.3.1/example.py +0 -29
- py4web_debug_tools-1.3.1/src/py4web_debug/__about__.py +0 -1
- {py4web_debug_tools-1.3.1 → py4web_debug_tools-1.3.2}/.gitignore +0 -0
- {py4web_debug_tools-1.3.1 → py4web_debug_tools-1.3.2}/README.md +0 -0
- {py4web_debug_tools-1.3.1 → py4web_debug_tools-1.3.2}/pyproject.toml +0 -0
- {py4web_debug_tools-1.3.1 → py4web_debug_tools-1.3.2}/src/py4web_debug/__init__.py +0 -0
- {py4web_debug_tools-1.3.1 → py4web_debug_tools-1.3.2}/src/py4web_debug/_internals.py +0 -0
- {py4web_debug_tools-1.3.1 → py4web_debug_tools-1.3.2}/src/py4web_debug/core.py +0 -0
- {py4web_debug_tools-1.3.1 → py4web_debug_tools-1.3.2}/src/py4web_debug/debugbar.py +0 -0
- {py4web_debug_tools-1.3.1 → py4web_debug_tools-1.3.2}/src/py4web_debug/env.py +0 -0
- {py4web_debug_tools-1.3.1 → py4web_debug_tools-1.3.2}/src/py4web_debug/py.typed +0 -0
- {py4web_debug_tools-1.3.1 → py4web_debug_tools-1.3.2}/src/py4web_debug/templates/debugbar.html +0 -0
- {py4web_debug_tools-1.3.1 → py4web_debug_tools-1.3.2}/src/py4web_debug/templates/dumpdie.html +0 -0
- {py4web_debug_tools-1.3.1 → py4web_debug_tools-1.3.2}/src/py4web_debug/templates/error_default.html +0 -0
- {py4web_debug_tools-1.3.1 → py4web_debug_tools-1.3.2}/src/py4web_debug/templates/fancy_dumpdie.html +0 -0
- {py4web_debug_tools-1.3.1 → py4web_debug_tools-1.3.2}/src/py4web_debug/types.py +0 -0
- {py4web_debug_tools-1.3.1 → py4web_debug_tools-1.3.2}/src/py4web_debug/wsgi.py +0 -0
|
@@ -2,6 +2,12 @@
|
|
|
2
2
|
|
|
3
3
|
<!--next-version-placeholder-->
|
|
4
4
|
|
|
5
|
+
## v1.3.2 (2025-12-12)
|
|
6
|
+
|
|
7
|
+
### Fix
|
|
8
|
+
|
|
9
|
+
* Use existing debug-tools `dump` instead of py4web's `dumps`, hopefully to prevent circular import error ([`0d5afad`](https://github.com/trialandsuccess/py4web-debug-tools/commit/0d5afad2904834cf80d9252b89816b7ae360249a))
|
|
10
|
+
|
|
5
11
|
## v1.3.1 (2025-04-01)
|
|
6
12
|
|
|
7
13
|
### Fix
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: py4web-debug-tools
|
|
3
|
-
Version: 1.3.
|
|
3
|
+
Version: 1.3.2
|
|
4
4
|
Summary: Debug Tools for py4web
|
|
5
5
|
Project-URL: Documentation, https://github.com/trialandsuccess/py4web-debug-tools#readme
|
|
6
6
|
Project-URL: Issues, https://github.com/trialandsuccess/py4web-debug-tools/issues
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
__version__ = "1.3.2"
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import functools
|
|
2
2
|
import http.client
|
|
3
|
-
import json
|
|
4
3
|
import logging
|
|
5
4
|
import os
|
|
6
5
|
import re
|
|
@@ -14,7 +13,6 @@ from py4web import HTTP, action, response
|
|
|
14
13
|
from py4web.core import (
|
|
15
14
|
REGEX_APPJSON,
|
|
16
15
|
Template,
|
|
17
|
-
dumps,
|
|
18
16
|
error_logger,
|
|
19
17
|
get_error_snapshot,
|
|
20
18
|
request,
|
|
@@ -22,6 +20,7 @@ from py4web.core import (
|
|
|
22
20
|
from typing_extensions import NotRequired
|
|
23
21
|
from yatl import XML
|
|
24
22
|
|
|
23
|
+
from .dumping import dump
|
|
25
24
|
from .types import ErrorSnapshot
|
|
26
25
|
|
|
27
26
|
|
|
@@ -79,7 +78,7 @@ def custom_error_page(
|
|
|
79
78
|
# if client accepts 'application/json' - return json
|
|
80
79
|
if re.search(REGEX_APPJSON, request.headers.get("accept", "")):
|
|
81
80
|
response.status = code
|
|
82
|
-
return
|
|
81
|
+
return dump(context)
|
|
83
82
|
# else - return html error-page
|
|
84
83
|
|
|
85
84
|
if renderer:
|
|
@@ -142,7 +141,7 @@ class patch_py4:
|
|
|
142
141
|
ret = func(*func_args, **func_kwargs)
|
|
143
142
|
if isinstance(ret, dict):
|
|
144
143
|
response.headers["Content-Type"] = "application/json"
|
|
145
|
-
ret =
|
|
144
|
+
ret = dump(ret)
|
|
146
145
|
return ret
|
|
147
146
|
except HTTP as http:
|
|
148
147
|
response.status = http.status
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
import py4web_debug
|
|
2
|
-
from py4web_debug import dbg
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
def handle(_): ...
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
def my_decorator(fn):
|
|
9
|
-
return fn
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
@my_decorator
|
|
13
|
-
def some_func(arg):
|
|
14
|
-
return dbg("hello")
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
dbg("hi")
|
|
18
|
-
y = dbg("hi")
|
|
19
|
-
py4web_debug.dbg("hi")
|
|
20
|
-
z = py4web_debug.dbg("hi")
|
|
21
|
-
|
|
22
|
-
handle(dbg("hi"))
|
|
23
|
-
handle(py4web_debug.dbg("hi"))
|
|
24
|
-
|
|
25
|
-
some_long_expression = " 3 + 123"
|
|
26
|
-
|
|
27
|
-
handle(dbg((some_long_expression + some_long_expression)))
|
|
28
|
-
|
|
29
|
-
some_func(arg=dbg("arg1"))
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
__version__ = "1.3.1"
|
|
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
|
{py4web_debug_tools-1.3.1 → py4web_debug_tools-1.3.2}/src/py4web_debug/templates/debugbar.html
RENAMED
|
File without changes
|
{py4web_debug_tools-1.3.1 → py4web_debug_tools-1.3.2}/src/py4web_debug/templates/dumpdie.html
RENAMED
|
File without changes
|
{py4web_debug_tools-1.3.1 → py4web_debug_tools-1.3.2}/src/py4web_debug/templates/error_default.html
RENAMED
|
File without changes
|
{py4web_debug_tools-1.3.1 → py4web_debug_tools-1.3.2}/src/py4web_debug/templates/fancy_dumpdie.html
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|