Light and easy DBF reader
Project description
https://github.com/idlesign/dbf_light
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
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 details)
Built Distribution
File details
Details for the file dbf_light-1.0.0.tar.gz
.
File metadata
- Download URL: dbf_light-1.0.0.tar.gz
- Upload date:
- Size: 108.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: Python-urllib/2.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1e06ff6d7627c2ccce3a1c1761576a732dd607edd2c5f5eb1e564a8ed1489698 |
|
MD5 | 16d7abdd11edc10956573c2680a43a28 |
|
BLAKE2b-256 | 7382fc5026b5fd77c799aa9843c0eae54a99d94fcca7efd69266863fc3936db6 |
File details
Details for the file dbf_light-1.0.0-py2.py3-none-any.whl
.
File metadata
- Download URL: dbf_light-1.0.0-py2.py3-none-any.whl
- Upload date:
- Size: 10.5 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: Python-urllib/2.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | b4ec7552c6738d10102e9c8ecc180e7a5d4c8a02e85673194f49503298d130b5 |
|
MD5 | a41538dda8260b57705e5a4f1a028c5e |
|
BLAKE2b-256 | faf49c367f283adcb57378cc394c5990c812734e84215d9dc5deb4cdc8492022 |