Python Libraries for DevOps

Hello there👋, I'm Akash Zade and I'm passionate about the world of DevOps. As a curious and dedicated learner🏆, I'm constantly exploring new ways to improve software development and make the process more efficient. With a keen interest 🍁 in cloud computing, containerization, and automation, I'm excited to share my insights and experiences as I navigate the ever-evolving world of DevOps. Join me 🤝 on this awesome journey where technology meets efficiency!
Tasks
Create a Dictionary in Python and write it to a JSON File.

Output:

Read a JSON file
services.jsonkept in this folder and print the service names of every cloud service provider.output aws : ec2 azure : VM gcp : compute engineHere we first read the JSON file, on the left side of the image, kept in this folder and parse by using the loads() function then we print this file data by print function.

Read YAML file using python, file
services.yamland read the contents to convert YAML to JSON.First, we write the file data to the Yaml file using the dump() function & Then we fetch all data from Yaml by using the safe_load function.
File data is available in the Yaml file as we see on the left side of the image.

Then we converted the Yaml file to a JSON file and formatted the JSON file can be seen on the right side image as a result.
That's all guys.
Thank you for your valuable time.
Thanks for learning with me!
Keep Learning and stay healthy.





