{"id":34175952,"url":"https://github.com/sercxanto/go-homebank-csv","last_synced_at":"2026-03-10T09:40:00.910Z","repository":{"id":213325913,"uuid":"733644977","full_name":"sercxanto/go-homebank-csv","owner":"sercxanto","description":"Converts bank specific CSV files to HomeBank CSV format","archived":false,"fork":false,"pushed_at":"2026-01-17T11:10:14.000Z","size":211,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2026-01-17T20:49:36.923Z","etag":null,"topics":["csv","finance","go","golang","homebank"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/sercxanto.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2023-12-19T19:52:29.000Z","updated_at":"2026-01-17T11:10:15.000Z","dependencies_parsed_at":"2024-06-01T11:02:56.700Z","dependency_job_id":"65a4bfe3-e0cd-4c78-83c5-d24f9db9d57f","html_url":"https://github.com/sercxanto/go-homebank-csv","commit_stats":null,"previous_names":["sercxanto/go-homebank-csv"],"tags_count":12,"template":false,"template_full_name":null,"purl":"pkg:github/sercxanto/go-homebank-csv","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sercxanto%2Fgo-homebank-csv","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sercxanto%2Fgo-homebank-csv/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sercxanto%2Fgo-homebank-csv/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sercxanto%2Fgo-homebank-csv/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sercxanto","download_url":"https://codeload.github.com/sercxanto/go-homebank-csv/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sercxanto%2Fgo-homebank-csv/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30328895,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-10T05:25:20.737Z","status":"ssl_error","status_checked_at":"2026-03-10T05:25:17.430Z","response_time":106,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["csv","finance","go","golang","homebank"],"created_at":"2025-12-15T12:21:39.553Z","updated_at":"2026-03-10T09:40:00.899Z","avatar_url":"https://github.com/sercxanto.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# go-homebank-csv\n\n![Build and test](https://github.com/sercxanto/go-homebank-csv/actions/workflows/build-and-test.yml/badge.svg)\n![golangci-lint](https://github.com/sercxanto/go-homebank-csv/actions/workflows/golangci-lint.yml/badge.svg)\n[![Go Reference](https://pkg.go.dev/badge/github.com/sercxanto/go-homebank-csv.svg)](https://pkg.go.dev/github.com/sercxanto/go-homebank-csv)\n[![codecov](https://codecov.io/gh/sercxanto/go-homebank-csv/graph/badge.svg?token=HB6HHXV7X6)](https://codecov.io/gh/sercxanto/go-homebank-csv)\n\nThis tool converts \"comma separated values\" (CSV) files from several banks to the\n[\"Transaction import CSV format\"](http://homebank.free.fr/help/misc-csvformat.html)\nsupported by [HomeBank](http://homebank.free.fr/).\n\nHomeBank is a crossplatform free and easy accounting software.\n\n## Supported formats\n\n* MoneyWallet\n  * [MoneyWallet](https://f-droid.org/en/packages/com.oriondev.moneywallet) is\n    an expense manager for Android. go-homebank-csv supports parsing and\n    converting the CSV export format.\n* Barclaycard\n  * Not exactly CSV, this is the excel export format of Barclays VISA card as\n    found on [www.barclays.de](https://www.barclays.de).\n* Volksbank\n  * This is the CSV export format used by a German Volksbank.\n    Most probably all Volksbanks have the same format.\n* Comdirect\n  * This is the giro account CSV export format used by [www.comdirect.de](https://www.comdirect.de).\n    It has some weird encoding and the internal structure changes often.\n* DKB\n  * This is the giro account CSV export format used by [www.dkb.de](https://www.dkb.de).\n\n## Usage\n\nList supported formats:\n\n```shell\ngo-homebank-csv list-formats\n```\n\n### Convert single files\n\nConvert one file using format autodetection:\n\n```shell\ngo-homebank-csv convert input-file.csv output-file.csv\n```\n\nConvert one file using known format:\n\n```shell\ngo-homebank-csv convert --format=MoneyWallet input-file.csv output-file.csv\n```\n\n### Batch convert a folder of files\n\nYou can autoconvert a defined set of folders. To use this feature a config file\nis needed.\n\nThe config file is expected at the following location:\n\n```text\n$XDG_CONFIG_HOME/go-homebank-csv/config.yml\n```\n\nFor the different operating system this is usually at the following places:\n\n* Linux: `~/.config/go-homebank-csv/config.yml`\n* MacOS: `~/Library/Application Support/go-homebank-csv/config.yml`\n* Windows: `\"LocalAppData\"/go-homebank-csv/config.yml`\n\n#### Config file format\n\nA minimal version of a config file looks like the following:\n\n```yaml\nbatchconvert:\n  sets:\n  - name: Bank 1\n    inputdir: /home/user/finance/barclaycard/xlsx\n    outputdir: /home/user/finance/barclaycard/homebankcsv\n```\n\nThe fields have the following meaning:\n\n* `name`: The name of the entry. The name must be unique.\n* `inputdir`: Where to search for files (non recursively).\n* `outputdir`: Where to place the converted files.\n\nThe minimal version can be amended by optional settings:\n\n```yaml\nbatchconvert:\n  sets:\n  - name: Bank 1\n    inputdir: /home/user/finance/barclaycard/xlsx\n    outputdir: /home/user/finance/barclaycard/homebankcsv\n    fileglobpattern: \"*.xlsx\"\n    filemaxagedays: 3\n    format: Barclaycard\n```\n\nThe additional fields have the following meaning:\n\n* `fileglobpattern`: Narrow down the files to search for in `inputdir` by this pattern.\n   The glob pattern follows the one from the package [path/filepath](https://pkg.go.dev/path/filepath#Match)\n   from golang standard library.\n* `filemaxagedays`: Narrow down the files to search for in `inputdir` by specifying\n   a maximum age in days\n   (modification timestamp) in days. Only positive numbers are allowed.\n* `format`: Specify the exact format to be expected. If not given an probably\n   error-prone and time-consuming autodetection is done.\n\n##### Portable paths\n\nPaths inside the config file can use a small set of shortcuts so that the same\nconfiguration works on different machines:\n\n* Prefix with `~` to expand to the current user's home directory (for example `~/finance/inbox`).\n* Use `xdg:documents` or `xdg:documents/...` for the per-user documents directory.\n* Use `xdg:downloads` or `xdg:downloads/...` for the per-user downloads directory.\n* Use `xdg:desktop` or `xdg:desktop/...` for the per-user desktop directory.\n\nThese shortcuts rely on the platform specific resolution provided by [`adrg/xdg`](https://pkg.go.dev/github.com/adrg/xdg)\nand no other environment variables are expanded.\n\n#### Command line example\n\nWith a config file like this:\n\n```yaml\nbatchconvert:\n  sets:\n  - name: Bank 1\n    inputdir: /home/user/finance/barclaycard/xlsx\n    outputdir: /home/user/finance/barclaycard/homebankcsv\n    fileglobpattern: \"*.xlsx\"\n    filemaxagedays: 3\n    format: Barclaycard\n  - name: Bank 2\n    inputdir: ~/finance/volksbank/csv\n    outputdir: ~/finance/volksbank/homebankcsv\n    fileglobpattern: \"*.csv\"\n    filemaxagedays: 2\n    format: Volksbank\n```\n\nCall the sub-command `batchconvert` like this:\n\n```shell\ngo-homebank-csv batchconvert\n```\n\n`go-homebank-csv` will do the following:\n\n* Search in directory \"/home/user/finance/barclaycard/xlsx\" for files matching \"*.xlsx\"\n  which have been modified not longer ago than 3 days\n* Check if a file with the same basename is already at \"/home/user/finance/barclaycard/homebankcsv\"\n* If this is not the case convert the found files using the same base name with\n  an extention \".csv\" and store them at \"/home/user/finance/barclaycard/homebankcsv\"\n* Search in directory \"/home/user/finance/volksbank/csv\" for files matching \"*.csv\"\n  which have been modified not longer ago than 2 days\n* Check if a file with the same basename is already at \"/home/user/finance/volksbank/homebankcsv\"\n* If this is not the case convert the found files using the same base name with\n  an extention \".csv\" and store them at \"/home/user/finance/volksbank/homebankcsv\"\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsercxanto%2Fgo-homebank-csv","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsercxanto%2Fgo-homebank-csv","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsercxanto%2Fgo-homebank-csv/lists"}