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 hashes)

Uploaded Source

Built Distribution

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

Uploaded Python 3

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