{"id":45468624,"url":"https://github.com/fdavies93/seneca","last_synced_at":"2026-02-22T10:19:13.471Z","repository":{"id":224479644,"uuid":"763017789","full_name":"fdavies93/seneca","owner":"fdavies93","description":"CLI tool to convert Wise transactions into Beancount format with multi-currency","archived":false,"fork":false,"pushed_at":"2024-12-08T14:24:28.000Z","size":12,"stargazers_count":4,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2024-12-08T15:23:57.658Z","etag":null,"topics":["accounting","beancount","currency","finance","wise"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/fdavies93.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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":"2024-02-25T10:42:39.000Z","updated_at":"2024-06-23T09:55:29.000Z","dependencies_parsed_at":"2024-12-08T15:32:16.626Z","dependency_job_id":null,"html_url":"https://github.com/fdavies93/seneca","commit_stats":null,"previous_names":["fdavies93/seneca"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/fdavies93/seneca","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fdavies93%2Fseneca","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fdavies93%2Fseneca/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fdavies93%2Fseneca/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fdavies93%2Fseneca/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/fdavies93","download_url":"https://codeload.github.com/fdavies93/seneca/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fdavies93%2Fseneca/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29709152,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-22T05:59:28.568Z","status":"ssl_error","status_checked_at":"2026-02-22T05:58:46.208Z","response_time":110,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: 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":["accounting","beancount","currency","finance","wise"],"created_at":"2026-02-22T10:19:12.897Z","updated_at":"2026-02-22T10:19:13.459Z","avatar_url":"https://github.com/fdavies93.png","language":"Python","funding_links":["https://www.buymeacoffee.com/fdavies93k"],"categories":[],"sub_categories":[],"readme":"\u003ca href=\"https://www.buymeacoffee.com/fdavies93k\" target=\"_blank\"\u003e\u003cimg src=\"https://www.buymeacoffee.com/assets/img/custom_images/orange_img.png\" alt=\"Buy Me A Coffee\" style=\"height: 41px !important;width: 174px !important;box-shadow: 0px 3px 2px 0px rgba(190, 190, 190, 0.5) !important;-webkit-box-shadow: 0px 3px 2px 0px rgba(190, 190, 190, 0.5) !important;\" \u003e\u003c/a\u003e\n\n# Seneca\n\n*A script to import from Wise (formerly Transferwise) CSVs to [beancount](https://github.com/beancount/beancount) format. Named after Seneca the Younger, a stoic philosopher who became wealthy by pioneering commodities trading and finance. I.e. a Wise Beancounter.*\n\nThe script can successfully log multi-legged outbound transactions including currency transfers. I use it for my own small business accounting needs.\n\nImports from [Wise Transfers](https://wise.com/help/articles/2489458/how-do-i-download-a-list-of-my-transfers) CSV format. Note that this is a relatively new format and **doesn't include card transactions before 2023-10-27**. For that you'll need to use the older and less rich [Wise Statement](https://wise.com/help/articles/2736049/how-do-i-download-a-statement) format, which this tool doesn't support as of 2024-02-28.\n\nIf you'd like me to support additional formats, add more options, or notice any errors, please file an issue and consider [buying me a coffee](https://www.buymeacoffee.com/fdavies93k).\n\nThe project is **open for pull requests**.\n\n## Quickstart\n\nGit clone this repo and navigate to the folder.\n\n```sh\npython3 -m venv venv\n. ./venv/bin/activate\npip install -r requirements.txt \npython seneca.py --input wise_transactions.csv --map categories.json\n```\n\n## Options\n\nNote that the script prints to `stdout`. This is by design so that you can use `\u003e` and `\u003e\u003e` to pipe into different files.\n\n### `--input`\n\nThe Wise transactions CSV file to import from. E.g. `input/business-wise.csv`\n\n### `--map`\n\nA JSON file. This lets you automatically set the category of both inbound and outbound transactions to this account, which is very helpful when processing a large number of transactions. It uses the `target_name` and `source_name` columns from the Wise CSV as the key and your desired category as the key. For example:\n\n```json\n{\n  \"Spotify\": \"Expenses:Subscriptions\",\n  \"Acme Corp\": \"Income:Salary\"\n}\n```\n\nIf there's no category found then the script will allocate `Income:Unassigned` or `Expenses:Unassigned` to your transactions.\n\n### `--sort`\n\nA switch to decide the order in which transactions are sorted, by date. If the value is `desc`, outputs in descending order (most recent date first). For all other values, and by default, outputs in ascending order by date.\n\n```text\npython seneca.py -i input/transactions.csv --sort desc\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffdavies93%2Fseneca","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffdavies93%2Fseneca","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffdavies93%2Fseneca/lists"}