{"id":22124595,"url":"https://github.com/nblock/beancount-nblock","last_synced_at":"2025-07-25T15:32:02.839Z","repository":{"id":57414408,"uuid":"164128806","full_name":"nblock/beancount-nblock","owner":"nblock","description":"A collection of beancount plugins","archived":false,"fork":false,"pushed_at":"2024-09-07T08:04:04.000Z","size":18,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-11-19T08:44:36.307Z","etag":null,"topics":["beancount","fava","plugin"],"latest_commit_sha":null,"homepage":null,"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/nblock.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}},"created_at":"2019-01-04T16:15:58.000Z","updated_at":"2024-09-07T08:04:08.000Z","dependencies_parsed_at":"2022-08-26T20:43:09.229Z","dependency_job_id":null,"html_url":"https://github.com/nblock/beancount-nblock","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/nblock%2Fbeancount-nblock","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nblock%2Fbeancount-nblock/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nblock%2Fbeancount-nblock/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nblock%2Fbeancount-nblock/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/nblock","download_url":"https://codeload.github.com/nblock/beancount-nblock/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":227590119,"owners_count":17790446,"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":["beancount","fava","plugin"],"created_at":"2024-12-01T15:48:38.442Z","updated_at":"2025-07-25T15:32:02.825Z","avatar_url":"https://github.com/nblock.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# beancount-nblock\nA collection of beancount plugins.\n\n## unlinked_documents: find missing links between documents and transactions\nIt might be desireable to enforce a link between certain kind of documents and\na corresponding transaction. Typical use cases are incoming and outgoing\ninvoices where a receipt (referenced via a document directive) should have a\nmatching transaction.\n\nThe following is valid, according to this plugin:\n\n```\n2019-01-01 * \"Payee\" \"A description\" ^ER-some-id\n  Assets:Bank:Checking     300.00 EUR\n  Expenses:Home\n\n2019-01-01 document Assets:Bank:Checking \"/path/to/receipt.pdf\" ^ER-some-id\n```\n\nAn error is generated in case either of the above directives is missing.\n\n### Usage\nAdd the following to your beancount file:\n```\nplugin \"beancount_nblock.unlinked_documents\"\n```\n\nThe default list of patterns is: `AR-*`, `ER-*`. A custom list of patterns may\nbe configured via:\n```\nplugin \"beancount_nblock.unlinked_documents\" \"PATTERN-FOO-*,PATTERN-BAR-*\n```\n\n## repel: avoid specific combinations of tags and accounts in a single transaction\nCheck for combinations of tag and account names and raise an error in case they\noccur together in a transaction.\n\nConsider the tag/account pair `(FOO, Assets:Checking)` where `FOO` is a tag and\n`Assets:Checking` is an account name. The following transaction is flagged by\nthe plugin:\n\n```\n2019-01-01 * \"Payee\" \"A description\" #FOO\n  Assets:Checking     300.00 EUR\n  Expenses:Home\n```\n\n### Usage\nAdd the following to your beancount file:\n```\nplugin \"beancount_nblock.repel\" \"PLUGIN CONFIGURATION\"\n```\n\nwhere `PLUGIN CONFIGURATION` is a list of tag/account tuples such as `\"[('FOO',\n'Assets:Checking')]\"`. The tag `FOO` should not occur in the same transaction as\nthe account `Assets:Checking`.\n\n## file_ordering: enforces strict date ordering within individual Beancount files\nThis Beancount plugin validates that each Beancount file that contains 2 or more\ntransactions is strictly chronologically ordered. I.e., no transaction that\noccurs later in a given file (in file order) has a date that occurs earlier (in\ncalendar order) than a previous transaction in the same file.\n\nWhile Beancount by default doesn't care about file ordering of directives,\nensuring in-file date ordering on transaction is a useful check to avoid certain\nkinds of booking errors, e.g., copy-pasting an old transaction, forgetting to\nbump its date.\n\nThis plugin was developed by Stefano Zacchiroli and released under GNU General\nPublic License (GPL), version 2 or above. It was incorporated into this\nrepository from \u003chttps://github.com/zacchiro/beancount-plugins-zack\u003e at commit\na86a50bbd7fcc6e202db35dce3ca3af0a504493c to simplify distribution and\ninstallation via pip.\n\n### Usage\nAdd the following to your beancount file:\n```\nplugin \"beancount_nblock.file_ordering\"\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnblock%2Fbeancount-nblock","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnblock%2Fbeancount-nblock","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnblock%2Fbeancount-nblock/lists"}