Skip to main content

Light and easy DBF reader

Project description

https://github.com/idlesign/dbf_light

release lic ci coverage health

Description

Light and easy DBF reader

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

  • Python 2.7, 3.4+;

  • Uses namedtuple for row representation and iterative row reading to minimize memory usage;

  • Works fine with cyrillic (supports KLADR and CBRF databases).

API

from dbf_light import Dbf


with Dbf.open('some.dbf') as dbf:

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

    print('Rows:')

    for row in dbf:
        print(row)

CLI

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-0.1.0.tar.gz (66.5 kB view hashes)

Uploaded Source

Built Distribution

dbf_light-0.1.0-py2.py3-none-any.whl (70.7 kB view hashes)

Uploaded Python 2 Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page