beancount / ledger2beancount

Ledger to Beancount text-based converter
GNU General Public License v3.0
85 stars 14 forks source link
accounting beancount conversion ledger plaintext

Build Status

ledger2beancount

A script to automatically convert Ledger-based textual ledgers to Beancount ones.

Conversion is based on (concrete) syntax, so that information that is not meaningful for accounting reasons but still valuable (e.g., comments, formatting, etc.) can be preserved.

ledger2beancount supports the file formats from:

Usage

ledger2beancount accepts input from stdin or from a file and will write the converted data to stdout. You can run ledger2beancount like this:

ledger2beancount test.ledger > test.beancount

Installation

Please see the installation information for dependencies and installation instructions.

Documentation

ledger2beancount comes with extensive documentation. You can also read the documentation online thanks to Read the Docs.

Features

The majority of features from ledger are supported by ledger2beancount. Here is an overview of fully supported, partly supported and unsupported features. Please refer to the user guide for more details on how to use ledger2beancount and to configure it to your needs.

Fully supported

Partly supported

Not supported

Supported features from hledger

Authors

License

This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with this program.  If not, see <http://www.gnu.org/licenses/>.

SPDX-License-Identifier: GPL-3.0-or-later