# 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 Python for 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.
    
    ![](https://cdn.hashnode.com/res/hashnode/image/upload/v1682755899719/2cb9a7f3-9558-4927-aca4-bd26139ca1cb.png align="center")
    
    ![](https://cdn.hashnode.com/res/hashnode/image/upload/v1682755921141/ee2ead30-b991-4ae0-8eba-0b609cd07f93.png align="center")
    
2. Read YAML file using Python, file `services.yaml` and read the contents to convert yaml to json
    
    YAML (short for "YAML Ain't Markup Language") is a human-readable data serialization language. It is often used as a configuration file format for applications and systems.
    
    ![](https://cdn.hashnode.com/res/hashnode/image/upload/v1682757238659/c14d75f2-de36-4505-8306-22d76cdf4d2a.png align="center")
    
    ![](https://cdn.hashnode.com/res/hashnode/image/upload/v1682757749885/50494abf-6a39-4a62-91f4-54a851176b3a.png align="center")
    
    Happy learning,
    
    Mohammed Muqafamuddin.
