This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import requests | |
import argparse | |
def print_dict(d, level=0): | |
''' | |
Convert a python dict to a pretty-print string. | |
Supports strings, nested dicts and lists as values. | |
''' | |
new_level = level + 1 |
NewerOlder