dbfread - Read DBF Files with Python¶
DBF is a file format used by databases such dBase, Visual FoxPro, and FoxBase+. This library reads DBF files and returns the data as native Python data types for further processing. It is primarily intended for batch jobs and one-off scripts.
>>> from dbfread import DBF >>> for record in DBF('people.dbf'): ... print(record) OrderedDict([('NAME', 'Alice'), ('BIRTHDATE', datetime.date(1987, 3, 1))]) OrderedDict([('NAME', 'Bob'), ('BIRTHDATE', datetime.date(1980, 11, 12))])
Latest stable release: https://github.com/olemb/dbfread/
Latest development version: https://github.com/olemb/dbfread/tree/develop/
About This Document¶
This document is available at https://dbfread.readthedocs.io/
To build documentation locally:
python setup.py docs
This requires Sphinx. The resulting files can be found in
- Installing dbfread
- Moving data to SQL, CSV, Pandas etc.
- DBF Objects
- Field Types
- API Changes