Skip to content

Cromizone/PyPrettier

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Prettier

A simple JSON syntax highlighter implemented in python.

Usage

import prettier

print(prettier.pretty({"string" : "hello world", "list" : ["list", 3, None]}))

Features

  • Data types: This module can pretty print list, dictionary, numbers, strings, None value.
  • Support nested list and dictionary: This module uses recursion to highlight object.

Requirements

  • colorama: colorama helps to get terminal colors

What I Have Learned

  • Recursion
  • Python Data Types