Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
| #!/usr/bin/env python | |
| # | |
| # Corey Goldberg - 2010 | |
| # ascii command-line progress bar with percentage and elapsed time display | |
| # | |
| import sys | |
| import time |
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 | |
| import xmltodict | |
| with open('sample.json', 'r') as f: | |
| jsonString = f.read() | |
| print('JSON input (sample.json):') | |
| print(jsonString) | |
| xmlString = xmltodict.unparse(json.loads(jsonString), pretty=True) |
NewerOlder