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


Groups > comp.lang.python > #2683

Re: Standard config file format

Path csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!news.albasani.net!feeder.news-service.com!newsfeed.xs4all.nl!newsfeed6.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail
Return-Path <chris@rebertia.com>
X-Original-To python-list@python.org
Delivered-To python-list@mail.python.org
X-Spam-Status OK 0.004
X-Spam-Evidence '*H*': 0.99; '*S*': 0.00; 'json': 0.07; 'python?': 0.07; 'received:209.85.213.46': 0.07; 'received:mail- yw0-f46.google.com': 0.07; 'davis': 0.09; 'pm,': 0.11; 'monitor': 0.12; 'wrote:': 0.14; 'subject:file': 0.16; 'tue,': 0.20; 'cc:no real name:2**0': 0.20; 'cc:2**0': 0.20; 'cheers,': 0.20; 'header :In-Reply-To:1': 0.22; 'cc:addr:python-list': 0.22; 'received:209.85.213': 0.23; 'specify': 0.25; 'preferred': 0.26; 'chris': 0.27; 'message-id:@mail.gmail.com': 0.28; 'supports': 0.29; 'changes': 0.29; 'cc:addr:python.org': 0.31; 'format:': 0.31; 'option:': 0.31; 'subject:format': 0.31; 'url:library': 0.31; 'url:docs': 0.33; 'file.': 0.34; 'there': 0.35; 'file': 0.35; 'received:209.85': 0.37; 'url:python': 0.37; 'apr': 0.38; 'received:google.com': 0.38; 'url:org': 0.38; 'received:209': 0.39; 'would': 0.40; 'header:Received:5': 0.40; 'addresses,': 0.60; '2011': 0.62; 'subject:Standard': 0.84
DKIM-Signature v=1; a=rsa-sha256; c=relaxed/relaxed; d=rebertia.com; s=google; h=domainkey-signature:mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type; bh=ZsBvZ1RAHRbJnjQ9TFdeuc7npLw/8dhhxpybC2/jIgc=; b=G2MEq+TJyFywG5g/dV2wHRv45DOGm9b5lpYy34K/CO49WCuWNvtxooA1u3ZcbWhQQD 2ts2BzcrubrhTrDkh14FVMJIUWQuTl+xDld6lh8Bv6T6yixOjs3WWl5kxl3NqrU7iemv y5hBU6twsOz+WN127RZzkMQyL0VIHLUl7YmmI=
DomainKey-Signature a=rsa-sha1; c=nofws; d=rebertia.com; s=google; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type; b=EoE7ofIWhv5yFscneB4qoJEmSmj6qKUjnTyhi376+LmfjvLNBFXTtWW9A6zhWZtN38 RC8tARUmwgrDaA8zi4DfXM3mdn79yi8Mi+OSU8zZGOWpsNRg6d2CTkACv2vT1s+57iKb Ml5sbY1aU/p5BGMxrtt2SJh7jAF9gHDzk2ZcM=
MIME-Version 1.0
Sender chris@rebertia.com
In-Reply-To <BANLkTikxXC_xoQ5QxAD+e2LhRhvscWnLfw@mail.gmail.com>
References <BANLkTikxXC_xoQ5QxAD+e2LhRhvscWnLfw@mail.gmail.com>
Date Tue, 5 Apr 2011 20:03:58 -0700
X-Google-Sender-Auth by_nzUU3v433ci45iVJdiLTK8bk
Subject Re: Standard config file format
From Chris Rebert <clp2@rebertia.com>
To Vincent Davis <vincent@vincentdavis.net>
Content-Type text/plain; charset=UTF-8
Cc python-list@python.org
X-BeenThere python-list@python.org
X-Mailman-Version 2.1.12
Precedence list
List-Id General discussion list for the Python programming language <python-list.python.org>
List-Unsubscribe <http://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe>
List-Archive <http://mail.python.org/pipermail/python-list>
List-Post <mailto:python-list@python.org>
List-Help <mailto:python-list-request@python.org?subject=help>
List-Subscribe <http://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe>
Newsgroups comp.lang.python
Message-ID <mailman.64.1302059041.9059.python-list@python.org> (permalink)
Lines 13
NNTP-Posting-Host 82.94.164.166
X-Trace 1302059041 news.xs4all.nl 81474 [::ffff:82.94.164.166]:36218
X-Complaints-To abuse@xs4all.nl
Xref x330-a1.tempe.blueboxinc.net comp.lang.python:2683

Show key headers only | 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