Path: csiph.com!usenet.pasdenom.info!weretis.net!feeder4.news.weretis.net!eternal-september.org!feeder.eternal-september.org!mx02.eternal-september.org!.POSTED!not-for-mail From: Cecil Westerhof Newsgroups: comp.lang.python Subject: Most Pythonic way to store (small) configuration Date: Sun, 02 Aug 2015 12:11:28 +0200 Organization: Decebal Computing Lines: 26 Message-ID: <87k2teq9tb.fsf@Equus.decebal.nl> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: mx02.eternal-september.org; posting-host="528adfd6ad074c92fdc6a7f8fb9e23d8"; logging-data="17083"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+N3XqecUSSsWBqBy95wZfxGmUY+wQX7cY=" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3 (gnu/linux) X-Homepage: http://www.decebal.nl/ Cancel-Lock: sha1:0q8fywvPImbvw6JOVD5tARwvBac= sha1:BVMl7R4dXGR5xRr5U5t5nM5GGQs= Xref: csiph.com comp.lang.python:94894 There are a lot of ways to store configuration information: - conf file - xml file - database - json file - and possible a lot of other ways I want to write a Python program to display cleaned log files. I do not think I need a lot of configuration to be stored: - some things relating to the GUI - default behaviour - default directory - log files to display, including some info - At least until where it was displayed Because of this I think a human readable file would be best. Personally I do not find XML very readable. So a conf or json file looks the most promising to me. And I would have a slight preference for a json file. Any comments, thoughts or tips? -- Cecil Westerhof Senior Software Engineer LinkedIn: http://www.linkedin.com/in/cecilwesterhof