{"id":13523212,"url":"https://github.com/LaunchPlatform/beancount-parser","last_synced_at":"2025-04-01T00:30:59.934Z","repository":{"id":38183652,"uuid":"476501536","full_name":"LaunchPlatform/beancount-parser","owner":"LaunchPlatform","description":"Standalone Lark based Beancount syntax parser (not relying on Beancount library), MIT license","archived":false,"fork":false,"pushed_at":"2024-05-09T18:37:02.000Z","size":128,"stargazers_count":30,"open_issues_count":4,"forks_count":4,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-25T23:41:45.254Z","etag":null,"topics":["beancount","lark","parser","python"],"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/LaunchPlatform.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":"2022-03-31T22:46:54.000Z","updated_at":"2025-03-06T18:15:25.000Z","dependencies_parsed_at":"2024-05-09T19:47:30.438Z","dependency_job_id":null,"html_url":"https://github.com/LaunchPlatform/beancount-parser","commit_stats":{"total_commits":140,"total_committers":3,"mean_commits":"46.666666666666664","dds":0.07857142857142863,"last_synced_commit":"c9ec3ba02c00266d549fa830b9ca1bd4bc901b0d"},"previous_names":[],"tags_count":31,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LaunchPlatform%2Fbeancount-parser","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LaunchPlatform%2Fbeancount-parser/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LaunchPlatform%2Fbeancount-parser/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LaunchPlatform%2Fbeancount-parser/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/LaunchPlatform","download_url":"https://codeload.github.com/LaunchPlatform/beancount-parser/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246563315,"owners_count":20797441,"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","lark","parser","python"],"created_at":"2024-08-01T06:00:57.120Z","updated_at":"2025-04-01T00:30:59.564Z","avatar_url":"https://github.com/LaunchPlatform.png","language":"Python","readme":"# beancount-parser [![CircleCI](https://circleci.com/gh/LaunchPlatform/beancount-parser/tree/master.svg?style=svg)](https://circleci.com/gh/LaunchPlatform/beancount-parser/tree/master)\nStandalone [Lark](https://github.com/lark-parser/lark) LALR(1) based Beancount syntax parser (not relying on Beancount library), MIT license\n\nPlease also checkout out [beancount-black](https://github.com/LaunchPlatform/beancount-black), an opinionated beancount code formatter based on beancount-parser.\n\n## Features\n\n- **MIT licensed** - the only dependency is [Lark](https://github.com/lark-parser/lark)\n- **Extremely fast** - LALR(1) is used\n- **Section awareness** - emac org symbol mark `*` will be parsed\n- **Comment awareness** - comments will be parsed\n- **Not a validator** - it does not validate beancount syntax, invalid beancount syntax may still pass the parsing\n\n# Sponsor\n\nThe original project beancount-parser was meant to be an internal tool built by [Launch Platform LLC](https://launchplatform.com) for \n\n\u003cp align=\"center\"\u003e\n  \u003ca href=\"https://beanhub.io\"\u003e\u003cimg src=\"https://github.com/LaunchPlatform/beancount-black/raw/master/assets/beanhub.svg?raw=true\" alt=\"BeanHub logo\" /\u003e\u003c/a\u003e\n\u003c/p\u003e\n\nA modern accounting book service based on the most popular open source version control system [Git](https://git-scm.com/) and text-based double entry accounting book software [Beancount](https://beancount.github.io/docs/index.html).\nWe realized adding new entries with BeanHub automatically over time makes the beancount file a mess.\nSo, a strong code formatter is needed.\nWhile SaaS businesses won't be required to open-source an internal tool like this, we still love that the service is only possible because of the open-source tool we are using.\nIt would be greatly beneficial for the community to access a tool like this, so we've decided to open-source it under an MIT license. We hope you find this tool useful 😄\n\n## Install\n\nTo install the parser, simply run\n\n```bash\npip install beancount-parser\n```\n\n## Usage\n\nIf you want to run the parse beancount code, you can do this\n\n```python\nimport io\n\nfrom beancount_parser.parser import make_parser\n\nparser = make_parser()\ntree = parser.parse(beancount_content)\n# do whatever you want with the tree here\n```\n\n## Feedbacks\n\nFeedbacks, bugs reporting or feature requests are welcome 🙌, just please open an issue.\nNo guarantee we have time to deal with them, but will see what we can do.\n","funding_links":[],"categories":["Tools"],"sub_categories":["Misc"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FLaunchPlatform%2Fbeancount-parser","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FLaunchPlatform%2Fbeancount-parser","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FLaunchPlatform%2Fbeancount-parser/lists"}