Created
June 7, 2022 16:25
-
-
Save DDuarte/48770b0083644eef4c2f5560e539cc96 to your computer and use it in GitHub Desktop.
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 yaml | |
import json | |
import sys | |
with open(sys.argv[1]) as f: | |
y = yaml.safe_load(f) | |
with open(sys.argv[1].replace("yml", "json").replace("yaml", "json"), "w") as ff: | |
json.dump(y, ff) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment