Re: autobean.refactor gist

2023-06-30 Thread Archimedes Smith
> are you open to accepting minor fixes to the documentation? Eg: _print_model(file) wasn’t defined in the examples page Fixed in 3b31cf47 . Issues and PRs are also very welcomed! > an idea to consi

Re: autobean.refactor gist

2023-06-30 Thread Archimedes Smith
Author of autobean-refactor here. Glad to see it being useful! Besides, there is now some documentation here: https://autobean-refactor.readthedocs.io/. On Thursday, June 29, 2023 at 11:11:52 PM UTC+1 Red S wrote: > Vanguard at some point started repeating their memo strings in some of > their

Re: autobean-format: deep cleanup, recursive formatting, entry sorting, and more

2023-04-04 Thread Archimedes Smith
_name=self.root_lexer.terminals_by_name) > lark.exceptions.UnexpectedToken: Unexpected token Token('LINK', > '^td-25441737451') at line 68996, column 73. > Expected one of: > * WHITESPACE > * _NEWLINE_INDENT_COMMENT > * INLINE_COMMENT >

Re: autobean-format: deep cleanup, recursive formatting, entry sorting, and more

2023-04-04 Thread Archimedes Smith
> terminals_by_name=self.root_lexer.terminals_by_name) > lark.exceptions.UnexpectedToken: Unexpected token Token('LINK', > '^td-25441737451') at line 68996, column 73. > Expected one of: > * WHITESPACE > * _NEWLINE_INDENT_COMMENT > * INLINE_COMM

Re: autobean-format: deep cleanup, recursive formatting, entry sorting, and more

2023-04-04 Thread Archimedes Smith
gt; terminals_by_name=self.root_lexer.terminals_by_name) > lark.exceptions.UnexpectedToken: Unexpected token Token('LINK', > '^td-25441737451') at line 68996, column 73. > Expected one of: > * WHITESPACE > * _NEWLINE_INDENT_COMMENT > * INLINE_

autobean-format: deep cleanup, recursive formatting, entry sorting, and more

2023-03-31 Thread Archimedes Smith
Hi beancounters, I've written yet another formatter for beancount, autobean-format , powered by my earlier project autobean-refactor , a library for parsing and programmatically manipulating beancount fi

Re: Share Split Decimal Precision

2023-03-14 Thread Archimedes Smith
Looks like the unit cost for each posting happens to be rounded towards different direction. A workaround is to manually adjust the last digit, for example: 2023-03-13 * "VIOV share split" Assets:1-Investments:Trad:IRA:Vanguard:William:VIOV -0.381 VIOV {{68.35 USD, 2021-12-27}} Asse

Re: Creating a price conversion with total price, in code

2023-01-23 Thread Archimedes Smith
As Dan said, this is not possible with the beancount v2 data model. It is however possible with autobean.refactor , which is not integrated with `beancount.ingest` or `beangulp` but is ready to use if all you are looking for is a way to structurall

Re: Method to convert posting accounts in already imported data?

2023-01-11 Thread Archimedes Smith
Hi, unlikely others here I have lots of personal experience with `autobean.refactor` as its author. This is definitely one of the target use case of `autobean.refactor` and I'm happy to help if there is any issue. Note that it's now extracted to a separate repository ( https://github.com/SEIAROT

Re: autobean.refactor: an ergonomic and lossless beancount editing library

2022-10-19 Thread Archimedes Smith
Glad it feels useful to you. I'd like to limit the scope of this project to AST manipulation and things currently on my plan are: - Performance improvements. Most operations currently unnecessarily takes O(number of token) time. - Stabilize the interface (e.g. simpler interface to get

Re: autobean.refactor: an ergonomic and lossless beancount editing library

2022-10-06 Thread Archimedes Smith
rsday, October 6, 2022 at 11:49:46 AM UTC+1 Stefano Zacchiroli wrote: > On Wed, Oct 05, 2022 at 02:39:31PM -0700, Archimedes Smith wrote: > > Anyone interested in this project? Any bug reports / suggestions would > be > > appreciated. > > This is an amazing project. I wante

autobean.refactor: an ergonomic and lossless beancount editing library

2022-10-05 Thread Archimedes Smith
Hi beancounters, One thing I have been wanting for long in beancount ecosystem is some tooling to programmatically *edit* my ledger. For example: - Formatting - Sort ledger entries, without losing formatting, comments, or pushtag. - Sort postings / meta. - Format non-

Re: Sharing household expenses

2022-08-17 Thread Archimedes Smith
Does this meet your need? Apart from using meta to declare the ownership of each posting / transaction, you can also declare the ownership of an account so it will be attributed to the right person by default. On Wednesday, Au

autobean.sorted: find out misplaced / misdated transactions

2021-06-15 Thread Archimedes Smith
Very often I make mistakes on dates. For example: - After copy-pasting transactions, I forgot to update their dates. - When a new year starts, I keep typing date in the previous year. This can be really confusing: I see my balance assertion failing, but out of so many transactions between

autobean.narration: per-posting narration, in comment

2021-05-08 Thread Archimedes Smith
Hi all, I'm sharing the plugin `autobean.narration` which I've personally been using a lot for shopping transactions. It allows me to annotate each posting in a concise way by populating per-posting narration metadata from inline comments. Example: 2000-01-01 * "bean party" Assets:BankOfBe