Auto generate a config file for deepstream

Is there any tool which can help us to auto generate deepstream config file

For example : given list of camera sources and their address in a text file , I would like to autogenerate config file and change few parameters such as enable corresponding sink etc.
I can write my own config file manually , but it is a pain when source stream increases to 50-100

Thank you in advance

@hrsht.sarma

Python’s configparser module can do it as can GLib’s KeyFile. Basically any library that can generate .ini files will work.

You’ll have to write your own code to make the proper sections, keys, and optionally validate the values, but it can absolutely be done.