On Sun, Apr 21, 2019 at 2:55 PM Alen Šiljak <[email protected]> wrote:

> One of the reasons Beancount was the first on my list for exploring, was
> that it was written in Python and I'm quite keen on using Python for mobile
> development lately.
> So it really looked like a perfect candidate that should run the same on
> all platforms I use currently (Linux, Windows, Android). Unfortunately,
> that's not the case.
> Even ledger, which is written in c++, can run natively on all these
> platforms, which is really convenient. But I managed to package a minimal
> Docker image anyway.
>
> Nonetheless, just off-the-hip shot - what would be required to remove
> dependency on C/C++ compilation during install?
>

Converting the three files of C from this repo:
https://bitbucket.org/blais/beancount/src/default/beancount/parser/

Two of them are auto-generated from a Flex (lexer.l) and Bison (grammar.y)
configuration.
The third is very simple.
I think it would be possible to convert all of those to a PLY parser in
pure-Python, but it would run too slow to be useful (unless you have a
small input file).



> Also, keeping PyPi versions up-to-date would really be helpful in that
> respect as Python is available in Termux and installing with pip is a piece
> of cake on Android.
>

This tends to need just a bit of a nudge in my direction.
I can do this quickly when needed though.



> This hopefully includes Fava, as well, in which case the whole system
> would be able to run on a mobile device (at least Android).
> How useful would something like this be to the community, anyway? I know
> for me it's almost a must, in order to be able to see some reports, at
> least.
>

What I'd find useful for myself is not so much having Beancount itself on
the device, but a simple app that allows me to enter transactions easily
and quickly on-the-go and to make it possible to extract and convert its
database to partially booked Beancount syntax like an importer. I track
some (few) cash transactions manually, but when I do they tend to end up in
a Google Keep note which I'll transcribe by hand much later on; generally
speaking this is rare. When I travel, however, I tend to enjoy tracking
every little bit of expenses for fun and comparison with other trips, and I
do the same thing, Google Keep on my phone. I just transcribe those after
every couple of days to my small travel laptop, copy-pasting from Keep on
web (this drives my wife crazy when I'm transcribing because I'll be asking
something like "do you remember when we got the ice cream at the temple two
days ago, did I pay or did you pay? How much was it?" or "did we use the
credit card at the Oyster place last week?" Anyhow.). It would be much
nicer if it was a bit structured, i.e., those are the fields I'd use: date,
amount, category (I then translate into account), cash or cc (I also
translate to account), who paid. Basically a partial data entry for
double-entry accounting. This could also be useful for HLedger and Ledger,
no doubt.



> On the other hand, I'm also thinking about expanding MoneyManagerEx for
> Android to support data export to plain text so that it can be used as a
> data entry tool on a phone. I have a decent QIF implementation, which was
> used to transfer entries to GnuCash. There is some CSV code that I would
> need to revisit, which would be good enough to support (H)Ledger and
> Beancount as there seems to be a fair amount of tools available for parsing
> CSV records.
>

SGTM



>
> --
> 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/638b10a5-1e93-44d5-9fd1-6bdb4249de5b%40googlegroups.com
> <https://groups.google.com/d/msgid/beancount/638b10a5-1e93-44d5-9fd1-6bdb4249de5b%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
> 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%2BhNBWs0BxpqeCVuhBYCP9w1SUhGJJdUqnYW-ar%2B8KPkr5Q%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to