This file contains hidden or 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
from pygments import highlight | |
from pygments.lexers import PythonLexer, JsonLexer | |
from pygments.formatters import TerminalFormatter | |
from pprint import pformat | |
def ap(obj): | |
'''Faked Awesome Print''' | |
print(highlight(pformat(obj), PythonLexer(), TerminalFormatter())) |