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


Groups > comp.lang.python > #25719

Re: ANN: dbf.py 0.94

Date 2012-07-20 20:26 -0700
From Ethan Furman <ethan@stoneleaf.us>
Subject Re: ANN: dbf.py 0.94
References <mailman.2355.1342828267.4697.python-list@python.org> <5009fcc5$0$29978$c3e8da3$5496439d@news.astraweb.com>
Newsgroups comp.lang.python
Message-ID <mailman.2360.1342841775.4697.python-list@python.org> (permalink)

Show all headers | View raw


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!

Back to comp.lang.python | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

ANN: dbf.py 0.94 Ethan Furman <ethan@stoneleaf.us> - 2012-07-20 16:59 -0700
  Re: ANN: dbf.py 0.94 Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2012-07-21 00:50 +0000
    Re: ANN: dbf.py 0.94 Temia Eszteri <lamialily@cleverpun.com> - 2012-07-20 19:56 -0700
      Re: ANN: dbf.py 0.94 Chris Angelico <rosuav@gmail.com> - 2012-07-21 13:02 +1000
        Re: ANN: dbf.py 0.94 Temia Eszteri <lamialily@cleverpun.com> - 2012-07-20 20:33 -0700
      Re: ANN: dbf.py 0.94 Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2012-07-21 03:34 +0000
        Re: ANN: dbf.py 0.94 Temia Eszteri <lamialily@cleverpun.com> - 2012-07-20 20:38 -0700
        Re: ANN: dbf.py 0.94 Chris Angelico <rosuav@gmail.com> - 2012-07-21 13:43 +1000
        Re: ANN: dbf.py 0.94 Ethan Furman <ethan@stoneleaf.us> - 2012-07-21 00:58 -0700
    Re: ANN: dbf.py 0.94 Ethan Furman <ethan@stoneleaf.us> - 2012-07-20 20:26 -0700
      Re: ANN: dbf.py 0.94 Matej Cepl <mcepl@redhat.com> - 2012-07-21 20:33 +0200

csiph-web