
Security News
ESLint Adds Official Support for Linting HTML
ESLint now supports HTML linting with 48 new rules, expanding its language plugin system to cover more of the modern web development stack.
π A modern Python library for reading DBF files with elegance and type safety
dbfread2
is a modern, type-safe Python library for reading DBF files (dBase, Visual FoxPro, FoxBase+) with zero external dependencies.
pathlib.Path
supportFieldParser
FPT
and DBT
memo filesfrom dbfread2 import DBF
# Stream records (memory-efficient)
for record in DBF('people.dbf'):
print(record)
# {'NAME': 'Alice', 'BIRTHDATE': datetime.date(1987, 3, 1)}
# {'NAME': 'Bob', 'BIRTHDATE': datetime.date(1980, 11, 12)}
# Load all records into memory
table = DBF('people.dbf', load=True)
print(table.records[0]['NAME']) # Returns: 'Alice'
pip install dbfread2
Python Version
Import Updates
# Before β
from dbfread import DBF
# After β
from dbfread2 import DBF
Modern Parameter Names
# Before β
DBF('file.dbf', recfactory=dict, lowernames=True)
# After β
DBF('file.dbf', record_factory=dict, lowercase_names=True)
Path Support
# β¨ New Feature
from pathlib import Path
DBF(Path('data/file.dbf'))
Install Tools
Clone & Setup
git clone https://github.com/wasdee/dbfread2.git
cd dbfread2
mise install
uv pip install -e ".[docs]"
mise run docs:build # Build docs
mise run docs:serve # Serve locally
mise run docs:watch # Watch mode
mise run docs:check # Check for issues
MIT License
Fork of dbfread by Ole Martin BjΓΈrndalen
Nutchanon Ninyawee - me@nutchanon.org
βοΈ If this project helps you, consider giving it a star!
FAQs
Read DBF Files with Python
We found that dbfread2 demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago.Β It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
ESLint now supports HTML linting with 48 new rules, expanding its language plugin system to cover more of the modern web development stack.
Security News
CISA is discontinuing official RSS support for KEV and cybersecurity alerts, shifting updates to email and social media, disrupting automation workflows.
Security News
The MCP community is launching an official registry to standardize AI tool discovery and let agents dynamically find and install MCP servers.