Registry / database / simpledbf

simpledbf

JSON →
library0.2.6pypypi✓ verified 83d ago

Convert DBF files to CSV, Pandas DataFrames, HDF5 tables, and SQL tables. Latest version 0.2.6, compatible with Python 3. Low-activity project, final release in 2019 with no breaking changes reported.

pip install simpledbf
INSTALL
IMPORT
SIG · SIMPLEDBF
S
simpledbf
databasepythonv0.2.6
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

Dbf5
from simpledbf import Dbf5
Correct import for DBF files (dBase III and above).

Load a DBF file into a Pandas DataFrame.

import pandas as pd from simpledbf import Dbf5 # Assume 'example.dbf' exists in current directory dbf = Dbf5('example.dbf') df = dbf.to_dataframe() print(df.head())
Debug
Known issues
gotchaASCII mode means columns are lowercased and spaces replaced with underscores. DBF field names are truncated to 10 characters, so column names may be shortened.
fix
Use `Dbf5('file.dbf', codec='utf-8')` to preserve original names.
affects: <=0.2.6
deprecatedProject is in maintenance mode; no updates since 2019. Consider using `dbfread` or `dbf` for ongoing support.
fix
Switch to `dbfread` or `dbf` library.
affects: 0.2.6
Errors
Common errors & fixes
UnicodeDecodeError: 'ascii' codec can't decode byte ...
Default ASCII encoding fails on non-ASCII characters in DBF file.
fix
Specify encoding: `Dbf5('file.dbf', codec='utf-8')`.
ModuleNotFoundError: No module named 'pandas'
Pandas is a dependency but not automatically installed.
fix
Install pandas: `pip install pandas`.
Upgrade
Version history
0.2.6latest on PyPI · released May 13, 2015
Audit
Dependencies

No dependency data recorded yet.

Agent activity
18 hits · last 30 days
node
14
Meta
2
Resources
simpledbf — pip install simpledbf · libregistry