Paul Marriott wrote: ... > I am adding more to the config file to enable direct import of csv files, > but there are so may different csv download formats; every financial > institution seems to have their own version! I'll deal with the most > common options first such as lack of a header file (eg WellsFargo bank > downloads) and differing column header names. The Python importers I have > seen all work along these lines, but I am just no where near as proficient > in Python programming as I am with cpp and go.
it should have nothing to do with python. a default for no fields specified could be to make all strings text fields and if any are null you could make them the empty string. if you do have a header line then for a text field that and has no value you can default it to an empty string and if the field is a numerical value you can default it to zero. nothing else should be required for the simple version you stated before. that all said... in many fields of csv files i see there are no values supplied and which fields are empty varies based upon transaction type. it might actually be better overall to only import the fields needed for a specific transaction type (which would avoid a lot of what i've said above but add more logic to the importer transaction builders themselves). fin -- You received this message because you are subscribed to the Google Groups "Beancount" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/beancount/olb0aj-tkd.ln1%40anthive.com.
