On 12/02/2021 18:41, Martin Blais wrote:
> On Fri, Feb 12, 2021 at 12:00 PM kuba....@gmail.com
> <mailto:kuba....@gmail.com> <kuba....@gmail.com
> <mailto:kuba....@gmail.com>> wrote:
>
> Hi all,
>
> I'd like to unpack the comment from Dan regarding additions to the
> CSV importer
>
> /Also, if anything, I expect the CSV importer in beangulp to become
> simpler, and not to gain new features. It was intended as an example to
> demonstrate how to write an importer and grow into something with a know
> for every aspect, and it deviated from its original scope.
> /
> /https://groups.google.com/g/beancount/c/YhBQEh7xVdk
> <https://groups.google.com/g/beancount/c/YhBQEh7xVdk>/
>
> So is there a definite plan to remove functionality, or in fact the
> CSV importer from bean gulp moving forward?
>
> The feature I would like to add is the support for a currency column
> as I have some transactions from PayPal that are in multiple
> currencies which at the moment all come out as my default currency.
I think it is a worthy addition.
There are many other things I would like to work on before this, thus,
unless someone else does pick up the job, don't expect progress on this
any time soon.
Cheers,
Dan
--
You received this message because you are subscribed to a topic in the Google Groups "Beancount" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/beancount/O23OdsVUqUw/unsubscribe.
To unsubscribe from this group and all its topics, send an email to beancount+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/beancount/c38d1146-c9cd-09d9-c1b9-9463d5a85c0f%40grinta.net.
On 13/02/2021 20:12, kuba jamro wrote:
> From my perspective, it would be nice if there was at least one fully
> maintained importer to help people start and in my mind that's a coin
> toss between CSV and OFX.
I agree that it is nice to have an example importer, however, for this
to be effective in illustrating how to write an importer it should be as
simple as possible while being feature complete. The CVS importer has a
ton of code that has nothing to do with writing an importer but only
with jiggling CSV field values around.
> If it were not for the CSV importer in the source tree, I would not have
> discovered the Mixin's which now feature in most of my importers.
One thing Martin and I discussed briefly is to get rid of the mixins.
Mixins remember me of the old days in which I was hacking on the Zope2
codebase, but they can be replaced by easier paradigms (as testimonies
what happened to most of the Zope2 codebase...)
Which Mixins do you find useful, and why?
Currently, an importer is a class that implements 6 methods (one of
which is optional). The use of the mixins, in my opinion, makes the code
more complex without much benefits.
> As progress seems to be going in the direction of splitting out source
> into repos specific for their responsibility, I would be pretty happy if
> the importer(s) had its own and perhaps all the importer helpers were
> also in their own library repository.
New repository come with non zero overhead in maintenance and
coordination, especially in a phase where we are redesigning the
interfaces. I would wait to see i
> Martin suggested exactly that and that seems to be the most versatile as
> developers would only need to clone the repo if they actually needed it.
As you cannot run an importer withou beangulp, I don't think this would
save anyone anything, and the beangulp codebase is really tiny.
Cheers,
Dan
--
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 beancount+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/beancount/9aa781e7-229f-18f9-4a52-8c307e8b5240%40grinta.net.