Skip to main content

print dict in aligned way

Project description

dict_aligned_print

print non nested dict in aligned way

usage example:
    input:
        from dict_aligned_print import print_dict

        dct = dict(my_key="hi", a=42, b='bb', my_key2=3)
        dct['another key'] = dict(a=4)
        
        print_dict(dct)
    
    output:
             my_key : hi
                  a : 42
                  b : bb
            my_key2 : 3
        another key : {'a': 4}
        --------------------------------------------------

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

dict_aligned_print-0.1.2.tar.gz (2.9 kB view details)

Uploaded Source

Built Distribution

dict_aligned_print-0.1.2-py3-none-any.whl (3.4 kB view details)

Uploaded Python 3

File details

Details for the file dict_aligned_print-0.1.2.tar.gz.

File metadata

  • Download URL: dict_aligned_print-0.1.2.tar.gz
  • Upload date:
  • Size: 2.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/32.0 requests/2.26.0 requests-toolbelt/0.9.1 urllib3/1.26.6 tqdm/4.62.2 importlib-metadata/4.10.1 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.9.5

File hashes

Hashes for dict_aligned_print-0.1.2.tar.gz
Algorithm Hash digest
SHA256 f46c13a6ff1eb84e96a1ab83aa6e710fe9984f3ce1aebd80bf545b0f70731f5b
MD5 7c3ea1613beeb8866996e1c88ed2041b
BLAKE2b-256 1dbd65e8042c2b9ac06552ea8c5c0edce02c64030e62e4b19776a30fda86b8bb

See more details on using hashes here.

File details

Details for the file dict_aligned_print-0.1.2-py3-none-any.whl.

File metadata

  • Download URL: dict_aligned_print-0.1.2-py3-none-any.whl
  • Upload date:
  • Size: 3.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/32.0 requests/2.26.0 requests-toolbelt/0.9.1 urllib3/1.26.6 tqdm/4.62.2 importlib-metadata/4.10.1 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.9.5

File hashes

Hashes for dict_aligned_print-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 2daa095c8bc8618314ced491574793eaee4fd5b132906ced7d6c9fa9430fa40a
MD5 ab207ab7b711541070a96b024b3cc7c9
BLAKE2b-256 003fbbada141246ccf20b130648da94193be2cc2687a724e0f13e0942ad4c0b8

See more details on using hashes here.

Supported by

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