;>>
>>>> from beancount.ingest import regression
>>>> from beancount.ingest.importers import csv
>>>>
>>>> class Importer(csv.Importer):
>>>>
>>>> config = {csv.Col.DATE: 'Posted Date',
>>>>
CREDIT: 'Credit',
>>> csv.Col.PAYEE: 'Description',
>>> csv.Col.NARRATION: 'Category'}
>>>
>>> def __init__(self, account):
>>> csv.Importer.__init__(
>>> self, self.config,
>>
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
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
('Stage, Transaction Date, Posted Date, Card No., Description,
Category, '
'Debit, Credit'),
'capitalone')
def get_description(self, row):
payee, narration = super().get_description()
narration = '
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
&
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
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
&
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