How to run this two plugin (zerosum and oneliner)

77 views
Skip to first unread message

Booster Hidrogen

unread,
Aug 3, 2020, 3:17:27 PM8/3/20
to Beancount
Hi, I want to use this plugin, after installing with pip, what next ? I cant find an examples how to use it, thanks.

  1. zerosum |  running a bean-check I've got > Error importing "plugins.beancount_plugins_redstreet.zerosum.zerosum": No module named 'plugins'
  2. oneliner | running python3 oneliner.py I've got > /usr/local/bin/python3: can't open file 'oneliner.py'

booster...@gmail.com

unread,
Aug 3, 2020, 6:41:00 PM8/3/20
to Beancount
for zerosum I try this export PYTHONPATH=$PYTHONPATH:/usr/local/lib/python3.8/site-packages, still got the error plugin.

Red S

unread,
Aug 4, 2020, 1:07:57 PM8/4/20
to Beancount
Zerosum: install via pip. Then do:

plugin "beancount_reds_plugins.zerosum.zerosum" "{
# your config here
}"

I just fixed the README and example. Check them out on GitHub.

https://github.com/redstreet/beancount_reds_plugins/blob/master/beancount_reds_plugins/zerosum/README.md
Invoking the plugin

https://github.com/redstreet/beancount_reds_plugins/blob/master/beancount_reds_plugins/zerosum/zerosum-example.beancount

booster...@gmail.com

unread,
Aug 4, 2020, 4:12:33 PM8/4/20
to Beancount
I've tried zerosum-example.beancount, the output :

> bean-query zerosum.beancount

Input file: "Beancount"

Ready with 18 directives (18 postings in 8 transactions).

beancount> 


beancount> balances

                account                  sum_posi

---------------------------------------- --------

Assets:Bank:Checking                       14 USD

Assets:Bank:Savings                       111 USD

Assets:Rebates                             50 USD

Assets:Reimbursements-Received:Workplace         

Assets:Reimbursements:Workplace             7 USD

Assets:ZeroSum-Matched:Bank-Transfers            

Assets:ZeroSum-Matched:Rebates                   

Liabilities:Credit-Card                  -582 USD

Expenses:Electronics                      400 USD

beancount> 




what is the expected changes ? I don't see any changes like new added "open" directives, am i missing something ?


Reply all
Reply to author
Forward
0 new messages