Issue #279: Support IPython notebook (blais/beancount)

2018-04-08 Thread Martin Blais
New issue 279: Support IPython notebook
https://bitbucket.org/blais/beancount/issues/279/support-ipython-notebook

Martin Blais:

Another kind of integration I'd like to do eventually is IPython notebook,
another very powerful idea.

I didn't think of this, but as I use IPython (now Jupyter) notebooks a lot, 
this totally makes sense! (One step further: Not only getting the data into a 
notebook with a Python-kernel, but writing our own kernel for BSQL, like the 
new Query editor in Fava.)

I could move some of it to a library if it helps.

Yes, it would help a lot. This library could also be home to the IPython 
notebook support down the road.

Responsible: blais

-- 
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+unsubscr...@googlegroups.com.
To post to this group, send email to beancount@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/beancount/20180409035832.2854.653%40celery-worker-105.ash1.bb-inf.net.
For more options, visit https://groups.google.com/d/optout.


Issue #277: Don't throw an error if a Document directive is duplicated (blais/beancount)

2018-04-08 Thread Martin Blais
New issue 277: Don't throw an error if  a Document directive is duplicated
https://bitbucket.org/blais/beancount/issues/277/dont-throw-an-error-if-a-document

Martin Blais:

https://github.com/beancount/fava/pull/398#issuecomment-257709139

I'm not sure it's a bug - you're assuming the user doesn't want dups, and
they're telling you they do - but I think it would make sense to avoid
creating multiple identical directives by default, or at least to have an
option to suppress them.

You're right - it's not a bug really. As you describe it, the current behaviour 
is not wrong but might be surprising.

Surprising it is!

I vote for adding the following condition to the 
beancount-auto-document-directive-generation-code: 
If there is a document directive in the beancount file with the same date, 
account and filename, do not auto-gen a document directive.

Responsible: blais

-- 
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+unsubscr...@googlegroups.com.
To post to this group, send email to beancount@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/beancount/20180409035443.3314.48713%40celery-worker-105.ash1.bb-inf.net.
For more options, visit https://groups.google.com/d/optout.


Issue #276: links and tags for all directives would be useful (revamp grammar, simplify) (blais/beancount)

2018-04-08 Thread Martin Blais
New issue 276: links and tags for all directives would be useful (revamp 
grammar, simplify)

https://bitbucket.org/blais/beancount/issues/276/links-and-tags-for-all-directives-would-be



Martin Blais:



Yes, links and tags for all directives is possible. Idealy that would ideally 
be done in concert with the revamp of links and tags as metadata, which has 
been discussed a while back. 



In the meantime, I could add you a links field for Document directives easily 
(with input syntax as well). Let me know if that would be useful.









On Sun, Oct 23, 2016 at 4:10 AM, Jakob Schnitzer  
wrote:

This is absolutely necessary, as for a business, you would hand over all your 
invoices to your accountant (the folder with the invoices, and all transactions 
that are relevant), but you don't want him to have your contracts and other 
documents.



Sure, then just use another documents folder for the invoices. I personally 
just keep them in the same folder so I'm against forcing this on the user.



I think the perfect solution would be to have a separate directive for invoices 
that works exactly like the Document directive



I'm very much against this. If it just works like the document directive, it 
should just be done using the document directive. Everything you list can be 
done using Document directives. I'd also find this feature way more useful if 
it supports documents, it could be used to attach your monthly account 
statement to a balance directive for instance.



@blais: Beancount only supports links (and tags) for transactions. Could we 
have them for all entry types?



—

You are receiving this because you were mentioned.

Reply to this email directly, view it on GitHub, or mute the thread.



Responsible: blais

-- 
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+unsubscr...@googlegroups.com.
To post to this group, send email to beancount@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/beancount/20180409035034.28028.28945%40celery-worker-107.ash1.bb-inf.net.
For more options, visit https://groups.google.com/d/optout.


Re: Please help me start with a CSV importer

2018-04-08 Thread Martin Blais
The CSV importer that is provided puts together a regexp from the list of
fields you provide.
This regexp is run against the contents of the files it is scanning, in
order to identify whether a particular importer should be able to process a
file.

The regexp is built from the fields you provide, I think, for this
importer, it's in the source code.
You'll have to open up the source code to debug this, but I suspect your
list of fields may not exactly match that from your files.
(There ought to be better tools for debugging this, but because setting up
the import config usually requires coding, people just override methods and
put prints and debug it that way.)





On Sun, Apr 8, 2018 at 4:46 PM, viq  wrote:

> On Sunday, April 8, 2018 at 7:40:50 PM UTC+2, Martin Blais wrote:
>>
>> - bean-identity saw your file.
>> - It didn't match any of the configured importers (there's no section
>> printed underneath it, if it matches it would print the importer and
>> deduced account name, date and to-be-renamed location)
>> Something to do with your regexp, it probably still doesn't match the
>> header of your file.
>>
>
> Sorry, where does the regexp come from (since what I'm putting in the
> "config file" doesn't look like regexp at all), and what is it to match and
> where?
>
> --
> 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+unsubscr...@googlegroups.com.
> To post to this group, send email to beancount@googlegroups.com.
> To view this discussion on the web visit https://groups.google.com/d/
> msgid/beancount/f8b2a0cf-1357-4a4f-bf82-0ee2ce558ff2%40googlegroups.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 beancount+unsubscr...@googlegroups.com.
To post to this group, send email to beancount@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/beancount/CAK21%2BhPUPnuo%3DX1UArXb8tjYA%2Bkvvh_mcvOtneq3%3DhSpxUU%2BqQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: Please help me start with a CSV importer

2018-04-08 Thread viq
On Sunday, April 8, 2018 at 7:40:50 PM UTC+2, Martin Blais wrote:
>
> - bean-identity saw your file.
> - It didn't match any of the configured importers (there's no section 
> printed underneath it, if it matches it would print the importer and 
> deduced account name, date and to-be-renamed location)
> Something to do with your regexp, it probably still doesn't match the 
> header of your file.
>

Sorry, where does the regexp come from (since what I'm putting in the 
"config file" doesn't look like regexp at all), and what is it to match and 
where?

-- 
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+unsubscr...@googlegroups.com.
To post to this group, send email to beancount@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/beancount/f8b2a0cf-1357-4a4f-bf82-0ee2ce558ff2%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Please help me start with a CSV importer

2018-04-08 Thread Martin Blais
- bean-identity saw your file.
- It didn't match any of the configured importers (there's no section
printed underneath it, if it matches it would print the importer and
deduced account name, date and to-be-renamed location)
Something to do with your regexp, it probably still doesn't match the
header of your file.



On Sun, Apr 8, 2018 at 9:29 AM, viq  wrote:

> On Sunday, April 8, 2018 at 10:46:30 AM UTC+2, Martin Blais wrote:
>>
>> On Sun, Apr 8, 2018 at 3:17 AM, viq  wrote:
>>
>>>
>>>
>>> On Sunday, April 8, 2018 at 1:55:42 AM UTC+2, Michael Droogleever wrote:

 I think it is this, but I have not tried running your code:


> sys.path.insert(0, path.join(path.dirname(__file__)))


 is what adds the path to your importers package, to the system path. So
 the

 import importers.mybank
>

 Needs to be after it. It is admittedly not correct python style, as
 imports should always come first, but it is a workaround beancount uses to
 be able to read your custom code.

>>>
 Good luck.

>>>
>>> Indeed, with that change it doesn't complain about imports now, thank
>>> you! Apparently the same can be achieved by setting PYTHONPATH.
>>>
>>
>> Yes.
>>
>> I think we talked about adding the importer file's location automatically
>> to PYTHONPATH, here:
>> https://bitbucket.org/blais/beancount/issues/214/add-top-lev
>> el-directory-to-syspath
>> Not done yet
>>
>>
>>
>>>
>>> Now to figure out why nothing happens when I run bean-extract
>>>
>>
>> Run bean-identify first. If it doesn't list the file, it hasn't
>> identified it as  something the importer can extract from.
>>
>> It uses the regexps you provide to match against the contents of the CSV
>> file.
>> I see a typo in your code, which probably explains why it doesn't match
>> it:
>>
>> Transacton Date
>>
>
> Thanks, fixed, didn't seem to help though. bean-identify seems to work
> fine:
> $ bean-identify test.config.py bank_history_sample.csv
>  /home/viq/Work/Own/beancount/bank_history_sample.csv
> yet bean-extract does nothing:
> $ bean-extract test.config.py bank_history_sample.csv
> ;; -*- mode: beancount -*-
>  /home/viq/Work/Own/beancount/bank_history_sample.csv
>
> --
> 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+unsubscr...@googlegroups.com.
> To post to this group, send email to beancount@googlegroups.com.
> To view this discussion on the web visit https://groups.google.com/d/
> msgid/beancount/163c3c90-1c68-4e46-bcfc-96351f2bd688%40googlegroups.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 beancount+unsubscr...@googlegroups.com.
To post to this group, send email to beancount@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/beancount/CAK21%2BhPSSrWnfqhK%3DqwNgATMkb9D8Dv2S4AxjrZwnkp-ZbEO%3Dw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: Issue #275: Make importers easier to debug (blais/beancount)

2018-04-08 Thread francois PEGORY
Maybe with a parameter that add some "noises", it could be good

Le dim. 8 avr. 2018 à 10:47, Martin Blais  a
écrit :

> New issue 275: Make importers easier to debug
>
> https://bitbucket.org/blais/beancount/issues/275/make-importers-easier-to-debug
>
> Martin Blais:
>
> When an importer doesn't identify, it can be a little puzzling to some
> users.
> We should provided more debugging info, perhaps list the regexps, find out
> the right amount of "noise" to provide (currently too little noise).
>
> Responsible: blais
>
> --
> 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+unsubscr...@googlegroups.com.
> To post to this group, send email to beancount@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/beancount/20180408084735.4893.42382%40celery-worker-106.ash1.bb-inf.net
> .
> 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 beancount+unsubscr...@googlegroups.com.
To post to this group, send email to beancount@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/beancount/CALUWbLfEYT_nxCrwHjeJxDV63SkXytokQ3EYjNPJojNsEh-vAw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: Website down?

2018-04-08 Thread Daniele Nicolodi
On 08/04/2018 01:07, Stefano Zacchiroli wrote:
> On Sat, Apr 07, 2018 at 07:02:53PM -0600, Daniele Nicolodi wrote:
>> is it just me or the project website http://furius.ca/beancount is down?

Thanks Zack!  I even looked in the mailing list archive before posting,
but I didn't find that thread.  I must say that the Google interface
does not make it easy, for me.

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+unsubscr...@googlegroups.com.
To post to this group, send email to beancount@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/beancount/2e45535c-a2d7-be28-d076-7f9b5dbce7a7%40grinta.net.
For more options, visit https://groups.google.com/d/optout.


Re: Please help me start with a CSV importer

2018-04-08 Thread viq
On Saturday, April 7, 2018 at 4:27:29 PM UTC+2, viq wrote:
>
> First, apologies, I'm very new to beancount, and only starting with 
> python. Right now I'm trying to just have a basic import working, and then 
> will try to enrich it. I've tried looking through documentation and mailing 
> lists, and this is as far as I managed to go with it.
>
> "config" file test.config.py:
> #!/usr/bin/env python3
>
>
> '''
> Configuration file for extracting MyBank data
> '''
>
> import sys
> from os import path
>
> # from beancount.ingest import extract
> # from beancount.ingest.importers import csv
>
> # from .importers import mybank
> import importers.mybank
>
> sys.path.insert(0, path.join(path.dirname(__file__)))
>
> # from beancount.plugins import auto_accounts
>
>
> CONFIG = [importers.mybank.Importer('Assets:Currency:MyBank')]
>
>
> importer importers/mybank/__init__.py:
> #!/usr/bin/env python3
>
> '''
> Configuration file for extracting MyBank data
> '''
>
> from beancount.ingest import regression
> from beancount.ingest.importers import csv
>
> from beancount.plugins import auto_accounts
>
>
> class Importer(csv.Importer):
>
> config = {csv.Col.DATE: 'Posted Date',
>   csv.Col.TXN_DATE: 'Transaction Date',
>   csv.Col.NARRATION1: 'Description',
>   csv.Col.NARRATION2: 'Payee',
>   csv.Col.NARRATION3: 'Payee account',
>   csv.Col.AMOUNT: 'Amount',
>   csv.Col.BALANCE: 'Balance'}
>
> def __init__(self, account):
> csv.Importer.__init__(
> self, self.config,
> account, 'Currency',
> ('Transacton Date,Posted Date,Description,Payee,'
>  'Payee account,Amount,Balance'),
> 1)
>
> def get_description(self, row):
> payee, narration = super().get_description()
>

Although pylint complains here:
pylint: [no-member] Super of 'Importer' has no 'get_description' member [
E1101] (E)
but I don't know what to make of it.

 

> narration = '{} ({})'.format(narration, row.category)
> return payee, narration
>
>
> Yes, importers/__init__.py exists and is empty
>
> Trying to run bean-identify (from the directory where directory with 
> importers is) with this is very unhappy with me:
> $ bean-identify test.config.py bank_history_sample.csv 
> Traceback (most recent call last):
>   File "/usr/bin/bean-identify", line 4, in 
> from beancount.ingest.identify import main; main()
>   File "/usr/lib/python3.6/site-packages/beancount/ingest/identify.py", 
> line 93, in main
> _, config, downloads_directories = 
> scripts_utils.parse_arguments(parser)
>   File 
> "/usr/lib/python3.6/site-packages/beancount/ingest/scripts_utils.py", line 
> 56, in parse_arguments
> mod = runpy.run_path(args.config)
>   File "/usr/lib/python3.6/runpy.py", line 263, in run_path
> pkg_name=pkg_name, script_name=fname)
>   File "/usr/lib/python3.6/runpy.py", line 96, in _run_module_code
> mod_name, mod_spec, pkg_name, script_name)
>   File "/usr/lib/python3.6/runpy.py", line 85, in _run_code
> exec(code, run_globals)
>   File "test.config.py", line 15, in 
> import importers.mybank
> ModuleNotFoundError: No module named 'importers'
>
>
> What am I doing wrong and how should I proceed from here?
>
>

-- 
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+unsubscr...@googlegroups.com.
To post to this group, send email to beancount@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/beancount/78d080ab-cdd7-44de-81da-0910c3521ff8%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Please help me start with a CSV importer

2018-04-08 Thread viq
On Sunday, April 8, 2018 at 10:46:30 AM UTC+2, Martin Blais wrote:
>
> On Sun, Apr 8, 2018 at 3:17 AM, viq  
> wrote:
>
>>
>>
>> On Sunday, April 8, 2018 at 1:55:42 AM UTC+2, Michael Droogleever wrote:
>>>
>>> I think it is this, but I have not tried running your code:
>>>  
>>>
 sys.path.insert(0, path.join(path.dirname(__file__))) 
>>>
>>>
>>> is what adds the path to your importers package, to the system path. So 
>>> the
>>>
>>> import importers.mybank

>>>
>>> Needs to be after it. It is admittedly not correct python style, as 
>>> imports should always come first, but it is a workaround beancount uses to 
>>> be able to read your custom code. 
>>>
>>
>>> Good luck.
>>>
>>
>> Indeed, with that change it doesn't complain about imports now, thank 
>> you! Apparently the same can be achieved by setting PYTHONPATH.
>>
>
> Yes.
>
> I think we talked about adding the importer file's location automatically 
> to PYTHONPATH, here:
>
> https://bitbucket.org/blais/beancount/issues/214/add-top-level-directory-to-syspath
> Not done yet
>
>  
>
>>
>> Now to figure out why nothing happens when I run bean-extract 
>>
>
> Run bean-identify first. If it doesn't list the file, it hasn't identified 
> it as  something the importer can extract from.
>
> It uses the regexps you provide to match against the contents of the CSV 
> file.
> I see a typo in your code, which probably explains why it doesn't match it:
>  
> Transacton Date
>

Thanks, fixed, didn't seem to help though. bean-identify seems to work fine:
$ bean-identify test.config.py bank_history_sample.csv
 /home/viq/Work/Own/beancount/bank_history_sample.csv
yet bean-extract does nothing:
$ bean-extract test.config.py bank_history_sample.csv
;; -*- mode: beancount -*-
 /home/viq/Work/Own/beancount/bank_history_sample.csv

-- 
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+unsubscr...@googlegroups.com.
To post to this group, send email to beancount@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/beancount/163c3c90-1c68-4e46-bcfc-96351f2bd688%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Newbie questions on beatcount and emacs.

2018-04-08 Thread mployby
Guys hi,

I am pretty new to plain text accounting, was using ledger CLI for week or 
so, like the flexibility over cashGNU, and yesterday installed 
beancount(using it with emacs). I have several questions:

1 How do you add today's date without typing? In ledger-mode i was using 
ctrl+C ctrl+A, is there a shortcut in beancount mode?
2 For ledger set-up i was using company to complete(like it more than C-c ' 
insert account) - how can i use company with org + beancount mode?
Cause now tab is taken by Org to open/close lists
3 C-c l (bean-check) does not work for me. It says "bean check" is not 
recognized as an internal or external command, operable program or batch 
file.
(I am on Windows 10), what can be the problem?
4 To use an account before hand it must be opened right? "open" command.
5 If had an account expenses:business:rent57, and closed it let say in 
april 2018. 
It still will be shown in reports for periods prior to april 2018, correct?

Sorry if these questions are too basic, just trying to learn beancount.

-- 
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+unsubscr...@googlegroups.com.
To post to this group, send email to beancount@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/beancount/078f957c-fd04-41bf-999b-95c7a71f8c7e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Reports

2018-04-08 Thread Jakob Schnitzer

On Sun, Apr 01, 2018 at 01:53:19AM -0400, Martin Blais wrote:

How many people here use bean-report as their main way to generate data
from Beancount?
How many use bean-web?
Does anybody still care about bean-web now that Fava exists?

Also... is it possible to bean-bake Fava (or some equivalent creation of a
static version for sharing)?


It isn't, no (and it can't really be due to the amount of interactive 
switches, which would lead to an exponential number of pages).


Fava's templates could be used to implement some reduced static version 
like bean-bake though, removing the dependency on bean-reports.




Any input appreciated,


(Reason I'm asking is: I'm thinking about
- rewriting the query engine to something more powerful and general, and
promoting it from experimental and somewhat flaky to the main way of
getting data out
- rewriting bean-web to be a dumber, more generic web interface that
basically renders SQL queries (using the new query engine) without any
special treatment (just tables and tree-tables)
- deleting bean-reports and all of beancount/reports, or replacing most of
it by SQL queries
- in the process deleting the Holdings code
Basically, I think that with a slightly improved query engine I could
delete a ton of code without removing functionality at all.)

--
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+unsubscr...@googlegroups.com.
To post to this group, send email to beancount@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/beancount/CAK21%2BhPZh%2BRSFNoSDZd3PF%3Dh0ki2Utqv%3Dx%2BC%3D6dQpSiwX7S_ew%40mail.gmail.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 beancount+unsubscr...@googlegroups.com.
To post to this group, send email to beancount@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/beancount/20180408104740.GB9772%40js-arch.
For more options, visit https://groups.google.com/d/optout.


Re: Reports

2018-04-08 Thread Jakob Schnitzer

On Sun, Apr 01, 2018 at 10:03:43PM +0300, Daniel Clemente wrote:

I use bean-report for a few commands, mainly to get the price database, and
all balances.
For most operations I use bean-query or the web interface, which is fast
and reliable.

I don't use Fava and I feel it adds too much complexity. It depends on a
lot of external code that I don't have time to review (I just tried to
count it: npm wants to install 588 packages of JavaScript code!). Running


The actual Javascript code of Fava only has 3 dependencies (plus one 
polyfill to support MS Edge): d3 for charts, codemirror for the editors, 
and Mousetrap for key bindings. I'm trying to keep this list minimal and 
I believe all the dependencies we have are very much worth it as they 
allow us to provide useful and powerful features that wouldn't be 
possible otherwise.


Are there other aspects of Fava that you find too complex?

That high number is mostly a result of the build tools (rollup, used by 
most JS libraries) and the lint tools for JS and CSS (eslint and 
stylelint respectively).



it inside a sandbox (Docker) is possible but it's harder to set up and this
infrastructure can have other problems.


A simple `pip install fava` will do, there's no need to install anything 
node-related yourself.



Fava doesn't have the simplicity that I find in beancount. It also didn't
work without JS when I tried it some years ago (maybe it has improved).


Many of the Fava's core features (like charts, the editor, journal 
filtering, and toggleable account trees) can't be implemented without 
Javascript, so it can't really work without JS. Is there a reason apart 
from the complexity argument above for which you'd want to use it 
without JS?



I'd be fine with uglier web pages if they provide the basic accounting
needs. Though they don't need to be ugly.

I also use the holdings code and aggregate_holdings_by, but I could do the
same in some other way or keep the old code.


On Sun, Apr 1, 2018 at 8:53 AM, Martin Blais  wrote:


How many people here use bean-report as their main way to generate data
from Beancount?
How many use bean-web?
Does anybody still care about bean-web now that Fava exists?

Also... is it possible to bean-bake Fava (or some equivalent creation of a
static version for sharing)?

Any input appreciated,


(Reason I'm asking is: I'm thinking about
- rewriting the query engine to something more powerful and general, and
promoting it from experimental and somewhat flaky to the main way of
getting data out
- rewriting bean-web to be a dumber, more generic web interface that
basically renders SQL queries (using the new query engine) without any
special treatment (just tables and tree-tables)
- deleting bean-reports and all of beancount/reports, or replacing most of
it by SQL queries
- in the process deleting the Holdings code
Basically, I think that with a slightly improved query engine I could
delete a ton of code without removing functionality at all.)

--
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+unsubscr...@googlegroups.com.
To post to this group, send email to beancount@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/
msgid/beancount/CAK21%2BhPZh%2BRSFNoSDZd3PF%3Dh0ki2Utqv%
3Dx%2BC%3D6dQpSiwX7S_ew%40mail.gmail.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 beancount+unsubscr...@googlegroups.com.
To post to this group, send email to beancount@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/beancount/CAJKAhPD9qna%2BHq73uXsuw%3DNMqE4%3DdroVpm9cvGd1Fqch0eBhMg%40mail.gmail.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 beancount+unsubscr...@googlegroups.com.
To post to this group, send email to beancount@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/beancount/20180408104254.GA9772%40js-arch.
For more options, visit https://groups.google.com/d/optout.


Issue #275: Make importers easier to debug (blais/beancount)

2018-04-08 Thread Martin Blais
New issue 275: Make importers easier to debug
https://bitbucket.org/blais/beancount/issues/275/make-importers-easier-to-debug

Martin Blais:

When an importer doesn't identify, it can be a little puzzling to some users.
We should provided more debugging info, perhaps list the regexps, find out the 
right amount of "noise" to provide (currently too little noise).

Responsible: blais

-- 
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+unsubscr...@googlegroups.com.
To post to this group, send email to beancount@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/beancount/20180408084735.4893.42382%40celery-worker-106.ash1.bb-inf.net.
For more options, visit https://groups.google.com/d/optout.


Re: Please help me start with a CSV importer

2018-04-08 Thread Martin Blais
On Sun, Apr 8, 2018 at 3:17 AM, viq  wrote:

>
>
> On Sunday, April 8, 2018 at 1:55:42 AM UTC+2, Michael Droogleever wrote:
>>
>> I think it is this, but I have not tried running your code:
>>
>>
>>> sys.path.insert(0, path.join(path.dirname(__file__)))
>>
>>
>> is what adds the path to your importers package, to the system path. So
>> the
>>
>> import importers.mybank
>>>
>>
>> Needs to be after it. It is admittedly not correct python style, as
>> imports should always come first, but it is a workaround beancount uses to
>> be able to read your custom code.
>>
>
>> Good luck.
>>
>
> Indeed, with that change it doesn't complain about imports now, thank you!
> Apparently the same can be achieved by setting PYTHONPATH.
>

Yes.

I think we talked about adding the importer file's location automatically
to PYTHONPATH, here:
https://bitbucket.org/blais/beancount/issues/214/add-top-level-directory-to-syspath
Not done yet



>
> Now to figure out why nothing happens when I run bean-extract
>

Run bean-identify first. If it doesn't list the file, it hasn't identified
it as  something the importer can extract from.

It uses the regexps you provide to match against the contents of the CSV
file.
I see a typo in your code, which probably explains why it doesn't match it:

Transacton Date

-- 
> 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+unsubscr...@googlegroups.com.
> To post to this group, send email to beancount@googlegroups.com.
> To view this discussion on the web visit https://groups.google.com/d/
> msgid/beancount/32737949-89a6-4fb2-80ed-ba8189931e6e%40googlegroups.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 beancount+unsubscr...@googlegroups.com.
To post to this group, send email to beancount@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/beancount/CAK21%2BhNRFKPtoR-%3DVDzRGCzBVNTGVukQfbjqPUpYDN2sBXFXuw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: Please help me start with a CSV importer

2018-04-08 Thread viq


On Sunday, April 8, 2018 at 1:55:42 AM UTC+2, Michael Droogleever wrote:
>
> I think it is this, but I have not tried running your code:
>  
>
>> sys.path.insert(0, path.join(path.dirname(__file__))) 
>
>
> is what adds the path to your importers package, to the system path. So the
>
> import importers.mybank
>>
>
> Needs to be after it. It is admittedly not correct python style, as 
> imports should always come first, but it is a workaround beancount uses to 
> be able to read your custom code.
>
> Good luck.
>

Indeed, with that change it doesn't complain about imports now, thank you! 
Apparently the same can be achieved by setting PYTHONPATH.

Now to figure out why nothing happens when I run bean-extract 

-- 
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+unsubscr...@googlegroups.com.
To post to this group, send email to beancount@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/beancount/32737949-89a6-4fb2-80ed-ba8189931e6e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Issue #274: allow single document option to span multiple per-year directories (blais/beancount)

2018-04-08 Thread Stefano Zacchiroli
New issue 274: allow single document option to span multiple per-year 
directories
https://bitbucket.org/blais/beancount/issues/274/allow-single-document-option-to-span

Stefano Zacchiroli:

As suggested by the documentation, it is handy to split documents like bank 
statements into per-year sub-directories. To support all of them, one currently 
needs to specify the document option multiple times, e.g. (real-example from my 
own beancount file):
```
#!beancount
option "documents" "documents/2018"
option "documents" "documents/2017"
option "documents" "documents/2016"
option "documents" "documents/2015"
option "documents" "documents/2014"
option "documents" "documents/2013"
option "documents" "documents/2012"
option "documents" "documents/2011"
option "documents" "documents/2010"
option "documents" "documents/2009"
```
Having to maintain this list is tiresome and bloated.

Given how popular this arrangement is, it would be nice if beancount would look 
for both DOCUMENT_DIR/ACCOUNT_NAME/-MM-DD.file.pdf and 
DOCUMENT_DIR//ACCOUNT_NAME/-MM-DD.file.pdf . With that, it will become 
possible to specify a single document option, like this:
```
#!beancount
option "documents" "documents"
```


-- 
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+unsubscr...@googlegroups.com.
To post to this group, send email to beancount@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/beancount/20180408071400.10827.85762%40celery-worker-109.ash1.bb-inf.net.
For more options, visit https://groups.google.com/d/optout.


Re: Website down?

2018-04-08 Thread Stefano Zacchiroli
On Sat, Apr 07, 2018 at 07:02:53PM -0600, Daniele Nicolodi wrote:
> is it just me or the project website http://furius.ca/beancount is down?


-- 
Stefano Zacchiroli . z...@upsilon.cc . upsilon.cc/zack . . o . . . o . o
Computer Science Professor . CTO Software Heritage . . . . . o . . . o o
Former Debian Project Leader & OSI Board Director  . . . o o o . . . o .
« the first rule of tautology club is the first rule of tautology club »

-- 
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+unsubscr...@googlegroups.com.
To post to this group, send email to beancount@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/beancount/20180408070732.GJ21013%40upsilon.cc.
For more options, visit https://groups.google.com/d/optout.
--- Begin Message ---
My website is down for a few days as it's being reset to a new IP address
for an administrative reason;
the main problem with this is that a lot of the documentation links go
through redirects from furius.ca.

However, you can find all the docs from the index page, which use direct
links to Google Drive.
The index page is located here:
https://docs.google.com/document/d/1RaondTJCS_IUPBHFNdT8oqFKJjVJDsfsn6JEjBG04eA/

The source code can be found at:
http://bitbucket.org/blais/beancount

Apologies for the temporary inconvenience,



On Mon, Apr 2, 2018 at 5:51 PM, John Rakestraw 
wrote:

> Hi, all --
>
> I'm a long-time ledger user. A recent thread on the ledger list leads me
> to look more closely at Beancount. But I couldn't get the web site (
> http://furius.ca/beancount) to load and it still doesn't load today -- it
> times out. Is that a known problem? And is this where I should download and
> learn more about the program?
>
> Thanks --
>
> John
>
> --
> 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+unsubscr...@googlegroups.com.
> To post to this group, send email to beancount@googlegroups.com.
> To view this discussion on the web visit https://groups.google.com/d/
> msgid/beancount/e60fb01b-90db-47ec-85ab-458e7882bd76%40googlegroups.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 beancount+unsubscr...@googlegroups.com.
To post to this group, send email to beancount@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/beancount/CAK21%2BhO0gupsq%2BhHPKn8Uk%3DdNYE2OXzp-brmtq%2B4UoEvHVo_2w%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
--- End Message ---