On Wed, Oct 19, 2016 at 4:19 AM, Saša Janiška <[email protected]> wrote:
> Hello, > > afaik, (h)ledger have some general CSV importer where one can define > some mapping rules for the desired CSV format and then import? > > CSV is also the only format I can use since the bank just provides Excel > file which can be converted to CSV. > Beancount offers a framework to define your own custom importers, documented here: http://furius.ca/beancount/doc/ingest Unfortunately, you have to write some code to set that up. On the other hand, it also comes with a good example CSV importer which is functional: https://bitbucket.org/blais/beancount/src/b73da2b4f8e3182b1fb537a75385406c6d4fee90/src/python/beancount/ingest/importers/csv.py?at=booking&fileviewer=file-view-default You just need to instantiate it and provide it with a dict that tells it how to interpret each column of your CSV file. (I should provide some example on how to do that, in the meantime you'd have to read the source code.) HTH, Sincerely, > Gour > > -- > While contemplating the objects of the senses, a person > develops attachment for them, and from such attachment lust > develops, and from lust anger arises. > > -- > 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 post to this group, send email to [email protected]. > To view this discussion on the web visit https://groups.google.com/d/ > msgid/beancount/874m48rbsv.fsf%40atmarama.com. > For more options, visit https://groups.google.com/d/optout. > -- 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 post to this group, send email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/beancount/CAK21%2BhMg35MzWOcFNWNTvXqQioeG77K5oeqw9jJ_%2BSS8xZ3ZyA%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
