By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
464,667 Members | 1,304 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 464,667 IT Pros & Developers. It's quick & easy.

question relateding to parsing dbf files.

P: n/a
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.
Jun 27 '08 #1
Share this Question
Share on Google+
2 Replies

P: n/a
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
http://aspn.activestate.com/ASPN/Coo.../Recipe/362715

Jun 27 '08 #2

P: n/a
At 2008-06-18T12:50:20Z, "Krishnakant Mane" <ha*******@gmail.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
Jun 27 '08 #3

This discussion thread is closed

Replies have been disabled for this discussion.