DictDumper: comprehensive network packet analysis library
Maintained. Last release 4 weeks ago, commits in 1 of the last 26 weeks. Weaker on commit activity and release cadence.
pip install dictdumperDictDumper
The dictdumper project is an open source Python program works as a stream formatted output dumper for dict.
- About
dictdumper.Dumperdictdumper.JSONdictdumper.PLISTdictdumper.Treedictdumper.XMLdictdumper.HTML
- Installation
- Usage
About
Currently, it supports following formats --
dictdumper.Dumper-- abstract base class of all dumpersdictdumper.JSON-- dump JavaScript object notation (JSON) format filedictdumper.PLIST-- dump Apple property list (PLIST) format filedictdumper.Tree-- dump tree-view text (TXT) format filedictdumper.XML-- dump extensible markup language (XML) file (base class)dictdumper.HTML-- dump JavaScript file underVue.jsframework (DEPRECATED)

Installation:
Note that
dictdumpersupports Python 3.8 and above
pip install dictdumper
Usage
dictdumper is quite easy to use. After installation, importation, and initialisation, you can simple call the instance to dump contents.
Take
dictdumper.Treefor example
import dictdumper
dumper = dictdumper.Tree('out.txt')
test_1 = dict(
foo=-1,
bar='Hello, world!',
boo=dict(
foo_again=True,
bar_again=memoryview(b'bytes'),
boo_again=None,
),
)
dumper(test_1, name='test_1')
$ cat out.txt
test_1
|-- foo -> -1
|-- bar -> Hello, world!
|-- boo
|-- foo_again -> True
|-- bar_again
| |-- type -> memoryview
| |-- value -> 62 79 74 65 73
| |-- text -> bytes
|-- boo_again -> NIL