dbfpy Icon

dbfpy

5.0 Stars (8)
119 Downloads (This Week)
Last Update:
Download dbfpy-2.3.1.tar.gz
Browse All Files
Windows Mac Linux

Description

Python module for reading and writing DBF files. Originally it was created by Jeff Kunce and later maintained by Hans Fiby.

dbfpy Web Site

Categories

Database

License

Public Domain

KEEP ME UPDATED

Other Useful Business Software

WhatsUp® Gold - Start A Free 30-Day Trial Icon

All-in-one monitoring of your entire infrastructure with the industry's most user friendly pricing. Free trial of our award-winning software

WhatsUp® Gold - Start A Free 30-Day Trial Icon
If you are like the rest of our user community, your IT team is busy. With pressure to deliver on-time projects, you don’t have a lot of time to spend making your management tools work. You need network monitoring tools that work for you. You want tools that makes it easy to find performance issues before your users do and resolve them before they impact the business. That’s why tens of thousands of customers around the world love WhatsUp Gold.

User Ratings

★★★★★
★★★★
★★★
★★
5
0
0
0
0
ease 1 of 5 2 of 5 3 of 5 4 of 5 5 of 5 0 / 5
features 1 of 5 2 of 5 3 of 5 4 of 5 5 of 5 0 / 5
design 1 of 5 2 of 5 3 of 5 4 of 5 5 of 5 0 / 5
support 1 of 5 2 of 5 3 of 5 4 of 5 5 of 5 0 / 5
Write a Review

User Reviews

  • 1 of 5 2 of 5 3 of 5 4 of 5 5 of 5

    bug: if you can't write dbf file with IOError, use "rb+" : self.stream = file(f, ("r+b", "rb+")[bool(readOnly)]) enhance: you can save str to num(int or float) cells Fields.py------------------------- class DbfNumericFieldDef(DbfFieldDef): ..... def encodeValue(self, value): """Return string containing encoded ``value``.""" if isinstance(value, str): #print str(value)[:self.length].ljust(self.length) return str(value)[:self.length].rjust(self.length) else: _rv = ("%*.*f" % (self.length, self.decimalCount, value)) if len(_rv) > self.length: _ppos = _rv.find(".") if 0 <= _ppos <= self.length: _rv = _rv[:self.length] else: raise ValueError("[%s] Numeric overflow: %s (field width: %i)" % (self.name, _rv, self.length)) return _rv .....

    Posted 10/11/2012
  • 1 of 5 2 of 5 3 of 5 4 of 5 5 of 5

    good work

    Posted 09/21/2012
  • 1 of 5 2 of 5 3 of 5 4 of 5 5 of 5

    Just what we needed to parse the DBF part of some shapefiles.

    Posted 09/20/2012
  • 1 of 5 2 of 5 3 of 5 4 of 5 5 of 5

    I found a bug ni you code.Like the following codes: from dbfpy import dbf db = dbf.Dbf("test.dbf", new=True) db.addField( ("BIRTHDATE", "D"), ) rec = db.newRecord() #year=1000 is before 1900; the datetime strftime() methods require year >= 1900 rec["BIRTHDATE"] = "10001010" rec.store() db.close() thanks

    Posted 06/13/2012
  • 1 of 5 2 of 5 3 of 5 4 of 5 5 of 5

    python 2.6 ok. has minor problems with Y2K+ dates. fix proposed (and can be applied on per-user basis) -- see project's tracker.

    Posted 09/13/2010
Read more reviews

Additional Project Details

Intended Audience

Developers

Programming Language

Python

Registered

2005-06-03

Thanks for helping keep SourceForge clean.

Screenshot instructions:
Windows
Mac
Red Hat Linux   Ubuntu

Click URL instructions:
Right-click on ad, choose "Copy Link", then paste here →
(This may not be possible with some types of ads)

More information about our ad policies
X

Briefly describe the problem (required):

Upload screenshot of ad (required):
Select a file, or drag & drop file here.

Please provide the ad click URL, if possible:

Get latest updates about Open Source Projects, Conferences and News.

No, Thank you