question relateding to parsing dbf files.

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Krishnakant Mane

    question relateding to parsing dbf files.

    hello all.
    I need to parse some dbf files through python.
    the reason being that I have to migrate some old data from dbf files
    to postgresql.
    all that I need to know is if some one has got a working code sample
    using dbfpy.
    I found this module suitable for my work but can't figure out how to use it.
    else, if there is any other module, please recommend so.
    happy hacking.
    Krishnakant.
  • Daniel Mahoney

    #2
    Re: question relateding to parsing dbf files.

    On Wed, 18 Jun 2008 18:20:20 +0530, Krishnakant Mane wrote:
    hello all.
    I need to parse some dbf files through python.
    the reason being that I have to migrate some old data from dbf files
    to postgresql.
    all that I need to know is if some one has got a working code sample
    using dbfpy.
    I found this module suitable for my work but can't figure out how to use it.
    else, if there is any other module, please recommend so.
    happy hacking.
    Krishnakant.
    It's pretty simple, but there is a small example on dbfpy's Sourceforge
    page (http://dbfpy.sourceforge.net/).

    Also, it's really the long way around, but ActiveState's cookbook section
    has a recipe for reading and writing DBF files in Python without using
    dbfpy. It's at


    Comment

    • Kirk Strauser

      #3
      Re: question relateding to parsing dbf files.

      At 2008-06-18T12:50:20Z, "Krishnakan t Mane" <hackingkk@gmai l.comwrites:
      hello all.
      I need to parse some dbf files through python.
      the reason being that I have to migrate some old data from dbf files
      to postgresql.
      all that I need to know is if some one has got a working code sample
      using dbfpy.
      I found this module suitable for my work but can't figure out how to use it.
      else, if there is any other module, please recommend so.
      happy hacking.
      Krishnakant.
      Does it have to by in Python? I host this project, written in C++:
      http://honeypot.net/project/xbasetopg . If that's too complicated, I've
      written a replacement in straight C but I haven't published it yet.

      I use these programs to sync our legacy FoxPro database to our new
      PostgreSQL servers on an hourly basis. Syncing 4GB of data tables about 10
      minutes.
      --
      Kirk Strauser
      The Day Companies

      Comment

      Working...