{"id":28098,"library":"pyreaddbc","title":"pyreaddbc","description":"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.","status":"active","version":"1.2.0","language":"python","source_language":"en","source_url":"https://github.com/osl-incubator/pyreaddbc","tags":["dbc","dbf","health-data","brazil","conversion"],"install":[{"cmd":"pip install pyreaddbc","lang":"bash","label":"PyPI"}],"dependencies":[],"imports":[{"note":"readdbc is a module inside pyreaddbc package, not a top-level package.","wrong":"import readdbc","symbol":"readdbc","correct":"from pyreaddbc import readdbc"},{"note":"Function is inside the readdbc module, not directly under pyreaddbc package.","wrong":"from pyreaddbc import read_dbc_to_dbf","symbol":"read_dbc_to_dbf","correct":"from pyreaddbc.readdbc import read_dbc_to_dbf"}],"quickstart":{"code":"from pyreaddbc.readdbc import read_dbc_to_dbf\nread_dbc_to_dbf('input.dbc', 'output.dbf')\nprint('Conversion complete')","lang":"python","description":"Convert a DBC file to DBF format. Input and output are file paths."},"warnings":[{"fix":"Replace 'read_dbc' with 'read_dbc_to_dbf'.","message":"In version 1.2.0, the function 'read_dbc' was removed. Use 'read_dbc_to_dbf' instead.","severity":"breaking","affected_versions":">=1.2.0"},{"fix":"Use the returned path to read the DBF file with another library (e.g., dbfread or pandas).","message":"The returned object from 'read_dbc_to_dbf' is not a pandas DataFrame; it's a file path string (the output DBF file path).","severity":"gotcha","affected_versions":"all"},{"fix":"Upgrade Python to 3.9 or higher.","message":"Python 3.8 is no longer supported; Python >=3.9 required.","severity":"deprecated","affected_versions":">=1.0.0"}],"env_vars":null,"last_verified":"2026-05-09T00:00:00.000Z","next_check":"2026-08-07T00:00:00.000Z","problems":[{"fix":"Use 'from pyreaddbc import readdbc'.","cause":"Importing 'readdbc' directly instead of 'from pyreaddbc import readdbc'.","error":"ModuleNotFoundError: No module named 'readdbc'"},{"fix":"Use 'from pyreaddbc.readdbc import read_dbc_to_dbf'.","cause":"Trying to import function from top-level package instead of submodule.","error":"AttributeError: module 'pyreaddbc' has no attribute 'read_dbc_to_dbf'"},{"fix":"Provide the full absolute path or ensure the file exists in the current working directory.","cause":"Invalid file path or file does not exist.","error":"FileNotFoundError: [Errno 2] No such file or directory: 'input.dbc'"}],"ecosystem":"pypi","meta_description":null,"install_score":null,"install_tag":null,"quickstart_score":null,"quickstart_tag":null}