Registry / data / pyreaddbc

pyreaddbc

JSON →
library1.2.0pypypi✓ verified 86d ago

Pyreaddbc is a Python library for reading DBC files (compressed DBF files used by Brazilian healthcare systems) and converting them to DBF format. Current version 1.2.0, released on 2025-04-11, with monthly releases. Requires Python >=3.9.

pip install pyreaddbc
INSTALL
IMPORT
SIG · PYREADDBC
P
pyreaddbc
datapythonv1.2.0
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.

readdbc
from pyreaddbc import readdbc
import readdbc
readdbc is a module inside pyreaddbc package, not a top-level package.
read_dbc_to_dbf
from pyreaddbc.readdbc import read_dbc_to_dbf
from pyreaddbc import read_dbc_to_dbf
Function is inside the readdbc module, not directly under pyreaddbc package.

Convert a DBC file to DBF format. Input and output are file paths.

from pyreaddbc.readdbc import read_dbc_to_dbf read_dbc_to_dbf('input.dbc', 'output.dbf') print('Conversion complete')
Debug
Known issues
breakingIn version 1.2.0, the function 'read_dbc' was removed. Use 'read_dbc_to_dbf' instead.
fix
Replace 'read_dbc' with 'read_dbc_to_dbf'.
affects: >=1.2.0
gotchaThe returned object from 'read_dbc_to_dbf' is not a pandas DataFrame; it's a file path string (the output DBF file path).
fix
Use the returned path to read the DBF file with another library (e.g., dbfread or pandas).
affects: all
deprecatedPython 3.8 is no longer supported; Python >=3.9 required.
fix
Upgrade Python to 3.9 or higher.
affects: >=1.0.0
Errors
Common errors & fixes
ModuleNotFoundError: No module named 'readdbc'
Importing 'readdbc' directly instead of 'from pyreaddbc import readdbc'.
fix
Use 'from pyreaddbc import readdbc'.
AttributeError: module 'pyreaddbc' has no attribute 'read_dbc_to_dbf'
Trying to import function from top-level package instead of submodule.
fix
Use 'from pyreaddbc.readdbc import read_dbc_to_dbf'.
FileNotFoundError: [Errno 2] No such file or directory: 'input.dbc'
Invalid file path or file does not exist.
fix
Provide the full absolute path or ensure the file exists in the current working directory.
Upgrade
Version history
1.2.0latest on PyPI · released Sep 15, 2023
Audit
Dependencies

No dependency data recorded yet.

Agent activity
7 hits · last 30 days
node
6
Resources
pyreaddbc — pip install pyreaddbc · libregistry