#parsing #beancount #accounting

beancount-parser

A beancount file parser library for rust

35 stable releases

2.1.0 Jan 29, 2024
2.0.0 Jul 11, 2023
1.16.3 Jul 1, 2023
1.15.0 Mar 7, 2023
1.8.5 Nov 21, 2022

#1 in #copy-modify

Download history 62/week @ 2023-10-30 22/week @ 2023-11-06 20/week @ 2023-11-13 63/week @ 2023-11-20 125/week @ 2023-11-27 60/week @ 2023-12-04 18/week @ 2023-12-11 54/week @ 2023-12-18 90/week @ 2023-12-25 71/week @ 2024-01-01 28/week @ 2024-01-08 111/week @ 2024-01-15 28/week @ 2024-01-22 204/week @ 2024-01-29 20/week @ 2024-02-05 181/week @ 2024-02-12

435 downloads per month
Used in 2 crates

Unlicense

62KB
1K SLoC

beancount-parser

License Crates.io rustc Docs

A beancount file parser library for rust

Goal

Parse a beancount file into a rust data structure

Non-goals

Do not verify beancount rules, such as "transaction must balance to zero", "account must be open", balance assertions, etc.

Do not provide any "business" logic to analyze or manipulate the ledger. No balance, no currency translation, etc.

Alternatives

MSRV

The minimum supported rust version is currently 1.70.

It can be updated to a newer stable version when required, and that will not be considered a breaking change.

Unlicense

This is free and unencumbered software released into the public domain.

Anyone is free to copy, modify, publish, use, compile, sell, or distribute this software, either in source code form or as a compiled binary, for any purpose, commercial or non-commercial, and by any means.

In jurisdictions that recognize copyright laws, the author or authors of this software dedicate any and all copyright interest in the software to the public domain. We make this dedication for the benefit of the public at large and to the detriment of our heirs and successors. We intend this dedication to be an overt act of relinquishment in perpetuity of all present and future rights to this software under copyright law.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

For more information, please refer to http://unlicense.org/

Dependencies

~1.2–2MB
~38K SLoC