
Security News
Open Source Maintainers Feeling the Weight of the EU’s Cyber Resilience Act
The EU Cyber Resilience Act is prompting compliance requests that open source maintainers may not be obligated or equipped to handle.
🚀 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
The EU Cyber Resilience Act is prompting compliance requests that open source maintainers may not be obligated or equipped to handle.
Security News
Crates.io adds Trusted Publishing support, enabling secure GitHub Actions-based crate releases without long-lived API tokens.
Research
/Security News
Undocumented protestware found in 28 npm packages disrupts UI for Russian-language users visiting Russian and Belarusian domains.