Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #2683

Re: Standard config file format

References <BANLkTikxXC_xoQ5QxAD+e2LhRhvscWnLfw@mail.gmail.com>
Date 2011-04-05 20:03 -0700
Subject Re: Standard config file format
From Chris Rebert <clp2@rebertia.com>
Newsgroups comp.lang.python
Message-ID <mailman.64.1302059041.9059.python-list@python.org> (permalink)

Show all headers | View raw


On Tue, Apr 5, 2011 at 7:16 PM, Vincent Davis <vincent@vincentdavis.net> wrote:
> I am working on a program to monitor directory file changes and am would
> like a configuration file. This file would specify email addresses, file and
> directory locations...... Is there a preferred format to use with python?

ConfigParser supports an INI-like format:
http://docs.python.org/library/configparser.html

JSON is also a popular option:
http://docs.python.org/library/json.html

Cheers,
Chris

Back to comp.lang.python | Previous | NextNext in thread | Find similar


Thread

Re: Standard config file format Chris Rebert <clp2@rebertia.com> - 2011-04-05 20:03 -0700
  Re: Standard config file format Neil Cerutti <neilc@norwich.edu> - 2011-04-06 12:46 +0000

csiph-web