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:
DumperBaseBase
Dumperobject.This class is a customised
Dumperfor thepcapkit.dumpkitimplementation, which is generally customised for automatic registration to theExtractorandTraceFlowoutput dumper registries.- classmethod __init_subclass__(fmt=None, ext=None, *args, **kwargs)[source]¶
Initialise subclass.
This method is used to register the subclass to the
ExtractionandTraceFlowoutput dumper registries.- Parameters:
- Return type:
If the
fmtis not provided, we will try to get it from thekindproperty of the subclass. And if theextis not provided, we will infer it from thefmt.