Welcome | Get started | Dive | Contribute | Topics | Reference | Changes | More

lino.utils.dbfreader

Defines the DBFFile class, used by lino_xl.lib.tim2lino to read DBF and DBT files when both settings use_dbfread and use_dbf_py are False (which is default).

Based on original work by Lars Garshol http://www.garshol.priv.no/download/software/python/dbfreader.py

Modified by Luc Saffre to add support for Clipper dialect.

Sources of information:

Xbase & dBASE File Format Description by Erik Bachmann

Functions

display_info(f)

hex_analyze(number)

make_html(f[, out, skiptypes])

unpack_int(number)

unpack_int_rev(number)

unpack_long(number)

unpack_long_rev(number)

Classes

DBFField(buf, dbf)

Represents a field in a DBF file.

DBFFile(filename[, codepage])

Represents a single DBF file.

DBFHash(file, key)

DBFRecord(dbf, values, deleted)

DBTFile(dbf)

Represents a DBT block file

FPTFile(dbf)

Represents an FPT block file

NOTGIVEN()

class lino.utils.dbfreader.DBFFile(filename, codepage=None)

Bases: object

Represents a single DBF file.

class lino.utils.dbfreader.DBFField(buf, dbf)

Bases: object

Represents a field in a DBF file.

class lino.utils.dbfreader.FPTFile(dbf)

Bases: object

Represents an FPT block file

class lino.utils.dbfreader.DBTFile(dbf)

Bases: object

Represents a DBT block file