https://github.com/kevinzg/xhb2beancount
Convert files from Homebank to Beancount
https://github.com/kevinzg/xhb2beancount
beancount ledger personal-finances plaintext-accounting
Last synced: 16 days ago
JSON representation
Convert files from Homebank to Beancount
- Host: GitHub
- URL: https://github.com/kevinzg/xhb2beancount
- Owner: kevinzg
- License: mit
- Created: 2019-06-13T05:36:27.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2021-06-01T23:52:38.000Z (almost 4 years ago)
- Last Synced: 2025-03-13T01:04:39.723Z (about 1 month ago)
- Topics: beancount, ledger, personal-finances, plaintext-accounting
- Language: Python
- Size: 110 KB
- Stars: 1
- Watchers: 0
- Forks: 0
- Open Issues: 8
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# xhb2beancount
Homebank to Beancount converter.
## Install
I recommend using [pipx](https://pipxproject.github.io/pipx/).
```sh
pipx install xhb2beancount
```Or just create a virtualenv and run `pip install xhb2beancount`.
## Usage
```sh
xhb2beancount file.xhb > file.beancount
```If you have beancount installed you can format it with bean-format.
```sh
xhb2beancount file.xhb | bean-format -c 78 > file.beancount
```You can customize the conversion passing a config file as an argument.
```sh
xhb2beancount --config config.py file.xhb
```Copy the [default config file](https://github.com/kevinzg/xhb2beancount/blob/master/xhb2beancount/config.py) and edit it to suit your needs.
You can also use the option `--print-config-dicts` to print the categories, accounts, payees and tags
from your Homebank file as dictionares and copy them to your config file.```sh
xhb2beancount file.xhb --print-config-dicts
```