Skip to main content

Command Palette

Search for a command to run...

DevOps(Day-15): Python Libraries for DevOps

Published
1 min read
DevOps(Day-15): Python Libraries for DevOps
B

I like to explore the technology in DevOps area where I write blog about my learning each day on the tools that is mostly used in Industries for DevOps practices. You can go through my blogs and reach me out in LinkedIn for any suggestions.

1. 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 Python for DevOps.

  • Python has numerous libraries like os, sys, json, yaml etc that a DevOps Engineer uses in day-to-day tasks.

2. 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

More from this blog

Untitled Publication

98 posts