rattail.sw.locsms.fields – Fields.csv Interface
Parses a Fields.csv file (whose path may be overridden by specifying csv_path) and returns a dictionary object keyed by the underlying field name (e.g. "F01"), the elements of which are in turn keyed by the field name contained in the CSV file itself. It will look something like this:
{
'F01' : {
'HOT' : '1',
'FIELD' : 'F01',
'TYPE' : 'C',
'SIZE' : '13',
'DEC' : '',
'DESCRIPTOR' : 'UPC code',
# etc...
},
# etc...
}