Dump Utilities

pcapkit.dumpkit is the collection of pcapkit’s own dumpers, alike those in dictdumper.

Every dumper class is a dictdumper.dumper.Dumper subclass, responsible for writing parsed packet data into a formatted output file. The class hierarchy:

        flowchart LR
    A{{Dumper}} --> D([other customisation ...])

    subgraph builtins [Built-in Dumpers]
        Tree & XML & JSON
        XML --> PLIST
        JSON -- deprecated --x VueJS
    end
    A --> Tree & XML & JSON

    subgraph pcapkit [PyPCAPKit Dumpers]
        DumperBase --> PCAPIO & NotImplementedIO
        DumperBase --> Dumper --> E([user customisation ...])
    end
    A --> DumperBase

    click A "https://dictdumper.jarryshaw.me/en/latest/dictdumper.dumper.html#dictdumper.dumper.Dumper"

    click Tree "https://dictdumper.jarryshaw.me/en/latest/dictdumper.tree.html#dictdumper.tree.Tree"
    click XML "https://dictdumper.jarryshaw.me/en/latest/dictdumper.xml.html#dictdumper.xml.XML"
    click JSON "https://dictdumper.jarryshaw.me/en/latest/dictdumper.json.html#dictdumper.json.JSON"
    click PLIST "https://dictdumper.jarryshaw.me/en/latest/dictdumper.plist.html#dictdumper.plist.PLIST"
    click VueJS "https://dictdumper.jarryshaw.me/en/latest/dictdumper.vuejs.html#dictdumper.vuejs.VueJS"

    click DumperBase "common.html#pcapkit.dumpkit.common.DumperBase"
    click Dumper "common.html#pcapkit.dumpkit.common.Dumper"
    click PCAPIO "pcap.html#pcapkit.dumpkit.pcap.PCAPIO"
    click NotImplementedIO "null.html#pcapkit.dumpkit.null.NotImplementedIO"
    

Note

The tree output (also selected as text and txt) is a lossy, human-readable view, and nothing reads it back. It renders '', b'', None and {} all as NIL, and writes a newline inside a string as is, breaking the layout. Use json or plist (also selected as xml) where the report has to round-trip.