beancount_bot 的 Costflow 语法插件
使用本插件之前,需要保证安装 Node.js(Node 版本需 >= 14) 并且安装路径位于 PATH 中。
- 安装:
pip install beancount_bot_costflow
- 在 beancount_bot 配置文件的
transaction.message_dispatcher
增加如下配置:
transaction:
# ...
message_dispatcher:
# ...
# 必须添加在最后一个位置
- class: 'beancount_bot_costflow.CostflowDispatcher'
args:
costflow_config: 'costflow.json'
注意,你仍需要自行配置一份 costflow.json
作为 Costflow 语法的配置。参阅:
- Costflow 文档:https://www.costflow.io/docs/syntax/
- Costflow Playground:https://playground.costflow.io
Costflow 部分(costflow-parser.js
)源码位于:kaaass/costflow-parser-simple-wrapper
与本仓库同采用 GPLv3 协议。