Common Utilities¶
pcapkit.dumpkit.common
is the collection of common utility
functions for pcapkit.dumpkit
implementation, which is
generally the customised hooks for dictdumper.Dumper
classes.
- class pcapkit.dumpkit.common.Dumper(fname, **kwargs)[source]¶
Bases:
DumperBase
Base
Dumper
object.This class is a customised
Dumper
for thepcapkit.dumpkit
implementation, which is generally customised for automatic registration to theExtractor
andTraceFlow
output dumper registries.- classmethod __init_subclass__(fmt=None, ext=None, *args, **kwargs)[source]¶
Initialise subclass.
This method is used to register the subclass to the
Extraction
andTraceFlow
output dumper registries.- Parameters:
- Return type:
If the
fmt
is not provided, we will try to get it from thekind
property of the subclass. And if theext
is not provided, we will infer it from thefmt
.