#beancount #parser #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

#414 in Parser implementations

Download history 5/week @ 2024-01-11 12/week @ 2024-01-18 8/week @ 2024-01-25 61/week @ 2024-02-15 71/week @ 2024-02-22 11/week @ 2024-02-29 11/week @ 2024-03-07 10/week @ 2024-03-14

140 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