Skip to main content

https://github.com/idlesign/dbf_light

LBC Python 2

release lic ci coverage

Description

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.

API

from dbf_light import Dbf


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

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

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

    for row in dbf:
        print(row)

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

CLI

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

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

Release files for dbf_light 1.0.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for dbf_light 1.0.0
File Size Uploaded
dbf_light-1.0.0.tar.gz 108.5 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for dbf_light 1.0.0
File Interpreter ABI Platform
dbf_light-1.0.0-py2.py3-none-any.whl Python 3, Python 2 none any Details

Total release size: 119.0 kB

Release files / dbf_light-1.0.0.tar.gz

Download URL dbf_light-1.0.0.tar.gz
Size 108.5 kB
Tags Source
SHA-256 checksum
How to use checksums
1e06ff6d7627c2ccce3a1c1761576a732dd607edd2c5f5eb1e564a8ed1489698
BLAKE2b-256 checksum
How to use checksums
7382fc5026b5fd77c799aa9843c0eae54a99d94fcca7efd69266863fc3936db6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via Python-urllib/2.7

Release files / dbf_light-1.0.0-py2.py3-none-any.whl

Download URL dbf_light-1.0.0-py2.py3-none-any.whl
Size 10.5 kB
Tags Python 2 Python 3
SHA-256 checksum
How to use checksums
b4ec7552c6738d10102e9c8ecc180e7a5d4c8a02e85673194f49503298d130b5
BLAKE2b-256 checksum
How to use checksums
faf49c367f283adcb57378cc394c5990c812734e84215d9dc5deb4cdc8492022
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via Python-urllib/2.7

Release history Release notifications | RSS feed

This release

1.0.0 This release

2 release files

0.3.0

2 release files

0.2.0

1 release file

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page