Re: general CSV importer

2016-10-29 Thread Martin Blais
;>> >>>> from beancount.ingest import regression >>>> from beancount.ingest.importers import csv >>>> >>>> class Importer(csv.Importer): >>>> >>>> config = {csv.Col.DATE: 'Posted Date', >>>>

Re: general CSV importer

2016-10-29 Thread jfsbac
CREDIT: 'Credit', >>> csv.Col.PAYEE: 'Description', >>> csv.Col.NARRATION: 'Category'} >>> >>> def __init__(self, account): >>> csv.Importer.__init__( >>> self, self.config, >>

Re: general CSV importer

2016-10-29 Thread Martin Blais
file and import that from your importer >> configuration source. >> >> I put the above code in a file called capitalone.import, and incurred the > following error: > > JFSMini1:Beancount$ bean-identify capitalone.import 20161018CapOne.csv > > Traceback (most rece

Re: general CSV importer

2016-10-28 Thread jfsbac
from beancount.ingest.identify import main; main() File "/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/site-packages/beancount/ingest/identify.py" , line 92, in main _, config, downloads_directories = scripts_utils.parse_arguments(parser) File &quo

Re: general CSV importer

2016-10-24 Thread Martin Blais
('Stage, Transaction Date, Posted Date, Card No., Description, Category, ' 'Debit, Credit'), 'capitalone') def get_description(self, row): payee, narration = super().get_description() narration = '

Re: general CSV importer

2016-10-23 Thread jfsbac
r each different type of csv? Thanks Jonathan On Friday, October 21, 2016 at 11:20:55 PM UTC-4, Martin Blais wrote: > > On Wed, Oct 19, 2016 at 4:19 AM, Saša Janiška > wrote: > >> Hello, >> >> afaik, (h)ledger have some general CSV importer where one can define &

Re: general CSV importer

2016-10-23 Thread Saša Janiška
Martin Blais writes: > Beancount offers a framework to define your own custom importers, > documented here: > http://furius.ca/beancount/doc/ingest Thank you. > On the other hand, it also comes with a good example CSV importer > which is functional: Good. > You just need to instantiate it an

Re: general CSV importer

2016-10-21 Thread Martin Blais
On Wed, Oct 19, 2016 at 4:19 AM, Saša Janiška 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 &

general CSV importer

2016-10-19 Thread Saša Janiška
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. Sincerely, Gour -- While contemplating the