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 token position, print model, parse files recursively following `include`, ...) - Documentation - Support of out-of-line tags / links. I'll probably build higher level stuff in separate projects afterwards but I don't have a concrete plan yet (the first one might be a formatter that also supports sorting). Also feel free to build your own stuff! In relation to `rename_account(old_name, new_name)`, I personally feel it is a simple task where regex substitution does better than this library. This library would be more useful for slightly more complex cases like "I'd like to split all my expenses on tea, as marked by a posting meta, into a new subaccount" but those use cases tend to be very case-specific and difficult to generalize. But if you have some ideas what people might need in common, feel free to just build higher level tools on top of it! On Sunday, October 16, 2022 at 5:56:24 AM UTC+1 Red S wrote: > I played around with it for just a few minutes. Very nicely done, OP! > > I'm wondering what is next in line for developing this. Perhaps I'm > missing it, but the main thing I see is developing high level functions for > the functionality you described in your original post, and others like > Stefano brought up. For example, a high-level rename_account(old_name, > new_name) function. Curious what your thoughts are. > > On Saturday, October 15, 2022 at 9:35:23 PM UTC-7 Red S wrote: > >> For anyone like myself on Ubuntu 20.04 and needing to install everything >> to get this working: >> >> $ lsb_release -a # my host for reference >> No LSB modules are available. >> Distributor ID: Ubuntu >> Description: Ubuntu 20.04.5 LTS >> Release: 20.04 >> Codename: focal >> >> >> sudo apt update && sudo apt upgrade -y >> sudo apt install software-properties-common -y >> >> # >> https://askubuntu.com/questions/1398568/installing-python-who-is-deadsnakes-and-why-should-i-trust-them >> sudo add-apt-repository ppa:deadsnakes/ppa >> sudo apt install python3.10 python3.10-distutils python3.10-dev -y >> wget https://bootstrap.pypa.io/get-pip.py >> python3.10 get-pip.py >> >> pip3.10 install git+https://github.com/SEIAROTg/autobean >> git clone https://github.com/SEIAROTg/autobean.git >> export PYTHONPATH=`pwd`/autobean >> >> # Download main.py from >> https://replit.com/@SEIAROTg/autobeanrefactor-example#main.py >> python3.10 main.py >> >> -- 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 view this discussion on the web visit https://groups.google.com/d/msgid/beancount/70900a10-b9bd-4946-b004-8bc1c47f67b2n%40googlegroups.com.
