Here are a pair of beancount importers:
- For the F-droid Budget app
- For a bank csv
Thank you to mterwill, I took his gist as reference
- If the Budget envelope starts with
Debt:
it will count as an Asset else it will be counted as an Expense - It will assume
Assets:Cash
as the default second transaction posting
The CSV must have the following columns:
- empty column
- Execution date of the transfer
- Date of value
- Description
- Import
- Global account amount
The name of the file must be "Data-{{ asset_account_name }}.csv"
You can specify a yaml of rules to match by default in
~/.config/beancount-importers/bank_alias_rules.yml
, for example:
- regexp: '.*RISEUP.*'
account: 'Expenses:Bills:Email'
payee: 'Riseup'
description: 'Donation to Riseup'
Right now you must fill all the keys for each dictionary, or it won't work.
You can use pip
pip install https://github.com/jamatute/beancount-importers
Or clone the repository and install it
git clone https://github.com/jamatute/beancount-importers
cd beancount-importers
pip3 install -r requirements.txt
python3 setup.py install
bean-extract config.py /path/to/budget.csv
If you want to test the importers run:
pip3 install -r requirements-tests.txt
pytest
To check the coverage run:
pytest --cov beancount_importers tests
beancount-importers
was created by jamatute
GNU General Public License v2.0
See COPYING to see the full text.