Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
hub
/
github.com/Textualize/rich
/ RequestHighlighter
Class
RequestHighlighter
examples/log.py:12–17 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
10
11
12
class
RequestHighlighter(RegexHighlighter):
13
base_style =
"req."
14
highlights = [
15
r
"^(?P<protocol>\w+) (?P<method>\w+) (?P<path>\S+) (?P<result>\w+) (?P<stats>\[.+\])$"
,
16
r
"\/(?P<filename>\w+\..{3,4})"
,
17
]
18
19
20
theme = Theme(
Callers
1
log.py
File · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected