EcohydroLib  1.29
Namespaces | Functions | Variables
dbf.py File Reference

Namespaces

 ecohydrolib.dbf
 Methods for reading and write DBF data files.
 

Functions

def ecohydrolib.dbf.dbfreader (f)
 Returns an iterator over records in a Xbase DBF file. More...
 
def ecohydrolib.dbf.dbfwriter (f, fieldnames, fieldspecs, records)
 Return a string suitable for writing directly to a binary dbf file. More...
 

Variables

string ecohydrolib.dbf.filename = '/pydev/databases/orders.dbf'
 
tuple ecohydrolib.dbf.f = open(filename, 'rb')
 
tuple ecohydrolib.dbf.db = list(dbfreader(f))
 
list ecohydrolib.dbf.records = [rec[1:] for rec in records]