What's the standard config file name and extension in Python? -


I am creating a config file to keep the configuration / property settings for my project that changes frequently, Like file path is the standard name / extension for such a file? (For example, in Java, I used config.xml, I used App.config in VB.NET ...)

First, consider using ConfigParser (configparser 3.0, so the documentation is called). This does not solve the problem of naming, but it is a readable alternative to XML for most configuration needs.

Whatever name you use, make all parts meaningful. I will probably use something like AppName.cfg, where AppName identifies your application, or part of the application is for configuration.


Comments