MCPcopy
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
12class 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
20theme = Theme(

Callers 1

log.pyFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected