Dump Utilities

pcapkit.dumpkit is the collection of dumpers for pcapkit implementation, which is alike those described in dictdumper.

PCAP Dumper

Undefined Dumper

class pcapkit.dumpkit.NotImplementedIO(fname, **kwargs)[source]

Bases: dictdumper.dumper.Dumper

Unspecified output format.

__call__(value, name=None)[source]

Dump a new frame.

Parameters
  • value (Dict[str, Any]) – content to be dumped

  • name (Optional[str]) – name of current content block

Returns

the dumper class itself (to support chain calling)

Return type

PCAP

_append_value(value, file, name)[source]

Call this function to write contents.

Parameters
  • value (Dict[str, Any]) – content to be dumped

  • file (io.TextIOWrapper) – output file

  • name (str) – name of current content block

_dump_header(**kwargs)[source]

Initially dump file heads and tails.

Keyword Arguments

**kwargs – arbitrary keyword arguments

property kind

File format of current dumper.

Return type

Literal[NotImplemented]