I would like to store this kind of configuration, with repetition of sections and the keys within each:
[item]
name = 'name1'
url = 'address1'
whatever_var = 'foo1'
[item]
name = 'name2'
url = 'address2'
whatever_var = 'foo2'
...
What config file format would be adequate for such structure?: ConfigParser, ConfigObj, JSON, YAML,...? I have never used any (Python newcomer) and would like to know which one fits best.
Note: I am using Python 2.7 so far.
[EDIT]: Well, I believe it's not just a duplicate question, because I need not just duplicated keys, but: - duplicated sections (with their unique keys inside, which cannot be bropued with other keys from other sections)
Also, I don't ask how to do it in ConfigParser, but which file type fits better in this situation (XML, JSON, custom file,...). In fact, I think that what I want cannot be obtained with ConfigParser nor ConfigObj, and I might try XML, even if it is a bit less human-readable. And, hey, it's never a waste of time learning to deal with XML files.