Re: Several questions about usage from a newb

2016-10-14 Thread Martin Blais
some ABC" >Assets:Broker:ABC-100 ABC {10 CAD} ; this can be {*} or > nothing when FIFO works? >Assets:Broker:Cash 500.05 CAD >Income:Broker:PnL > You can leave it as {} if you use the FULL booking algorithm, and it will apply

Re: "A valid price for … could not be found"

2016-10-14 Thread Martin Blais
"bean-query print" ? This is a way you can print all the interpreted directives and see if a Price directive is present or not. > > > On Thursday, October 13, 2016 at 6:40:47 PM UTC-7, Martin Blais wrote: >> >> Matthew: This is not a bug, but rather a choice I made a w

Re: "A valid price for … could not be found"

2016-10-14 Thread Martin Blais
Thank you! > > On Friday, October 14, 2016 at 6:40:50 PM UTC-7, Martin Blais wrote: >> >> On Fri, Oct 14, 2016 at 1:14 PM, Matthew Harris >> wrote: >> >>> In the Language manual, you say a Price directive is synthesized when a >>> posting has a cost or

Re: Google cache url issue

2016-10-15 Thread Martin Blais
I'm sorry aniruddha, I don't understand your question. Is this about invoking bean-price? If so, what parameters are you using for it? Could you be very specific? Thanks, On Sat, Oct 15, 2016 at 5:20 AM, wrote: > Hello folk, > > I am facing issue in URL caching. Few of my URLs are not catch by

Re: Several questions about usage from a newb

2016-10-16 Thread Martin Blais
dric Bundy wrote: > The "experimental_booking_algorith" still wouldn't work, so I did some > grepping on the source and the option is: "experiment_booking_method". > That seems to work great. Thanks. > > > On Fri, Oct 14, 2016 at 9:20 PM, Martin Bla

Re: reconcilation via balance assertion

2016-10-21 Thread Martin Blais
On Fri, Oct 21, 2016 at 5:42 PM, Saša Janiška wrote: > yegle writes: > > > There was a discussion about ading closing_balance directive but I'm > > not sure if it's going to be implemented. > > Thanks. > > Otoh, I re-read the docs and found out that “Beancount’s balance > assertions are separate

Re: input mode for Emacs

2016-10-21 Thread Martin Blais
Ledger-mode has a lot of features to do interactive things, and a lot of history. Beancount-mode is a much leaner, less featureful mode (and it's just a minor mode), but it has features to invoke debugging commands on the transaction closest to the cursor, those are very useful. Personally I just

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 > file which can be

Re: input mode for Emacs

2016-10-23 Thread Martin Blais
On Sun, Oct 23, 2016 at 11:37 AM, Saša Janiška wrote: > Martin Blais writes: > > > Ledger-mode has a lot of features to do interactive things, and a lot > > of history. > > Indeed. > > > Beancount-mode is a much leaner, less featureful mode (and it's just

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 = '

Is Python >=3.5 okay?

2016-10-24 Thread Martin Blais
Hi, Yuchen Ying has started prototyping type annotations for Beancount: https://github.com/yegle/beancount-type-stubs I'm really excited with seeing types in Python and applied to Beancount. I'm considering making changes to beancount.core that would make this work easier. These changes would not

Re: Is Python >=3.5 okay?

2016-10-27 Thread Martin Blais
That's a huge lag. I just realized Python 3.5.1 was released almost a year ago (12/7/2015). On Wed, Oct 26, 2016 at 9:42 AM, Stefan Monnier wrote: > > However, this would coerce everyone up to Python 3.5. > > That's annoying on Debian stable (about half my machines, including the > one which I

Re: general CSV importer

2016-10-29 Thread Martin Blais
On Fri, Oct 28, 2016 at 8:13 PM, wrote: > Hi Martin, > > responses to your response below. > > On Monday, October 24, 2016 at 10:07:53 PM UTC-4, Martin Blais wrote: >> >> On Sun, Oct 23, 2016 at 9:01 PM, wrote: >> >>> Hi Martin, >>> >&g

Re: general CSV importer

2016-10-29 Thread Martin Blais
ow it goes, I think there are other people trying to do the same thing. Jonathan > > On Saturday, October 29, 2016 at 9:09:17 AM UTC-4, Martin Blais wrote: >> >> On Fri, Oct 28, 2016 at 8:13 PM, wrote: >> >>> Hi Martin, >>> >>> responses to yo

Re: Is Python >=3.5 okay?

2016-10-30 Thread Martin Blais
Stefan, Can you quickly test out if your 3.4 installation allows a pip install of "typing"? Thanks, On Fri, Oct 28, 2016 at 10:13 AM, Stefan Monnier wrote: > > I just realized Python 3.5.1 was released almost a year ago (12/7/2015). > > According to https://www.debian.org/releases/ > > The

2.0b13

2016-10-30 Thread Martin Blais
I just cut a new release, 2.0b13. I'm planning to make some big changes with user impact soon; this is the last release before these changes. The future changes will involve: - Make the new booking algorithm the default - Deprecate all legacy support (old things will go away) - Begin including sup

Re: Is Python >=3.5 okay?

2016-10-30 Thread Martin Blais
I just made a fresh install of Python 3.4, installed pip, and tested that a simple "pip3 install typing" works, and the symbols I'm going to introduce are present in it and import without error. On Sun, Oct 30, 2016 at 1:33 PM, Martin Blais wrote: > Stefan, > Can you qui

Re: Is Python >=3.5 okay?

2016-10-30 Thread Martin Blais
he meantime. Will send an update shortly. On Sun, Oct 30, 2016 at 5:10 PM, Martin Blais wrote: > I just made a fresh install of Python 3.4, installed pip, and tested that > a simple "pip3 install typing" works, and the symbols I'm going to > introduce are present in it

Beancount Updates - 2016-10-30

2016-10-30 Thread Martin Blais
It has been a good 6 months since the last update. Lots of important changes recently - in particular, moving to the newer and better booking algorithm, requiring Python 3.5 and I've deprecated a bunch of old deprecated stuff. It's possible you will experience user-visible changes. Full details bel

Re: Beancount Updates - 2016-10-30

2016-11-01 Thread Martin Blais
nt/src/fdd1b562fd53db239da1b0338a2634d05e1fe48e/src/python/beancount/parser/booking_full.py?at=default&fileviewer=file-view-default#booking_full.py-691 It turns out it needs a lot of unit testing to complete this, but at this point all the scaffolding around it is there and merged. > &

Re: tagging individual postings

2016-11-05 Thread Martin Blais
On Thu, Nov 3, 2016 at 2:07 PM, Stefano Zacchiroli wrote: > Dear all, > > is there a profound reason (which I'm clearly missing) why #tags can be > attached to a transaction as a whole, but not to individual postings? > No profound reason, just history. It seems to me that, conceptually, if me

Re: beancount.el vs emacs keybinding conventions

2016-11-12 Thread Martin Blais
On Wed, Nov 9, 2016 at 6:33 AM, Stefano Zacchiroli wrote: > Heya, > I've started using beancount.el to do my Beancount editing. It has > great features --- for which I'm super grateful :-)) --- but I couldn't > help a feeling that the mode got in my way, clashing with almost all my > personal m

Re: beancount.el vs emacs keybinding conventions

2016-11-12 Thread Martin Blais
https://bitbucket.org/blais/beancount/commits/b969f5f75b699707d50e52d686248997e5786655 Use it like this: (setq beancount-mode-map-prefix [(control x)(control a)]) ;; Or whatever you prefer (require 'beancount) On Sat, Nov 12, 2016 at 3:00 PM, Martin Blais wrote: > On Wed, Nov 9, 2

Re: beancount.el vs emacs keybinding conventions

2016-11-13 Thread Martin Blais
On Sun, Nov 13, 2016 at 3:04 AM, Stefano Zacchiroli wrote: > On Sat, Nov 12, 2016 at 06:03:58PM -0500, Stefan Monnier wrote: > > > (Stefan will probably want to weigh in at this point.) > > Chiming in here: yeah, I've been thinking about it too. In abstract > terms it would probably make more sen

Re: is Beancount GPL2 or GPL2+ ?

2016-11-13 Thread Martin Blais
On Sun, Nov 13, 2016 at 5:31 AM, Stefano Zacchiroli wrote: > Heya, > I've tried to understand the actual license under which Beancount is > released, but I haven't found a conclusive answer --- hence my question > here. > > - the top-level COPYING file is the text of the GPL, version 2.0 > - mo

Re: How to make Pretty Financial Statememts?

2016-11-16 Thread Martin Blais
On Wed, Nov 16, 2016 at 1:29 AM, Len Wanger wrote: > > Hi, > > Excuse the newbie question. I am trying to make reports that mimic > financial statements for a company. I could use some tips on how to get the > reports formatted for external consumption. I am currently working on the > balance she

Re: document about the new booking functionnality

2016-11-16 Thread Martin Blais
It's basically an improvement on this: http://furius.ca/beancount/doc/proposal-booking Minus the average cost booking method, which is not there yet (though FIFO and LIFO are). I haven't had time to document the changes yet, but whatever used to work should just work (*). There's only one very spe

Re: document about the new booking functionnality

2016-11-16 Thread Martin Blais
Not yet. NONE (i.e., like Ledger), STRICT, FIFO, and LIFO are supported. AVERAGE is a tougher nut to crack and will come along later. In the meantime, I use (and recommend using) NONE for those accounts. Like Ledger, calculating the total number of units and the total cost basis works just fine th

Re: document about the new booking functionnality

2016-11-19 Thread Martin Blais
t; balance: (-80 GBP, 10 WIDGET) > >2014-10-15 * "buy widgets" > Assets:Inventory 10 WIDGET > Assets:Cash -80 GBP > > i don't understand why ? > > regards > > 2016-11-17 5:28 GMT+01:00 Martin Blais : > >> Not yet. NONE (i.

Re: How to make Pretty Financial Statememts?

2016-11-19 Thread Martin Blais
m_posi - - ETrade Investments 12000.00 USD BofA Checking Account -12000USD I hope this helps, Also, happy to add new functions to the shell if required, On Wed, Nov 16, 2016 at 11:09 PM, Martin Blais wrote: > On Wed, Nov 16, 2016 at 1:29 AM,

Re: is Beancount GPL2 or GPL2+ ?

2016-11-20 Thread Martin Blais
On Mon, Nov 14, 2016 at 2:24 AM, Stefano Zacchiroli wrote: > On Sun, Nov 13, 2016 at 11:16:08PM -0500, Martin Blais wrote: > > The license at the root of the project applies. > > Do I need to repeat the license in each and every file? > > I used to do that on some other pr

Re: document about the new booking functionnality

2016-11-20 Thread Martin Blais
. I hope this helps, On Sat, Nov 19, 2016 at 7:29 PM, francois PEGORY wrote: > i used the version 2.0b13 install with pip > > regards > > 2016-11-19 23:51 GMT+01:00 Martin Blais : > >> Works for me (no error at all). >> Which version are you using? >> >> >

Re: document about the new booking functionnality

2016-11-20 Thread Martin Blais
I've added an error for this: https://bitbucket.org/blais/beancount/commits/ccb1eb6a62f74288d1e4756f0bab8242c45edcf1 On Sun, Nov 20, 2016 at 1:02 PM, Martin Blais wrote: > Ha! Yes, I understand. > You're using the older "SIMPLE" booking method. > In this method, th

Re: proposed new SQL function: ANY_META

2016-11-20 Thread Martin Blais
I like it. Done: https://bitbucket.org/blais/beancount/commits/90472db4ef144783408844a22cbc5dc4a54ba39b On Mon, Nov 14, 2016 at 9:38 AM, Stefano Zacchiroli wrote: > Coming from the Ledger half of the Free accounting world, I'm used to > the fact that transaction metadata propagates down to post

Re: beancount.el vs emacs keybinding conventions

2016-11-20 Thread Martin Blais
Just tried it myself, inspired by this excitement; but... orgstruct-mode does not appear to operate similarly to org-mode. I cannot use the regular bindings to move up and down visible headings (it purports to, but it fails), and while folding single sections works, the functions to fold the entire

Re: proposed new SQL function: ANY_META

2016-11-20 Thread Martin Blais
Fixed. Sorry about that. On Sun, Nov 20, 2016 at 2:40 PM, Stefano Zacchiroli wrote: > On Sun, Nov 20, 2016 at 02:19:37PM -0500, Martin Blais wrote: > > I like it. > > Done: > > https://bitbucket.org/blais/beancount/commits/ > 90472db4ef144783408844a22cbc5dc4a54ba39b >

Re: is Beancount GPL2 or GPL2+ ?

2016-11-20 Thread Martin Blais
On Sun, Nov 20, 2016 at 2:38 PM, Stefano Zacchiroli wrote: > On Sun, Nov 20, 2016 at 11:54:47AM -0500, Martin Blais wrote: > > In a sense, you have more freedom with GPLv2 only. > > I also don't want to impose my views on others. > > I don't follow. > Here

Re: Notifications for upcoming events / recurring transactions in Fava

2016-11-23 Thread Martin Blais
BTW you're totally welcome to have those discussions here. (Personally I find it discussions more difficult to read from tickets on Github; I tend to ignore those by default, unless you call out for my attention specifically. Maybe it's just habit though.) On Mon, Nov 21, 2016 at 11:12 AM, Domi

Re: is Beancount GPL2 or GPL2+ ?

2016-11-23 Thread Martin Blais
On Mon, Nov 21, 2016 at 3:51 AM, Stefano Zacchiroli wrote: > On Sun, Nov 20, 2016 at 03:35:07PM -0500, Martin Blais wrote: > > > If you don't want to impose your views on others, GPL2+ is really the > > > only right choice here. > > > > That wouldn't

Re: Notifications for upcoming events / recurring transactions in Fava

2016-11-23 Thread Martin Blais
Thu, Nov 24, 2016, 12:56 Martin Blais wrote: > >> BTW you're totally welcome to have those discussions here. >> >> (Personally I find it discussions more difficult to read from tickets on >> Github; I tend to ignore those by default, unless you call out for m

Re: [beancount/fava] Commas in payees (#422)

2016-11-25 Thread Martin Blais
Can you say more about your treatment of multiple payees? Context: - If supporting multiple payees is something you guys do a lot, it should probably be part of the regular Beancount syntax eventually (and its grammar). - I've been thinking for a long time that "payee" makes more sense as an attrib

Re: is Beancount GPL2 or GPL2+ ?

2016-11-25 Thread Martin Blais
On Wed, Nov 23, 2016 at 9:30 PM, Stefano Zacchiroli wrote: > On Thu, Nov 24, 2016 at 12:10:22AM -0500, Martin Blais wrote: > > I think at the EOTD we just disagree on the license issue and let's > > just leave it at that. > > Except I didn't start this thread tryi

Re: Query based upon metadata

2016-11-29 Thread Martin Blais
The SQL query environment isn't really documented yet. Here's why: - I created this SQL tool in order to experiment and figure out what a good minimum set of functions for accounting would be needed. Turns out it works great so far; I've almost completely replace my own usage of bean-web by SQL co

Re: plugin proposal - file_ordering

2016-12-02 Thread Martin Blais
On Thu, Dec 1, 2016 at 10:42 PM, Dominik Aumayr wrote: > > - some sort of "beancount forge" emerges, possibly blessed by you, as > > central place where non-mainline plugins get contributed, with some > > sanity checking on namespace to avoid naming clashes > > We could create a separate reposi

Re: plugin proposal - file_ordering

2016-12-02 Thread Martin Blais
On Fri, Dec 2, 2016 at 12:06 AM, Stefano Zacchiroli wrote: > On Fri, Dec 02, 2016 at 09:42:29AM +0100, Dominik Aumayr wrote: > > We could create a separate repository under > > https://github.com/beancount for plugins from the community. > > Speaking of which, how about setting up > https://githu

Re: plugin proposal - file_ordering

2016-12-02 Thread Martin Blais
eers, On Fri, Dec 2, 2016 at 11:33 AM, Martin Blais wrote: > On Fri, Dec 2, 2016 at 12:06 AM, Stefano Zacchiroli > wrote: > >> On Fri, Dec 02, 2016 at 09:42:29AM +0100, Dominik Aumayr wrote: >> > We could create a separate repository under >> > https://git

Re: plugin proposal - file_ordering

2016-12-03 Thread Martin Blais
On Sat, Dec 3, 2016 at 1:48 AM, Stefano Zacchiroli wrote: > On Fri, Dec 02, 2016 at 11:28:18AM -1000, Martin Blais wrote: > > > > - people just publish them independently (or keep them private) > > > > Best to start this way IMHO. > > See http://furius.ca/beancou

Re: plugin proposal - file_ordering

2016-12-04 Thread Martin Blais
On Sun, Dec 4, 2016 at 12:29 AM, Stefano Zacchiroli wrote: > On Sat, Dec 03, 2016 at 09:21:35AM -1000, Martin Blais wrote: > > On Sat, Dec 3, 2016 at 1:48 AM, Stefano Zacchiroli > wrote: > > > > > > It would be useful at some point if you could document

Re: beancount/fava and market rates

2016-12-08 Thread Martin Blais
This is where the "weight" of a posting is currently calculated: https://bitbucket.org/blais/beancount/src/c796e5e34b8fbd05862847ff809c1240130c59e0/src/python/beancount/core/interpolate.py?at=default&fileviewer=file-view-default#interpolate.py-57 A function to compute the market value from an Inven

Re: Bitcoin accounting: controlling precision of inferred values

2016-12-09 Thread Martin Blais
On Thu, Dec 8, 2016 at 8:57 PM, Joel Shprentz wrote: > Beancount looks like it can track Bitcoin transactions, which require > eight decimal places. In my experiments with Beancount 2.0b13 running on > Ubuntu 12.0.4, the Bitcoin balances looked okay, but the dollar balances > were presented with

Re: Best way to handle stock exchanges

2016-12-15 Thread Martin Blais
On Thu, Dec 15, 2016 at 1:30 PM, Alex Johnstone wrote: > Hello, > > I have purchased an index fund and for some reason that fund has close and > converted to a different one. What's the best way to handle this conversion? > > Currently I have the following: > > > 2014-10-30 * "Fund Purchase" > As

Re: Allocating payments to customer accounts - newbie question

2016-12-15 Thread Martin Blais
> I want to use beancount to maintain customers and vendors, and so want to be able to allocate payments to invoices (and, by extension, use it to reconcile bank accounts). > I'm not sure if this has been solved - I couldn't find anything relating to it on Google. > In essence, this would mean that

Re: Best way to handle stock exchanges

2016-12-16 Thread Martin Blais
On Fri, Dec 16, 2016 at 2:21 AM, Stefano Zacchiroli wrote: > On Thu, Dec 15, 2016 at 09:41:28PM -0500, Martin Blais wrote: > > You can account for the rounding error explicitly: > > > > 2014-11-01 * "Fund Swap" > > Assets:Invest:VVUKEQ

Re: Addendum to payee discussion - what if I DO want multiple payees in a transaction?

2016-12-21 Thread Martin Blais
The bottom line is that you need to select some subset of rows, huh, postings. Anything that helps you disambiguate those postings from others is fair game. Subaccounts, metadata, whatevs. On Wed, Dec 21, 2016 at 10:13 PM, Oon-Ee Ng wrote: > Metadata! Yes that sounds like a good solution/workar

Re: beancount/fava and market rates

2016-12-21 Thread Martin Blais
d through bean-query > because I also have queries that pull together all my "retirement" savings > and give me one number that I'd like to have in market value as well. That > part could wait though. > > On Thu, Dec 8, 2016 at 8:28 AM Martin Blais wrote: > &g

Re: Gnucash "close books" functionality, remove transactions when import to beancount?

2016-12-22 Thread Martin Blais
In Beancount this procedure is something that is done automatically at reporting time by the software. We call the operation "clear" and there's no particular reason to stick with the antiquated method of you having to do this explicitly yourself. We have computers; the software can do that for you

Re: Gnucash "close books" functionality, remove transactions when import to beancount?

2016-12-24 Thread Martin Blais
che for the entire result. That by itself might make a multi-file configuration faster, without an explicit closing of each year, though parsing is only about %30 of processing time. On Fri, Dec 23, 2016 at 12:03 PM, Martin Blais wrote: > > In Beancount this procedure is something that i

Re: Gnucash "close books" functionality, remove transactions when import to beancount?

2016-12-24 Thread Martin Blais
24, 2016 at 4:59 PM, Oon-Ee Ng wrote: > Sounds very much like using your 'pad' command on 31st December every > year for each account? > > On Sun, Dec 25, 2016 at 5:33 AM, Martin Blais wrote: > > On Sat, Dec 24, 2016 at 4:24 PM, Oon-Ee Ng > wrote: > >> &

Re: Gnucash "close books" functionality, remove transactions when import to beancount?

2016-12-25 Thread Martin Blais
Just put all the plugins and options in the top-level file. On Sun, Dec 25, 2016 at 3:27 AM, Stefano Zacchiroli wrote: > On Sun, Dec 25, 2016 at 05:24:14AM +0800, Oon-Ee Ng wrote: > > Regarding performance, perhaps there can be a convention regarding > > splitting input files by year. > > A not

Re: Gnucash "close books" functionality, remove transactions when import to beancount?

2016-12-25 Thread Martin Blais
end of every month). > > On Mon, Dec 26, 2016 at 2:25 AM, Stefano Zacchiroli > wrote: > > On Sun, Dec 25, 2016 at 12:45:27PM -0500, Martin Blais wrote: > >> Just put all the plugins and options in the top-level file. > > > > My point is precisely that that doesn'

Re: Gnucash "close books" functionality, remove transactions when import to beancount?

2016-12-25 Thread Martin Blais
Tell me, how would you expect / like that the options and plugins directives be interpreted over multiple files? What seems to be a good behavior in your view? On Sun, Dec 25, 2016 at 1:25 PM, Stefano Zacchiroli wrote: > On Sun, Dec 25, 2016 at 12:45:27PM -0500, Martin Blais wrote: >

How Inventories Work

2016-12-25 Thread Martin Blais
I've finally completed the "How Inventories Work" document and opened it up for public access. Here: http://furius.ca/beancount/doc/booking Or equivalently: https://docs.google.com/document/d/11a9bIoNuxpSOth3fmfuIFzlZtpTJbvw-bPaQCnezQJs/ Enjoy, -- You received this message because you are subs

Re: Gnucash "close books" functionality, remove transactions when import to beancount?

2016-12-26 Thread Martin Blais
https://bitbucket.org/blais/beancount/issues/150/review-behaviour-of-options-and-plugins On Mon, Dec 26, 2016 at 2:51 AM, Stefano Zacchiroli wrote: > On Sun, Dec 25, 2016 at 02:35:08PM -0500, Martin Blais wrote: > > Tell me, how would you expect / like that the options an

Issue #150: Review behaviour of options and plugins directives in included files (blais/beancount)

2016-12-26 Thread Martin Blais
New issue 150: Review behaviour of options and plugins directives in included files https://bitbucket.org/blais/beancount/issues/150/review-behaviour-of-options-and-plugins Martin Blais: Minimum: There should be a warning if ignored. Better: Consider alternative semantics. See thread below

Re: metadata fields crowdsourcing

2017-01-01 Thread Martin Blais
Hi Martin, First question: Are you already doing the basic stuff with it? That is, are you setup to import and update your credit card, banking and investment accounts, and have you taken the habit of updating these transactions regularly? I would start there, that's the most important thing. I'd

Re: Releasing gnucash-to-beancount 1.0b0

2017-01-02 Thread Martin Blais
Awesome! :-) I added a link to it from the contrib page http://furius.ca/beancount/doc/contrib On Mon, Jan 2, 2017 at 12:40 AM, Henrique Bastos wrote: > Hi all! > > I've been digging into beancount and I'm very impressed! What an amazing > tool. Congrats to Martin and everybody involved. > > I

Re: beancount OFX; investment inventory

2017-01-05 Thread Martin Blais
On Thu, Jan 5, 2017 at 12:09 PM, Christopher Singley wrote: > Hi, I'm writing some accounting applications in Python, and thereby > stumbled upon beancount. > > It occurs to me that you might be interested in my OFX parser: > > https://github.com/csingley/ofxtools > > It handles a pretty decent s

Re: beancount OFX; investment inventory

2017-01-05 Thread Martin Blais
As mentioned earlier, my importer has no pretension of being exhaustive or compliant with "the standard." It's a piece of code I've used over the years that has evolved and served me well, however. Importers are generally rather unsavory code, to be honest. As long as they work on the subset of inp

Re: beancount OFX; investment inventory

2017-01-05 Thread Martin Blais
On Thu, Jan 5, 2017 at 11:54 PM, Martin Blais wrote: > On Thu, Jan 5, 2017 at 12:09 PM, Christopher Singley > wrote: > >> Hi, I'm writing some accounting applications in Python, and thereby >> stumbled upon beancount. >> >> It occurs to me that yo

Re: beancount OFX; investment inventory

2017-01-05 Thread Martin Blais
gs all have instances of "Cost" resolved to match exactly against existing positions. Therefore, the Inventory code can afford to be simple and just look for an exact match. I hope this helps, On Thursday, 5 January 2017 22:55:17 UTC-6, Martin Blais wrote: >> >> On Thu,

Re: beancount OFX; investment inventory

2017-01-06 Thread Martin Blais
On Fri, Jan 6, 2017 at 8:38 AM, Christopher Singley wrote: > > On Thursday, 5 January 2017 23:21:14 UTC-6, Martin Blais wrote: > >> There are two phases: parsing, and then booking. >> The parsing outputs incomplete costs, which are interpreted as aspects to >> be

Re: beancount OFX; investment inventory

2017-01-06 Thread Martin Blais
e...). A better way to build this is to keep the containers dumb and the algorithms outside, it's a much more flexible and elegant design. It's on purpose. > On Friday, 6 January 2017 09:50:54 UTC-6, Simon Michael wrote: >> >> Interesting discussion. >> >> hled

Re: beancount OFX; investment inventory

2017-01-07 Thread Martin Blais
On Sat, Jan 7, 2017 at 9:38 AM, Christopher Singley wrote: > > On Friday, 6 January 2017 23:12:51 UTC-6, Martin Blais wrote: > >> >> >>> Summing for cost [or cost*cost/unit] ties out to balance sheet >>> accounts. >>> >> >> What d

Re: beancount OFX; investment inventory

2017-01-08 Thread Martin Blais
On Sun, Jan 8, 2017 at 11:09 AM, Christopher Singley wrote: > > > On Saturday, 7 January 2017 14:33:43 UTC-6, Martin Blais wrote >> >> >> On a somewhat related note: I wonder if a new type of directive could be >> useful, similar to Balance assertions, that woul

Intro documentation

2017-01-08 Thread Martin Blais
I have just completed and opened the introduction to the double-entry method doc. Here: https://furius.ca/beancount/doc/intro -- 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

Upcoming changes...

2017-01-08 Thread Martin Blais
The Beancount documentation is now complete. I had to work through a *lot* of procrastination to get there :-) I'd like to do a few things before releasing a 2.0 version and move to semantic versioning thereafter. These may affect you, especially if you're packaging an installation. Please let me

Re: Upcoming changes...

2017-01-08 Thread Martin Blais
an see github's popularity. Note that I haven't handled tickets/PRs in a while, mainly because I'm focused on the boring parts of getting to a release, like finishing the docs. Once the release is done I want to spend a bit more time processing tickets and PRs and also some low-hanging fr

Re: Changing Extract Sort Order

2017-01-08 Thread Martin Blais
You got it. https://bitbucket.org/blais/beancount/commits/80164efbf9ae7d19c1e929f5b4809821e99a0b6d bean-extract --reverse ... On Sun, Jan 8, 2017 at 9:09 PM, wrote: > When a csv file is extracted, the transactions are printed out with the > oldest date first and the newest date last. I was w

Re: Python "Traceback (most recent call last)" on Syntax Error

2017-01-08 Thread Martin Blais
This looks like a bug. This should not happen. Beancount should never raise an uncaught exception. Could you copy your input, isolate the offending transaction, and wittle it down to the smallest file that will reproduce the problem? Replace numbers and other private things if needed. I'd appreci

Re: Intro documentation

2017-01-08 Thread Martin Blais
ficate. The certificate is > only valid for hg.furius.ca The certificate expired on 28/12/15 04:28. > The current time is 09/01/17 09:22. Error code: > SSL_ERROR_BAD_CERT_DOMAIN > > On Mon, Jan 9, 2017 at 6:26 AM, Martin Blais wrote: > > I have just completed and opened the introd

Re: Intro documentation

2017-01-09 Thread Martin Blais
Thanks for taking the time to read and comment. I'll try to clarify those parts which weren't clear. On Mon, Jan 9, 2017 at 8:27 AM, Simon Michael wrote: > On 1/8/17 2:26 PM, Martin Blais wrote: > >> I have just completed and opened the introduction to the double-entry

Re: Python "Traceback (most recent call last)" on Syntax Error

2017-01-09 Thread Martin Blais
iabilities:US:FidelityVisa -77.26 USD > Expenses:PersonalCare 42.49 > Expenses:Food:Groceries 34.77 > > * Expenses > 1957-06-25 open Expenses:Food:Groceries > 1957-06-25 open Expenses:PersonalCare > > > > On Sunday, January 8, 2017 at 11:41:48 PM UTC-5, Martin Blais wrote

Re: how do I debug plugins?

2017-01-12 Thread Martin Blais
Hi Martin, Sure. If you look under the beancount.plugins package, there are many many examples. You write your plugin in a library file, and unit tests in the other. For example, if your plugin is called "andersen", you would create these files next to each other: - andersen.py - ansersen_test.py

Thank you Fava

2017-01-14 Thread Martin Blais
I open my email this Saturday morning and there's something like 30 threads of Beancount-related emails from Fava users and developers from the github repo. I'm finding it incredible how much activity is going on with Fava, I can barely keep up reading all of it. Forgive me if I don't participate i

Re: Confused about operating currency and networth report

2017-01-14 Thread Martin Blais
Re. your first email: That's not great behavior from Beancount. Ideally at the very least it should issue a warning, or try to resolve the rates. In general, replacing the currency conversion with an unconditional graph search is too dangerous IMO, it could start getting really expensive withou

Re: beancount/fava and market rates

2017-01-15 Thread Martin Blais
; instead, use Inventory.reduce() with the functions from convert. - beancount.ops.prices has had to be moved to beancount.core to preserve the dependency tree. Full gory detail available in the CHANGES file. On Wed, Dec 21, 2016 at 11:59 PM, Martin Blais wrote: > I began working on it: > h

Re: [gratipay/finances] Port to Beancount (#35)

2017-01-15 Thread Martin Blais
I still don't understand what you wrote. I re-read it many times, but it still doesn't make sense to me. I'm not much of an accountant, and we're not using those words the same way. Here's how I would approach this problem should I have to do the same thing myself. Please note that I am not an acc

Re: Possible to add tag to a transaction made from a pad?

2017-01-18 Thread Martin Blais
It doesn't support this right now. You can use meta-data, however. Wouldn't be too difficult to add though. It would require a backwards-compatible change to the grammar and a bit of Python wrangling to transfer the tag form the directive to the generated transactions. On Wed, Jan 18, 2017 at

Issue #156: Internal error (to do with sorting/serializing) (blais/beancount)

2017-01-18 Thread Martin Blais
New issue 156: Internal error (to do with sorting/serializing) https://bitbucket.org/blais/beancount/issues/156/internal-error-to-do-with-sorting Martin Blais: This is an error in Beancount (although Fava could handle it better and still render the page). @blais: In this line (where

Re: price and cost

2017-01-22 Thread Martin Blais
This is the default behavior (explicit price directives only). If you want those added in as well, enable the implicit_prices plugin. https://bitbucket.org/blais/beancount/src/tip/src/python/beancount/plugins/implicit_prices.py On Sun, Jan 22, 2017 at 4:46 AM, francois PEGORY wrote: > hi all, >

Re: How do I generate cashflow reports rather than expense reports?

2017-01-24 Thread Martin Blais
On Tue, Jan 24, 2017 at 3:05 PM, Oon-Ee Ng wrote: > I'm looking to estimate an annual/monthly budget, and the simplest way > I thought of to do that was to look at my annual expense reports (I > have data for almost a decade) to see trends (spending on books and > education related stuff is way u

Re: "Entry point not found"

2017-02-02 Thread Martin Blais
I made a change to the installation: https://bitbucket.org/blais/beancount/commits/e1c97f1afadc969a5a128e3efe4cc113aef7c9b1?at=default The scripts apparently weren't appearing under Windows. When I tested under Linux, it failed, so I made the change condition on platform = Windows & not setuptools.

Re: "Entry point not found"

2017-02-02 Thread Martin Blais
ources/__init__.py", > line 1486, in run_script > > raise ResolutionError("No script named %r" % script_name) > > pkg_resources.ResolutionError: No script named 'bean-web' > > On Thursday, February 2, 2017 at 8:50:23 PM UTC-8, Martin Blais wrote: >

Re: org-mode + beancount, how to quickly reorganize?

2017-02-05 Thread Martin Blais
On Saturday, February 4, 2017 at 3:41:17 PM UTC-5, Oon-Ee Ng wrote: > > I'm a vim user, but figured going with beancount is as good a reason as > any to try emacs out (evil-mode though). > Congratulations! Have figured some basics out, but it seems slightly inefficient (especially > looking fo

Re: "Entry point not found"

2017-02-05 Thread Martin Blais
install .', and that didn't help, but 'pip3 install . > --upgrade' did. Now I'm running again. > > Thanks. > > On Thursday, February 2, 2017 at 9:22:12 PM UTC-8, Martin Blais wrote: >> >> Wait, how do you install it? >> Send me all the details. >

Re: Changing tags in a plugin? Help please

2017-02-18 Thread Martin Blais
entry.tags is supposed to be a set. If not set, an empty set. I reuse a constant in the codebase (see EMPTY_SET). TBH I'm not 100% sure what your question is. On Sat, Feb 18, 2017 at 5:04 AM, wrote: > Now it works. > This can flag cash accounts, but is now configurable to flag any > transact

Re: Changing tags in a plugin? Help please

2017-02-18 Thread Martin Blais
tagset | set (tagged,) > > But failed. So I wondered what you had as your 'empty set'. I'll have a > look for EMPTY_SET. > > Not sure if my adaptation of your example is of use to anyone. > > Regards > Paul > > > On Saturday, 18 February 2017 14:

Re: New to beancount - Question about alternative use - Calorie budget.

2017-02-28 Thread Martin Blais
You could but I don't see the point. Your body is more complex than this and doesn't conserve nutrients in a straightforward way. Plus you'd have only a small and fixed amount of categories anyway. You'd be better off using a spreadsheet and processing it with custom scripts using r or pandas. Doub

Re: New to beancount - Question about alternative use - Calorie budget.

2017-02-28 Thread Martin Blais
out it, do you have > suggestions about how i could i approach it. > Could i also convert/link financial transactions to calories? > > > On Tuesday, February 28, 2017 at 10:18:11 AM UTC+1, Martin Blais wrote: >> >> You could but I don't see the point. Your body is m

Re: New to beancount - Question about alternative use - Calorie budget.

2017-03-01 Thread Martin Blais
for me is that i want to use beancount with org mode. > > I want to embed my beancount transactions into org-journals. do you have > any links to examples of this? > > > > On Tuesday, February 28, 2017 at 2:25:09 PM UTC+1, Martin Blais wrote: >> >> Sure, you could abu

  1   2   3   4   5   6   7   8   9   10   >