Source code for pcapng_utils.tshark.types

 1from collections.abc import Sequence, Mapping
 2from typing import Protocol, Any
 3
 4
 5TsharkRaw = list[str | int]
 6DictPacket = Mapping[str, Any]
 7DictLayers = Mapping[str, Any]
 8HarEntry = dict[str, Any]
 9NameValueDict = Mapping[str, str]
10IPPort = tuple[str, int]
11
12
[docs] 13class ParsedTrafficProtocol(Protocol): 14 def __init__(self, traffic: Sequence[DictLayers]) -> None: ... 15
[docs] 16 def get_har_entries(self) -> list[HarEntry]: ...
17 18
[docs] 19class HasLayers(Protocol): 20 21 @property 22 def layers(self) -> DictLayers: ...