Skip to main content

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 markup language (XML) file (base class)
  • dictdumper.HTML -- dump JavaScript file under Vue.js framework (DEPRECATED)

 

Installation:

Note that dictdumper supports 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.Tree for 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
import datetime
test_2 = dict(
    foo=[1, 2.0, 3],
    bar=(1.0, bytearray(b'a long long bytes'), 3.0),
    boo=dict(
        foo_again=b'bytestring',
        bar_again=datetime.datetime(2020, 1, 31, 20, 15, 10, 163010),
        boo_again=float('-inf'),
    ),
)
dumper(test_2, name='test_2')
$ 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

test_2
  |-- foo
  |     |--> 1
  |     |--> 2.0
  |     |--> 3
  |-- bar
  |     |-- type -> tuple
  |     |-- value
  |           |--> 1.0
  |           |--> --
  |           |     |-- type -> bytearray
  |           |     |-- value
  |           |     |     |--> 61 20 6c 6f 6e 67 20 6c 6f 6e 67 20 62 79 74 65
  |           |     |          73
  |           |     |-- text -> a long long bytes
  |           |--> 3.0
  |-- boo
        |-- foo_again -> 62 79 74 65 73 74 72 69 6e 67
        |-- bar_again -> 2020-01-31T20:15:10.163010
        |-- boo_again -> -Infinity
test_3 = dict(
    foo="stringstringstringstringstringstringstringstringstringstring",
    bar=[
        "s1", False, "s3",
    ],
    boo=[
        "s4", dict(s="5", j="5"), "s6"
    ],
    far=dict(
        far_foo=["s1", "s2", "s3"],
        far_var="s4",
    ),
    biu=float('nan'),
)
dumper(test_3, name='test_3')
$ 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

test_2
  |-- foo
  |     |--> 1
  |     |--> 2.0
  |     |--> 3
  |-- bar
  |     |-- type -> tuple
  |     |-- value
  |           |--> 1.0
  |           |--> --
  |           |     |-- type -> bytearray
  |           |     |-- value
  |           |     |     |--> 61 20 6c 6f 6e 67 20 6c 6f 6e 67 20 62 79 74 65
  |           |     |          73
  |           |     |-- text -> a long long bytes
  |           |--> 3.0
  |-- boo
        |-- foo_again -> 62 79 74 65 73 74 72 69 6e 67
        |-- bar_again -> 2020-01-31T20:15:10.163010
        |-- boo_again -> -Infinity

test_3
  |-- foo
  |     |--> stringstringstringstringstringstringstri
  |          ngstringstringstring
  |-- bar
  |     |--> s1
  |     |--> False
  |     |--> s3
  |-- boo
  |     |--> s4
  |     |--> --
  |     |     |-- s -> 5
  |     |     |-- j -> 5
  |     |--> s6
  |-- far
  |     |-- far_foo
  |     |     |--> s1
  |     |     |--> s2
  |     |     |--> s3
  |     |-- far_var -> s4
  |-- biu -> NaN

Metadata

Release files for dictdumper 0.8.5

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for dictdumper 0.8.5
File Size Uploaded Provenance Actions
dictdumper-0.8.5.tar.gz 86.4 kB Without provenance Details for dictdumper-0.8.5.tar.gz

Built distributions (wheels)

Table of built distributions (wheels) for dictdumper 0.8.5
File Actions
dictdumper-0.8.5-pp310-none-any.whl PyPy 3.10 none any Details for dictdumper-0.8.5-pp310-none-any.whl
dictdumper-0.8.5-pp39-none-any.whl PyPy 3.9 none any Details for dictdumper-0.8.5-pp39-none-any.whl
dictdumper-0.8.5-pp38-none-any.whl PyPy 3.8 none any Details for dictdumper-0.8.5-pp38-none-any.whl
dictdumper-0.8.5-cp315-none-any.whl CPython 3.15 none any Details for dictdumper-0.8.5-cp315-none-any.whl
dictdumper-0.8.5-cp314-none-any.whl CPython 3.14 none any Details for dictdumper-0.8.5-cp314-none-any.whl
dictdumper-0.8.5-cp313-none-any.whl CPython 3.13 none any Details for dictdumper-0.8.5-cp313-none-any.whl
dictdumper-0.8.5-cp312-none-any.whl CPython 3.12 none any Details for dictdumper-0.8.5-cp312-none-any.whl
dictdumper-0.8.5-cp311-none-any.whl CPython 3.11 none any Details for dictdumper-0.8.5-cp311-none-any.whl
dictdumper-0.8.5-cp310-none-any.whl CPython 3.10 none any Details for dictdumper-0.8.5-cp310-none-any.whl
dictdumper-0.8.5-cp39-none-any.whl CPython 3.9 none any Details for dictdumper-0.8.5-cp39-none-any.whl

Total release size: 280.9 kB

Release files / dictdumper-0.8.5.tar.gz

Download URL dictdumper-0.8.5.tar.gz
Size 86.4 kB
Tags Source
SHA-256 checksum
How to use checksums
517215a8771558c4ba185aed640e0beb308ef6536f5d04e025d5995705aec3e6
BLAKE2b-256 checksum
How to use checksums
1dbec01ec65ee9503f8e964d5cb2a59a09da5e46f19ee67f6b851217c76b3503
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Release files / dictdumper-0.8.5-pp310-none-any.whl

Download URL dictdumper-0.8.5-pp310-none-any.whl
Size 19.5 kB
Tags PyPy 3.10
SHA-256 checksum
How to use checksums
79a73895ea04d856ec7d6dbde3330ac10667b12860d16a18926e89268ce2c534
BLAKE2b-256 checksum
How to use checksums
86be18dda8d12fa2fff13dc3340bdfd6c9e2842ae044ce20cd35716fdf30622b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Release files / dictdumper-0.8.5-pp39-none-any.whl

Download URL dictdumper-0.8.5-pp39-none-any.whl
Size 19.5 kB
Tags PyPy 3.9
SHA-256 checksum
How to use checksums
5f6ca50c112135b7e024502ccee630f8774f21c81886a6c24906dbae047635c7
BLAKE2b-256 checksum
How to use checksums
f986ff5fdeb738d74b102ff46d5adc37e7f41dd0a4b9583e66cdde42abe1cbbe
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Release files / dictdumper-0.8.5-pp38-none-any.whl

Download URL dictdumper-0.8.5-pp38-none-any.whl
Size 19.4 kB
Tags PyPy 3.8
SHA-256 checksum
How to use checksums
9969c44ae8cd94992b799a01920571e7c85150afa81e875b2ef0bebd9e533ed2
BLAKE2b-256 checksum
How to use checksums
5afa7a1cf30c8567e3d6ccb62df1dfd4169da75ad7e06108623ecdf00628da7c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Release files / dictdumper-0.8.5-cp315-none-any.whl

Download URL dictdumper-0.8.5-cp315-none-any.whl
Size 19.5 kB
Tags CPython 3.15
SHA-256 checksum
How to use checksums
d56a76f9a909adee169fadfea3c41907aa6d5b2b7e2f39e0a467adaab1369be0
BLAKE2b-256 checksum
How to use checksums
c548287f458c172522c2d941bdc33eebdc4a42d3c9e693d50ce4d4100b5e1609
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Release files / dictdumper-0.8.5-cp314-none-any.whl

Download URL dictdumper-0.8.5-cp314-none-any.whl
Size 19.5 kB
Tags CPython 3.14
SHA-256 checksum
How to use checksums
f0f69b4090ac78d9af571682db4a95216ddff41c75fce7308fea87477dc1df4c
BLAKE2b-256 checksum
How to use checksums
5b04bb0c6d780c4efc165ef86aad7ad73cbce7bed13a4d6656c6243de23af02c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Release files / dictdumper-0.8.5-cp313-none-any.whl

Download URL dictdumper-0.8.5-cp313-none-any.whl
Size 19.5 kB
Tags CPython 3.13
SHA-256 checksum
How to use checksums
2206344fda9b2554cfe63556a1d30ca1b6fed81f8d3c8a2fe33daa7432738327
BLAKE2b-256 checksum
How to use checksums
65750b3685b562f1cc2b8ec52ed21005b50c37d1507d4df714e78c8fff37d13d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Release files / dictdumper-0.8.5-cp312-none-any.whl

Download URL dictdumper-0.8.5-cp312-none-any.whl
Size 19.5 kB
Tags CPython 3.12
SHA-256 checksum
How to use checksums
a663fa8b36e581284f36878cad8fc679d64bf7f8dd8b959e546cb570f6f9a1c8
BLAKE2b-256 checksum
How to use checksums
94200a485c7384d9bbf781860d3d4582f3f43253028b4bdcb051b28bf1973634
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Release files / dictdumper-0.8.5-cp311-none-any.whl

Download URL dictdumper-0.8.5-cp311-none-any.whl
Size 19.5 kB
Tags CPython 3.11
SHA-256 checksum
How to use checksums
f4046d96f0fb0c821eac88835c764e3a0d8cc28f2f5947fc2a72886d71d58e66
BLAKE2b-256 checksum
How to use checksums
26e230d1924d90425d8fc7c1f41a2c463add6e612254177de666cacccea6e0b0
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Release files / dictdumper-0.8.5-cp310-none-any.whl

Download URL dictdumper-0.8.5-cp310-none-any.whl
Size 19.5 kB
Tags CPython 3.10
SHA-256 checksum
How to use checksums
d204313ffc6084a813c201e828d707656b2d5ea7ca428437ffb59058c8329fae
BLAKE2b-256 checksum
How to use checksums
b12d177e2cefcfb0cf03973a774f0f5a38804d27af2062a7f87cad5cbcffa161
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Release files / dictdumper-0.8.5-cp39-none-any.whl

Download URL dictdumper-0.8.5-cp39-none-any.whl
Size 19.5 kB
Tags CPython 3.9
SHA-256 checksum
How to use checksums
eea37f7217979fc78daf2f2ee67f8bfda0771874a55445ba439974eeb53b1d1f
BLAKE2b-256 checksum
How to use checksums
3edc64caf2744bf5b1e3727ef2b8d689fa099cab43db6440f125e7570a1b478a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Security for dictdumper 0.8.5

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.8.5 This release

11 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page