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
# Source: https://gist.github.com/0d73463668d1f75ac0e94c7cd7d03fed | |
############################################### | |
# GitHub CLI # | |
# How to manage repositories more efficiently # | |
# https://youtu.be/BII6ZY2Rnlc # | |
############################################### | |
# Referenced videos: | |
# - Ketch - How to Simplify Kubernetes Deployments: https://youtu.be/sMOIiTfGnj0 |
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
# Source: https://gist.github.com/0d73463668d1f75ac0e94c7cd7d03fed | |
############################################### | |
# GitHub CLI # | |
# How to manage repositories more efficiently # | |
# https://youtu.be/BII6ZY2Rnlc # | |
############################################### | |
# Referenced videos: | |
# - Ketch - How to Simplify Kubernetes Deployments: https://youtu.be/sMOIiTfGnj0 |
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
https://www.simplifiedpython.net/python-json-pretty-print | |
https://realpython.com/python-json/ | |
############################################################## | |
# pythonic way | |
############################################################## | |
import json | |
import requests | |
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
>>> import json | |
>>> a = {'hello': 'world', 'a': [1, 2, 3, 4], 'foo': 'bar'} | |
>>> print(json.dumps(a, indent=2)) | |
{ | |
"hello": "world", | |
"a": [ | |
1, | |
2, | |
3, | |
4 |