Skip to main content

Light and easy DBF reader

Project description

LBC Python 2

release lic ci coverage


Light and easy DBF reader

No fancy stuff, just DBF reading for most common format versions.

  • Python 2.7, 3.5+;
  • Uses namedtuple for row representation and iterative row reading to minimize memory usage;
  • Works fine with cyrillic (supports KLADR and CBRF databases);
  • Reads .dbf from zip files.


from dbf_light import Dbf

with'some.dbf') as dbf:

    for field in dbf.fields:
        print('Field: %s' % field)

    print('Rows (%s):' % dbf.prolog.records_count)

    for row in dbf:

# Read `some.dbf` from zip (ignoring filename case):
with Dbf.open_zip('some.dbf', 'here/', case_sensitive=False) as dbf:


Requires click package (can be installed with: pip install dbf_light[cli]).

$ dbf_light describe myfile.dbf
$ dbf_light show myfile.dbf

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

dbf_light-1.0.0.tar.gz (108.5 kB view hashes)

Uploaded source

Built Distribution

dbf_light-1.0.0-py2.py3-none-any.whl (10.5 kB view hashes)

Uploaded 2 7

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Huawei Huawei PSF Sponsor Microsoft Microsoft PSF Sponsor NVIDIA NVIDIA PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page