I would like to read following config file having IPs defined for workers and managers. I tried configparser module but it requires key-value pairs. Anyone has any idea to read the below file using python, I would be thankful.
[managers]
1.2.3.4
[workers]
2.3.45.5
3.5.6.7
5.7.8.9
File may have random number of IPs.