Skip to main content

Python dict formatted dumper.

Project description

DictDumper

  The dictdumper project is an open source Python program works as a stream formatted output dumper for dict.

  • About
    • dictdumper.Dumper
    • dictdumper.JSON
    • dictdumper.PLIST
    • dictdumper.Tree
    • dictdumper.XML
    • dictdumper.HTML
  • Installation
  • Usage

About

  Currently, it supports following formats --

  • dictdumper.Dumper -- abstract base class of all dumpers
  • dictdumper.JSON -- dump JavaScript object notation (JSON) format file
  • dictdumper.PLIST -- dump Apple property list (PLIST) format file
  • dictdumper.Tree -- dump tree-view text (TXT) format file
  • dictdumper.XML -- dump extensible Mmarkup language (XML) file (base class)
  • dictdumper.HTML -- dump JavaScript file under Vue.js framework (DEPRECATED)

 

Installation:

Note that dictdumper supports Python versions 2.7 and all versions since 3.0

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.Tree for example

import dictdumper
dumper = dictdumper.Tree('out.txt')
test_1 = dict(
    foo = -1,                   # int
    bar = 'Hello, world!',      # string
    boo = dict(                 # dict
        foo_again = True,       # bool
        bar_again = b'bytes',   # bytes (b'\x62\x79\x74\x65\x73')
        boo_again = None,       # NoneType
    ),
)
dumper(test_1, name='test_1')
$ cat out.txt
PCAP File Tree-View Format

test
  |-- foo -> -1
  |-- bar -> hello
  |-- boo
        |-- foo_again -> True
        |-- bar_again -> 62 79 74 65 73
        |-- boo_again -> N/A
import datetime
test_2 = dict(
    foo = [1, 2.0, 3],          # list
    bar = (1.0, 2, 3.0),        # tuple
    boo = dict(                 # dict
        foo_again = 'a long long bytes',
                                # bytes
        bar_again = datetime.datetime.today(),
                                # datetime
        boo_again = -1.0,       # float
    ),
)
dumper(test_2, name='test_2')
$ cat out.txt
PCAP File Tree-View Format

test_1
  |-- foo -> -1
  |-- bar -> Hello, world!
  |-- boo
        |-- foo_again -> True
        |-- bar_again -> 62 79 74 65 73
        |-- boo_again -> N/A

test_2
  |-- foo
  |     |--> 1
  |     |--> 2.0
  |     |--> 3
  |-- bar
  |     |--> 1.0
  |     |--> 2
  |     |--> 3.0
  |-- boo
        |-- foo_again -> a long long bytes
        |-- bar_again -> 2018-03-08 17:47:35
        |-- boo_again -> -1.0

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

dictdumper-0.7.0.tar.gz (68.7 kB view details)

Uploaded Source

Built Distributions

If you're not sure about the file name format, learn more about wheel file names.

dictdumper-0.7.0-py3.7.egg (28.3 kB view details)

Uploaded Egg

dictdumper-0.7.0-py3.6.egg (28.3 kB view details)

Uploaded Egg

dictdumper-0.7.0-py3.5.egg (28.7 kB view details)

Uploaded Egg

dictdumper-0.7.0-py3.4.egg (28.7 kB view details)

Uploaded Egg

dictdumper-0.7.0-py2.7.egg (26.3 kB view details)

Uploaded Egg

dictdumper-0.7.0-pp35-none-macosx_10_14_x86_64.whl (19.2 kB view details)

Uploaded PyPymacOS 10.14+ x86-64

dictdumper-0.7.0-pp27-none-macosx_10_14_x86_64.whl (19.2 kB view details)

Uploaded PyPymacOS 10.14+ x86-64

dictdumper-0.7.0-cp37-none-macosx_10_14_x86_64.whl (19.2 kB view details)

Uploaded CPython 3.7macOS 10.14+ x86-64

dictdumper-0.7.0-cp36-none-macosx_10_14_x86_64.whl (19.2 kB view details)

Uploaded CPython 3.6macOS 10.14+ x86-64

dictdumper-0.7.0-cp35-none-macosx_10_14_x86_64.whl (19.2 kB view details)

Uploaded CPython 3.5macOS 10.14+ x86-64

dictdumper-0.7.0-cp34-none-macosx_10_14_x86_64.whl (19.2 kB view details)

Uploaded CPython 3.4macOS 10.14+ x86-64

dictdumper-0.7.0-cp27-none-macosx_10_14_x86_64.whl (19.2 kB view details)

Uploaded CPython 2.7macOS 10.14+ x86-64

File details

Details for the file dictdumper-0.7.0.tar.gz.

File metadata

  • Download URL: dictdumper-0.7.0.tar.gz
  • Upload date:
  • Size: 68.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.19.1 setuptools/40.4.3 requests-toolbelt/0.8.0 tqdm/4.26.0 CPython/3.7.1

File hashes

Hashes for dictdumper-0.7.0.tar.gz
Algorithm Hash digest
SHA256 ea728ce02920a3aed052c1a8676c7098359701e298918efbc62c0eba846f807f
MD5 d6a2b84f0986bd42ab170a1db5d3cf3c
BLAKE2b-256 e3a941c93d7108131852f39a094367114f83246d12020a8d1a246137e6277e04

See more details on using hashes here.

File details

Details for the file dictdumper-0.7.0-py3.7.egg.

File metadata

  • Download URL: dictdumper-0.7.0-py3.7.egg
  • Upload date:
  • Size: 28.3 kB
  • Tags: Egg
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.19.1 setuptools/40.4.3 requests-toolbelt/0.8.0 tqdm/4.26.0 CPython/3.7.1

File hashes

Hashes for dictdumper-0.7.0-py3.7.egg
Algorithm Hash digest
SHA256 a2b5d50f78a0912f4714ea1f1f52c8454d66ec3b252cb6e7157251b3a72fb532
MD5 be01be247b831d0424cc7d19cd072d89
BLAKE2b-256 f45085260644541c15abb6ace915f64153c71caf834531ce1b1eae08a8bb25b9

See more details on using hashes here.

File details

Details for the file dictdumper-0.7.0-py3.6.egg.

File metadata

  • Download URL: dictdumper-0.7.0-py3.6.egg
  • Upload date:
  • Size: 28.3 kB
  • Tags: Egg
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.19.1 setuptools/40.4.3 requests-toolbelt/0.8.0 tqdm/4.26.0 CPython/3.7.1

File hashes

Hashes for dictdumper-0.7.0-py3.6.egg
Algorithm Hash digest
SHA256 99d29682931f9fa889d617ba39073319bdd1e006e8a319345f93287209d2c89a
MD5 542eb413703cbee380094d998fa4ab2a
BLAKE2b-256 4c21a662c847d1a09b9e8eacac336a132d696e4208ab54b0bbd3a7a21b676905

See more details on using hashes here.

File details

Details for the file dictdumper-0.7.0-py3.5.egg.

File metadata

  • Download URL: dictdumper-0.7.0-py3.5.egg
  • Upload date:
  • Size: 28.7 kB
  • Tags: Egg
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.19.1 setuptools/40.4.3 requests-toolbelt/0.8.0 tqdm/4.26.0 CPython/3.7.1

File hashes

Hashes for dictdumper-0.7.0-py3.5.egg
Algorithm Hash digest
SHA256 250e1ebad5153dc333fb743a8e57427683a9c9b35ff68fdd4211fc6f73910e4e
MD5 546d40e9717a977557fada845c12776e
BLAKE2b-256 01f8757d63eec6f710ea9d33f715653911f5298a418f32e5ca881881d116d3a6

See more details on using hashes here.

File details

Details for the file dictdumper-0.7.0-py3.4.egg.

File metadata

  • Download URL: dictdumper-0.7.0-py3.4.egg
  • Upload date:
  • Size: 28.7 kB
  • Tags: Egg
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.19.1 setuptools/40.4.3 requests-toolbelt/0.8.0 tqdm/4.26.0 CPython/3.7.1

File hashes

Hashes for dictdumper-0.7.0-py3.4.egg
Algorithm Hash digest
SHA256 0e3d3b12535e41d00bc762fd7560f8743c88ee812ebc639f88d9d3fcc3512765
MD5 4504d44815ee05d4ac15ce921cfe56c3
BLAKE2b-256 270b0d2089d087826874529d30a4331f31f98d5f537b4cbe530504e9132eec9e

See more details on using hashes here.

File details

Details for the file dictdumper-0.7.0-py2.7.egg.

File metadata

  • Download URL: dictdumper-0.7.0-py2.7.egg
  • Upload date:
  • Size: 26.3 kB
  • Tags: Egg
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.19.1 setuptools/40.4.3 requests-toolbelt/0.8.0 tqdm/4.26.0 CPython/3.7.1

File hashes

Hashes for dictdumper-0.7.0-py2.7.egg
Algorithm Hash digest
SHA256 32a88caa2423ca780ba05975a6364333d0a586460c0a97242260ac89f6346ca6
MD5 f003bb142793cf767a091e5b11392215
BLAKE2b-256 8e3f4ddd443f3e685f61d5dee51ebd48ae7b4249009c036669fac875859c920a

See more details on using hashes here.

File details

Details for the file dictdumper-0.7.0-pp35-none-macosx_10_14_x86_64.whl.

File metadata

  • Download URL: dictdumper-0.7.0-pp35-none-macosx_10_14_x86_64.whl
  • Upload date:
  • Size: 19.2 kB
  • Tags: PyPy, macOS 10.14+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.19.1 setuptools/40.4.3 requests-toolbelt/0.8.0 tqdm/4.26.0 CPython/3.7.1

File hashes

Hashes for dictdumper-0.7.0-pp35-none-macosx_10_14_x86_64.whl
Algorithm Hash digest
SHA256 bbc7f7f7addccf4f31806018f427843d798cc904ab8c3bc6189306b47a230053
MD5 54ceb8c22d223a061bb21099fc91cafa
BLAKE2b-256 0d0fd1c58ee91ac1363e77a2e8e65920537702282887dc729c9bfeeb3a79c966

See more details on using hashes here.

File details

Details for the file dictdumper-0.7.0-pp27-none-macosx_10_14_x86_64.whl.

File metadata

  • Download URL: dictdumper-0.7.0-pp27-none-macosx_10_14_x86_64.whl
  • Upload date:
  • Size: 19.2 kB
  • Tags: PyPy, macOS 10.14+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.19.1 setuptools/40.4.3 requests-toolbelt/0.8.0 tqdm/4.26.0 CPython/3.7.1

File hashes

Hashes for dictdumper-0.7.0-pp27-none-macosx_10_14_x86_64.whl
Algorithm Hash digest
SHA256 35657a28bafeb416eea91161fe03ad9b73d01206d368bfca68edf06ddbb98921
MD5 576db48ec0e755edd9f51515d2c2a1d6
BLAKE2b-256 c5481500246a4e4e198131c799270f98f03a3e8c82265f71ea382c89ac4cae2f

See more details on using hashes here.

File details

Details for the file dictdumper-0.7.0-cp37-none-macosx_10_14_x86_64.whl.

File metadata

  • Download URL: dictdumper-0.7.0-cp37-none-macosx_10_14_x86_64.whl
  • Upload date:
  • Size: 19.2 kB
  • Tags: CPython 3.7, macOS 10.14+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.19.1 setuptools/40.4.3 requests-toolbelt/0.8.0 tqdm/4.26.0 CPython/3.7.1

File hashes

Hashes for dictdumper-0.7.0-cp37-none-macosx_10_14_x86_64.whl
Algorithm Hash digest
SHA256 5a0fe58d75c59c1baa86b7b3570f28a3d7f31620e54c88bfe033b5f956a2efd4
MD5 70a16924b801ad4dd70fc2bf095a942b
BLAKE2b-256 a73dd663e40fbe79d7bb75f2c4d6d77787f17ae967aa3e30c0057b885cab2a21

See more details on using hashes here.

File details

Details for the file dictdumper-0.7.0-cp36-none-macosx_10_14_x86_64.whl.

File metadata

  • Download URL: dictdumper-0.7.0-cp36-none-macosx_10_14_x86_64.whl
  • Upload date:
  • Size: 19.2 kB
  • Tags: CPython 3.6, macOS 10.14+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.19.1 setuptools/40.4.3 requests-toolbelt/0.8.0 tqdm/4.26.0 CPython/3.7.1

File hashes

Hashes for dictdumper-0.7.0-cp36-none-macosx_10_14_x86_64.whl
Algorithm Hash digest
SHA256 643fd8286f4fa384e52419e250f0993f2bdf6cc7cc5bcd2914f6b0437d22b118
MD5 a724a9439772887405ee9e6ed1fd1929
BLAKE2b-256 5712bbb48e6878d1aa531919e7d102bd6265e29f20aba862577cc47a7a98b899

See more details on using hashes here.

File details

Details for the file dictdumper-0.7.0-cp35-none-macosx_10_14_x86_64.whl.

File metadata

  • Download URL: dictdumper-0.7.0-cp35-none-macosx_10_14_x86_64.whl
  • Upload date:
  • Size: 19.2 kB
  • Tags: CPython 3.5, macOS 10.14+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.19.1 setuptools/40.4.3 requests-toolbelt/0.8.0 tqdm/4.26.0 CPython/3.7.1

File hashes

Hashes for dictdumper-0.7.0-cp35-none-macosx_10_14_x86_64.whl
Algorithm Hash digest
SHA256 b4d4c82fa208f4954fc151db43441c8d7b3384175970e5258411f7b928d92dfa
MD5 4f7a770bf6b2c3808d718370f01d2859
BLAKE2b-256 07f27a099bebc548e58a0da6080521d2187f377625981760e3db02c6c0b1bb82

See more details on using hashes here.

File details

Details for the file dictdumper-0.7.0-cp34-none-macosx_10_14_x86_64.whl.

File metadata

  • Download URL: dictdumper-0.7.0-cp34-none-macosx_10_14_x86_64.whl
  • Upload date:
  • Size: 19.2 kB
  • Tags: CPython 3.4, macOS 10.14+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.19.1 setuptools/40.4.3 requests-toolbelt/0.8.0 tqdm/4.26.0 CPython/3.7.1

File hashes

Hashes for dictdumper-0.7.0-cp34-none-macosx_10_14_x86_64.whl
Algorithm Hash digest
SHA256 fffdb67f4596355e6298ae3d4232d3917ac24d872cc1445757dc5e56a2323a35
MD5 09e8c2e645e2ee9bdf9634eb3aced8d8
BLAKE2b-256 78357f4aec5a84f0cfd5473ce5120f578d5c22570107676c90e15b87a633df0a

See more details on using hashes here.

File details

Details for the file dictdumper-0.7.0-cp27-none-macosx_10_14_x86_64.whl.

File metadata

  • Download URL: dictdumper-0.7.0-cp27-none-macosx_10_14_x86_64.whl
  • Upload date:
  • Size: 19.2 kB
  • Tags: CPython 2.7, macOS 10.14+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.19.1 setuptools/40.4.3 requests-toolbelt/0.8.0 tqdm/4.26.0 CPython/3.7.1

File hashes

Hashes for dictdumper-0.7.0-cp27-none-macosx_10_14_x86_64.whl
Algorithm Hash digest
SHA256 fee5e9b30e0d17c2bfcb85ac7cbf4ebe0b2a25af89b194f6a66b4d0e82b02aa5
MD5 00d09570774b9f0b7c86a8763fab6257
BLAKE2b-256 2c9f5c019b1cfee2bc04fd3aaef4597a5341cdf0b4cccc13a7c971b1607b1245

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page