Skip to content

Latest commit

 

History

History
29 lines (18 loc) · 891 Bytes

README.md

File metadata and controls

29 lines (18 loc) · 891 Bytes

Day 15 Task: Python Libraries for DevOps

Reading JSON and YAML in Python

  • As a DevOps Engineer you should be able to parse files, be it txt, json, yaml, etc.
  • You should know what all libraries one should use in Pythonfor DevOps.
  • Python has numerous libraries like os, sys, json, yaml etc that a DevOps Engineer uses in day to day tasks.

Tasks

  1. Create a Dictionary in Python and write it to a json File.

  2. Read a json file services.json kept in this folder and print the service names of every cloud service provider.

output

aws : ec2
azure : VM
gcp : compute engine

  1. Read YAML file using python, file services.yaml and read the contents to convert yaml to json

Python Project for your practice: https://youtube.com/playlist?list=PLlfy9GnSVerSzFmQ8JqP9v0XHHOAeWbjo

← Previous Day | Next Day →