{"id":17811597,"url":"https://github.com/moba/bank-transaction-stats","last_synced_at":"2025-04-02T07:14:46.608Z","repository":{"id":139392001,"uuid":"56631649","full_name":"moba/bank-transaction-stats","owner":"moba","description":"prints some ASCII statistics about transactions from CSV-MT940 and aqbanking CSV bank statement exports","archived":false,"fork":false,"pushed_at":"2019-02-18T20:26:11.000Z","size":9,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-07T21:42:59.097Z","etag":null,"topics":["aqbanking","banks","csv","hbci","mt940"],"latest_commit_sha":null,"homepage":"","language":"Python","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/moba.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"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}},"created_at":"2016-04-19T21:00:21.000Z","updated_at":"2020-05-12T18:15:56.000Z","dependencies_parsed_at":null,"dependency_job_id":"f9899341-ee9e-427b-920a-a7ee93aa1f58","html_url":"https://github.com/moba/bank-transaction-stats","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/moba%2Fbank-transaction-stats","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/moba%2Fbank-transaction-stats/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/moba%2Fbank-transaction-stats/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/moba%2Fbank-transaction-stats/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/moba","download_url":"https://codeload.github.com/moba/bank-transaction-stats/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246769968,"owners_count":20830771,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":["aqbanking","banks","csv","hbci","mt940"],"created_at":"2024-10-27T15:52:30.131Z","updated_at":"2025-04-02T07:14:46.584Z","avatar_url":"https://github.com/moba.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# bank-transaction-stats.py\n\nThis is a script that I use to generate statistics over CSV files exported from a bank account at a German Sparkasse bank that I don't have EBICS/HBCI access to, and for CSV exports from [aqbanking](https://www.aquamaniac.de/sites/aqbanking/) (\"full\" profile).\n\nThe script first tries to parse the CSV using the aqbanking format, and then falls back to the variant of \"CSV-MT940\" used by that German Sparkasse. It relies on some named headers, and, since Sparkasse exports the amount with German currency divider (10,00€ instead of 10.00€), it will very likely need some adaptation for different banks and different currencies even if they use the same \"CSV format\".\n\nPatches that add support for more banks/formats welcome.\nhttps://github.com/moba/bank-transaction-stats\n\n## output/usage example\n(no this is not real data)\n\n```\n❯ ./bank-transaction-stats.py transactions-*.csv 2140.20\nFrom 2016-01-04 to 2016-04-18\n\nStart balance: 2140.20\nEnd balance: 7526.65\n\nTotal number of transactions: 79\nMean amount: 68.18\n\ndate       |      total | number of transactions \n---------------------------------------------\n04.01.16   |     2442.5 | *************** (15)\n05.01.16   |     537.31 | *********** (11)\n07.01.16   |     393.12 | ******** (8)\n08.01.16   |       35.0 | ** (2)\n11.01.16   |      115.0 | **** (4)\n12.01.16   |      382.5 | **** (4)\n13.01.16   |       65.0 | ** (2)\n15.01.16   |       35.0 | ** (2)\n18.01.16   |       50.0 | * (1)\n19.01.16   |       20.0 | * (1)\n22.01.16   |       50.0 | * (1)\n26.01.16   |      575.0 | **** (4)\n27.01.16   |     101.72 | ** (2)\n29.01.16   |      100.0 | * (1)\n10.02.16   |       80.0 | * (1)\n11.02.16   |       10.0 | * (1)\n15.02.16   |       10.0 | * (1)\n17.02.16   |      105.0 | ** (2)\n01.03.16   |      106.8 | **** (4)\n07.03.16   |       30.0 | *** (3)\n08.03.16   |      105.0 | ** (2)\n01.04.16   |        2.5 | * (1)\n04.04.16   |       10.0 | ** (2)\n05.04.16   |        5.0 | * (1)\n07.04.16   |        5.0 | * (1)\n15.04.16   |       10.0 | * (1)\n18.04.16   |        5.0 | * (1)\n---------------------------------------------\n\namount     | count | as bar\n---------------------------------------------\n52.0       | 1     | #\n55.0       | 1     | #\n60.0       | 4     | ####\n70.0       | 1     | #\n73.81      | 1     | #\n75.0       | 11    | ###########\n80.0       | 2     | ##\n91.72      | 1     | #\n100.0      | 36    | ####################################\n120.0      | 1     | #\n130.0      | 1     | #\n134.12     | 1     | #\n150.0      | 2     | ##\n200.0      | 12    | ############\n250.0      | 1     | #\n256.0      | 1     | #\n300.0      | 2     | ##\n---------------------------------------------\n\ncountry   | number of transactions\n---------------------------------\nBE        | 1\nCH        | 5\nNL        | 3\nDE        | 55\nIT        | 2\nAT        | 5\nFI        | 1\nES        | 2\n?         | 5\n---------------------------------\n```\n\n## Licensed under MIT\n\n```\nMoritz Bartl (c) 2016-2017\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n \nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n \nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmoba%2Fbank-transaction-stats","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmoba%2Fbank-transaction-stats","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmoba%2Fbank-transaction-stats/lists"}