Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!news.mixmin.net!news.albasani.net!newsfeed.freenet.ag!news2.euro.net!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.001 X-Spam-Evidence: '*H*': 1.00; '*S*': 0.00; 'attribute': 0.05; 'subject:ANN': 0.07; 'python': 0.09; 'from:addr:ethan': 0.09; 'from:addr:stoneleaf.us': 0.09; 'from:name:ethan furman': 0.09; 'message-id:@stoneleaf.us': 0.09; 'received:184.172': 0.09; 'received:gator410.hostgator.com': 0.09; 'release.': 0.09; 'types:': 0.09; 'unicode,': 0.09; 'files.': 0.13; 'value.': 0.15; '(also': 0.16; 'excellent!': 0.16; 'logical,': 0.16; 'memo': 0.16; 'wrote:': 0.17; 'unicode': 0.17; 'module': 0.19; 'question.': 0.20; 'logical': 0.22; 'tables': 0.23; "i've": 0.23; 'header:In- Reply-To:1': 0.25; 'header:User-Agent:1': 0.26; '(which': 0.26; 'wrote': 0.26; '-0700,': 0.29; 'closer': 0.29; "d'aprano": 0.29; 'finds': 0.29; 'steven': 0.29; 'character': 0.29; 'definition': 0.29; 'objects': 0.29; 'fri,': 0.30; 'returned': 0.30; 'writes': 0.30; 'getting': 0.33; 'accessible': 0.33; 'that!': 0.33; 'to:addr :python-list': 0.33; 'needed': 0.35; 'stable': 0.35; 'something': 0.35; 'modules': 0.36; 'why': 0.37; 'subject:: ': 0.38; 'supports': 0.38; 'to:addr:python.org': 0.39; 'release': 0.39; 'header:Received:5': 0.40; 'your': 0.60; 'skip:u 10': 0.60; 'fantastic': 0.65; 'jul': 0.65; 'received:69.56': 0.65; 'enjoy': 0.67; 'records': 0.68; 'soon': 0.70; 'furman': 0.84; 'ethan': 0.91 Date: Fri, 20 Jul 2012 20:26:25 -0700 From: Ethan Furman User-Agent: Thunderbird 2.0.0.24 (Windows/20100228) MIME-Version: 1.0 To: python-list@python.org Subject: Re: ANN: dbf.py 0.94 References: <5009fcc5$0$29978$c3e8da3$5496439d@news.astraweb.com> In-Reply-To: <5009fcc5$0$29978$c3e8da3$5496439d@news.astraweb.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - gator410.hostgator.com X-AntiAbuse: Original Domain - python.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - stoneleaf.us X-BWhitelist: no X-Source: X-Source-Args: X-Source-Dir: X-Source-Sender: ([192.168.74.2]) [50.137.155.36]:4742 X-Source-Auth: ethan+stoneleaf.us X-Email-Count: 1 X-Source-Cap: dG9idWs7dG9idWs7Z2F0b3I0MTAuaG9zdGdhdG9yLmNvbQ== X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.12 Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Newsgroups: comp.lang.python Message-ID: Lines: 34 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1342841775 news.xs4all.nl 6877 [2001:888:2000:d::a6]:35486 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:25719 Steven D'Aprano wrote: > On Fri, 20 Jul 2012 16:59:21 -0700, Ethan Furman wrote: > >> Getting closer to a stable release. > > Excellent! That's fantastic news! I've been waiting for a stable release > of dbf for months! I just have one question. > > What is dbf? :) dbf (also known as python dbase) is a module for reading/writing dBase III, FP, VFP, and soon Clipper, .dbf database files. It's an ancient format that still finds lots of use. It even reads and writes memo fields -- something which none of the other modules do (which is why I wrote this one -- I needed that! ;). It supports unicode, and returns all fields as native Python types: Character --> unicode Date --> datetime.date Logical --> bool/None Memo --> unicode Numeric --> int/float depending on field definition If a field is uninitialized (Date, Logical, Numeric) then None is returned for the value. Tables are accessible as lists; Records are accessible as lists, dicts, and objects ( attribute access ). Enjoy your weekend!