skillfed

dbf

Pure python package for reading/writing dBase, FoxPro, and Visual FoxPro .dbf files (including memos)

dbf v0.99.11 84.8K downloads/30d#13,970 on PyPI101
Permissive license BSD License AGING released

What it is and what it does

dbf is a pure-Python library for reading and writing dBase, FoxPro, Visual FoxPro, and Clipper .dbf files. It maps legacy DBF field types (Character, Date, Logical, Memo, Numeric, Currency, DateTime, etc.) to native Python types like str, datetime.date, bool, and decimal.Decimal. The package represents tables as Table objects and individual rows as Record objects, supporting sequence, mapping, and attribute access protocols, plus context managers for automatic file handling.

The library is primarily used for retrieving and migrating legacy data from old database systems into modern storage, and for working with specialized applications like GIS software and personal finance tools that still use DBF format. It supports both on-disk and in-memory tables, custom data types with special semantics (like tri-state Logical values), and nonpersistent indexing.

Use it for:

  • Migrate legacy dBase or FoxPro data into a modern relational database or data warehouse
  • Read DBF files exported from GIS software or genealogy applications for data analysis
  • Parse and transform historical business records stored in Clipper or Visual FoxPro format
  • Create or modify DBF files programmatically for integration with legacy systems
  • Build data pipelines that consume DBF exports from stand-alone applications

Worth the install?

AI-flagged interpretation of the facts on this page — verify before relying

Reads and writes dBase III, FoxPro, Visual FoxPro, and Clipper .dbf database files, converting between legacy DBF formats and Python data types.

Yes, if you need to work with legacy DBF files. The package has low install friction, no known vulnerabilities, and a permissive license. However, maintenance is aging (last release 346 days ago), so verify compatibility with your specific Python version and DBF variant before committing to production use. It is well-suited for one-off migrations and data retrieval tasks.

Install

dbf on PyPI

pip

pip install dbf

uv

uv add dbf

poetry

poetry add dbf

Installing dbf

Before you install

Low friction install with a single lightweight dependency (aenum). Last release was 346 days ago; the repository is active and not archived, though the project shows aging maintenance patterns.

License in practice

BSD License (permissive) places no restrictions on use, modification, or distribution in commercial or private projects.

Quickstart

import dbf

table = dbf.Table('myfile.dbf', codepage='utf8', on_disk=True)
table.open()
for record in table:
    print(record.field_name)

Verify before relying

  • Whether the package works reliably with modern Python versions (3.10+) despite aging maintenance status
  • Performance characteristics when handling large DBF files or many concurrent operations
  • Compatibility with all Visual FoxPro and Clipper field types in real-world legacy databases

Package facts

License BSD License (permissive)
Python support not specified
Install friction low — pure-Python wheel
Runtime dependencies 1 — aenum
Maintenance aging — 346 days since the last release
Last repo commit
First released
Downloads 84,808/month — #13,970 on PyPI (30-day window, as of 2026-08-14)
Known vulnerabilities none known (OSV.dev, checked 2026-08-14)

Evidence: dbf-0.99.11-py2-none-any.whl; dbf-0.99.11-py3-none-any.whl

Development Status :: 4 - BetaIntended Audience :: DevelopersLicense :: OSI Approved :: BSD LicenseProgramming Language :: PythonProgramming Language :: Python :: 2.7Programming Language :: Python :: 3.10Programming Language :: Python :: 3.11Programming Language :: Python :: 3.12Programming Language :: Python :: 3.13Programming Language :: Python :: 3.3Programming Language :: Python :: 3.4Programming Language :: Python :: 3.5Programming Language :: Python :: 3.6Programming Language :: Python :: 3.7Programming Language :: Python :: 3.8Programming Language :: Python :: 3.9Topic :: Database

Tags

dbf file reader writerdbase database pythonfoxpro dbf parserlegacy database formatdbf to python conversiondbase III clipper supportread write dbf files
legacy-datafile-formatdata-migration

More Database packages