Python configuration file: Any file format recommendation? INI format still appropriate? Seems quite old school

前端 未结 8 1721
执念已碎
执念已碎 2020-12-04 10:43

I need to store configurations (key/value) for a Python application and I am searching for the best way to store these configurations in a file.

I run into Python\'s

8条回答
  •  粉色の甜心
    2020-12-04 11:11

    Check out ConfigObj, its the slickest method I've found so far, and definitely more flexible than ConfigParser. Personally I'm not a fan of YAML based because its 'flexibility' makes it difficult to use with tools like Augeas.

提交回复
热议问题