From 1c9ad4170750f7b72b2580ccc62926c608727613 Mon Sep 17 00:00:00 2001
From: "github-actions[bot]"
<41898282+github-actions[bot]@users.noreply.github.com>
Date: Mon, 10 Oct 2022 13:17:20 +0000
Subject: [PATCH 1/4] docs(contributor): contrib-readme-action has updated
readme
---
README.md | 32 ++++++++++++++++----------------
1 file changed, 16 insertions(+), 16 deletions(-)
diff --git a/README.md b/README.md
index 9b59133..7a7af17 100644
--- a/README.md
+++ b/README.md
@@ -238,6 +238,13 @@ Thanks a lot for spending your time helping! Keep rocking 🍻
YUNGH OG
+
+
+
+
+ Varun Tiwari
+
+ |
@@ -251,15 +258,15 @@ Thanks a lot for spending your time helping! Keep rocking 🍻
Drk1rd
- |
+
+
Null
- |
-
+
@@ -294,15 +301,15 @@ Thanks a lot for spending your time helping! Keep rocking 🍻
Shradha
- |
+
+
Nishant Pacharne
- |
-
+
@@ -337,15 +344,15 @@ Thanks a lot for spending your time helping! Keep rocking 🍻
Parinthapat P.
- |
+
+
Sayan Roy
- |
-
+
@@ -353,13 +360,6 @@ Thanks a lot for spending your time helping! Keep rocking 🍻
Siddhesh Bhupendra Kuakde
|
-
-
-
-
- Varun Tiwari
-
- |
From b215cfcabd38627d4f9b0229d4100ebd677f7b73 Mon Sep 17 00:00:00 2001
From: Siddhesh Bhupendra Kuakde
<65951872+SiddheshKukade@users.noreply.github.com>
Date: Mon, 10 Oct 2022 18:47:49 +0530
Subject: [PATCH 2/4] Create json2yaml.py
---
scripts/JSON-to-YAML Converter/json2yaml.py | 35 +++++++++++++++++++++
1 file changed, 35 insertions(+)
create mode 100644 scripts/JSON-to-YAML Converter/json2yaml.py
diff --git a/scripts/JSON-to-YAML Converter/json2yaml.py b/scripts/JSON-to-YAML Converter/json2yaml.py
new file mode 100644
index 0000000..9323e69
--- /dev/null
+++ b/scripts/JSON-to-YAML Converter/json2yaml.py
@@ -0,0 +1,35 @@
+import json
+import os
+import sys
+import yaml
+
+# Checking there is a file name passed
+if len(sys.argv) > 1:
+ # Opening the file
+ if os.path.exists(sys.argv[1]):
+ source_file = open(sys.argv[1], "r")
+ source_content = json.load(source_file)
+ source_file.close()
+ # Failikng if the file isn't found
+ else:
+ print("ERROR: " + sys.argv[1] + " not found")
+ exit(1)
+# No file, no usage
+else:
+ print("Usage: json2yaml.py [target_file.yaml]")
+
+# Processing the conversion
+output = yaml.dump(source_content)
+
+# If no target file send to stdout
+if len(sys.argv) < 3:
+ print(output)
+# If the target file already exists exit
+elif os.path.exists(sys.argv[2]):
+ print("ERROR: " + sys.argv[2] + " already exists")
+ exit(1)
+# Otherwise write to the specified file
+else:
+ target_file = open(sys.argv[2], "w")
+ target_file.write(output)
+ target_file.close()
From 18cfe443f1db9d899adeaa4d4f8166db4d4982b4 Mon Sep 17 00:00:00 2001
From: "github-actions[bot]"
<41898282+github-actions[bot]@users.noreply.github.com>
Date: Mon, 10 Oct 2022 13:18:01 +0000
Subject: [PATCH 3/4] docs(contributor): contrib-readme-action has updated
readme
---
README.md | 32 ++++++++++++++++----------------
1 file changed, 16 insertions(+), 16 deletions(-)
diff --git a/README.md b/README.md
index 7a7af17..72de1d3 100644
--- a/README.md
+++ b/README.md
@@ -238,6 +238,13 @@ Thanks a lot for spending your time helping! Keep rocking 🍻
YUNGH OG
|
+
+
+
+
+ Siddhesh Bhupendra Kuakde
+
+ |
@@ -251,15 +258,15 @@ Thanks a lot for spending your time helping! Keep rocking 🍻
Avyay Jain
- |
+
+
Drk1rd
- |
-
+
@@ -294,15 +301,15 @@ Thanks a lot for spending your time helping! Keep rocking 🍻
Srinjoy Pati
- |
+
+
Shradha
- |
-
+
@@ -337,15 +344,15 @@ Thanks a lot for spending your time helping! Keep rocking 🍻
Mayuri Kolhe
- |
+
+
Parinthapat P.
- |
-
+
@@ -353,13 +360,6 @@ Thanks a lot for spending your time helping! Keep rocking 🍻
Sayan Roy
|
-
-
-
-
- Siddhesh Bhupendra Kuakde
-
- |
From c805bc8655069c61c87a0b2fec60e1c1a18eec61 Mon Sep 17 00:00:00 2001
From: Siddhesh Bhupendra Kuakde
<65951872+SiddheshKukade@users.noreply.github.com>
Date: Mon, 10 Oct 2022 18:49:43 +0530
Subject: [PATCH 4/4] Create README.md
---
scripts/JSON-to-YAML Converter/README.md | 4 ++++
1 file changed, 4 insertions(+)
create mode 100644 scripts/JSON-to-YAML Converter/README.md
diff --git a/scripts/JSON-to-YAML Converter/README.md b/scripts/JSON-to-YAML Converter/README.md
new file mode 100644
index 0000000..fc103bc
--- /dev/null
+++ b/scripts/JSON-to-YAML Converter/README.md
@@ -0,0 +1,4 @@
+ ### JSON to YAML file converter
+ Takes JSON data and converts it into YAML file by braking the JSON array and using the YAML library of python
+ ### To Execute the code
+ `json2yaml.py input_file.json output_file.yaml`
|