Road map for python and yaml

Hi team,

#askmeanything

Please let me know the python roadmap and yaml

Yaml is used for automation so it’s equivalent to python?

2 Likes

Here is the python roadmap

3 Likes

JSON, XML, TOML, YAML are just different file structures to store the configurations and data.

Same information can be written all these ways.

Check here for more info.

The same content can be written in any format.
Check the below sample for the structures.

XML -

<config>
  <post title="Config files: ..."
    date="2019-08-26"
    draft="false">
    <tags>
      <t>tag1</t>
      <t>tag2</t>
    </tags>
  </post>
  ...
</config>

JSON -

[
  { title: "Config files: ...",
    date: "2019-08-26",
    draft: false,
    tags: [
      "tag1",
      "tag2"
    ]
  },
  ...
]

YAML -

---
config:
  post:
    "-title": Config files: ...
    "-date": 2019-08-26
    "-draft": false
    tags:
      t:
      - tag1
      - tag2

config.ini or TOML

[post]
title =  config files
date = 2019-08-26
draft = false

[tags]
t =  tag1, tag2

To read, write,parse each structure, there are modules available in python and other languages.

2 Likes