Package dbf :: Module tables
[hide private]
[frames] | no frames]

Module tables

source code

table definitions

Classes [hide private]
  _MetaData
  _TableHeader
  _DbfRecord
Provides routines to extract and save data within the fields of a dbf record.
  _DbfMemo
Provides access to memo fields as dictionaries must override _init, _get_memo, and _put_memo to store memo contents to disk
  _Db3Memo
Provides access to memo fields as dictionaries must override _init, _get_memo, and _put_memo to store memo contents to disk
  _VfpMemo
Provides access to memo fields as dictionaries must override _init, _get_memo, and _put_memo to store memo contents to disk
  DbfTable
Provides a framework for dbf style tables.
  Db3Table
Provides an interface for working with dBase III tables.
  VfpTable
  DbfList
list of Dbf records
  DbfCsv
csv format for exporting tables
  _Db4Table
Functions [hide private]
 
_nop(value)
returns parameter unchanged
source code
 
_normalize_tuples(tuples, length, filler)
ensures each tuple is the same length, using filler[-missing] for the gaps
source code
Variables [hide private]
  version_map = {'\x02': 'FoxBASE', '\x03': 'dBase III Plus', '\...
  code_pages = {'\x01': ('cp437', 'U.S. MS-DOS'), '\x02': ('cp85...
Variables Details [hide private]

version_map

Value:
{'\x02': 'FoxBASE',
 '\x03': 'dBase III Plus',
 '\x04': 'dBase IV',
 '\x05': 'dBase V',
 '0': 'Visual FoxPro',
 '1': 'Visual FoxPro (auto increment field)',
 'C': 'dBase IV SQL',
 '{': 'dBase IV w/memos',
...

code_pages

Value:
{'\x01': ('cp437', 'U.S. MS-DOS'),
 '\x02': ('cp850', 'International MS-DOS'),
 '\x03': ('cp1252', 'Windows ANSI'),
 '\x04': ('mac_roman', 'Standard Macintosh'),
 'd': ('cp852', 'Eastern European MS-DOS'),
 'e': ('cp866', 'Russian MS-DOS'),
 'f': ('cp865', 'Nordic MS-DOS'),
 'g': ('cp861', 'Icelandic MS-DOS'),
...