Team Ai
Datasetpublic

codekingpro/portable-devtools

sourceHugging Faceupdated 5mo agoView on Hugging Face
1likes14kdownloads
contentviews.pyi38 linesDownload Raw Back to mitmproxy_rs
1from __future__ import annotations2 3from typing import ClassVar, final, Literal4 5class Contentview:6    name: ClassVar[str]7 8    syntax_highlight: ClassVar[Literal["xml", "yaml", "none", "error"]]9 10    def prettify(self, data: bytes, metadata) -> str:11        pass12 13    def render_priority(self, data: bytes, metadata) -> float:14        pass15 16@final17class InteractiveContentview(Contentview):18    def reencode(self, data: str, metadata) -> bytes:19        pass20 21_test_inspect_metadata: Contentview22hex_dump: Contentview23hex_stream: InteractiveContentview24msgpack: InteractiveContentview25protobuf: InteractiveContentview26grpc: InteractiveContentview27 28__all__ = [29    "Contentview",30    "InteractiveContentview",31    "hex_dump",32    "hex_stream",33    "msgpack",34    "protobuf",35    "grpc",36    "_test_inspect_metadata",37]38 
codekingpro/portable-devtools · Team Ai