All Projects → beancount → ledger2beancount

beancount / ledger2beancount

Licence: GPL-3.0 license
Ledger to Beancount text-based converter

Programming Languages

perl
6916 projects
shell
77523 projects
Dockerfile
14818 projects
HTML
75241 projects
Makefile
30231 projects

Projects that are alternatives of or similar to ledger2beancount

Hledger
A reliable, user-friendly Plain Text Accounting tool with command line, terminal and web interfaces.
Stars: ✭ 1,887 (+2895.24%)
Mutual labels:  accounting, ledger, plaintext
Awesome Ledger
⭐️ Useful resources for the Ledger command-line accounting system
Stars: ✭ 99 (+57.14%)
Mutual labels:  accounting, ledger, plaintext
Ledger
Command line double-entry accounting program
Stars: ✭ 272 (+331.75%)
Mutual labels:  accounting, ledger, plaintext
knut
knut is an efficient plain text accounting tool with support for multiple currencies and valuation.
Stars: ✭ 40 (-36.51%)
Mutual labels:  accounting, ledger
nledger
.Net Ledger: Double-Entry Accounting System
Stars: ✭ 141 (+123.81%)
Mutual labels:  accounting, ledger
beancount-mobile
Your personal finance manager. iOS and Android App for Beancount.io
Stars: ✭ 75 (+19.05%)
Mutual labels:  ledger, beancount
beancount-boilerplate-cn
docs.google.com/spreadsheets/d/1jnds3X_-RSTN4ATuOFV-v6tar0KfAla88vC43Vq6ubc/edit#gid=0
Stars: ✭ 186 (+195.24%)
Mutual labels:  ledger, beancount
Ledger
Double-entry accounting system with a command-line reporting interface
Stars: ✭ 4,062 (+6347.62%)
Mutual labels:  accounting, ledger
awesome-beancount
Awesome Beancount Resources
Stars: ✭ 114 (+80.95%)
Mutual labels:  accounting, beancount
Transity
Keep track of your 💵, 🕘, 🐖, 🐄, 🍻 on your command line
Stars: ✭ 528 (+738.1%)
Mutual labels:  accounting, ledger
Hledger Mode
An Emacs major mode for Hledger
Stars: ✭ 142 (+125.4%)
Mutual labels:  accounting, ledger
Abandon
😌 Simple and Robust Accounting
Stars: ✭ 155 (+146.03%)
Mutual labels:  accounting, ledger
r-ledger
R package for importing data from plain text accounting files
Stars: ✭ 34 (-46.03%)
Mutual labels:  ledger, beancount
Plaintextaccounting.github.io
The plaintextaccounting.org website, a portal to Ledger, hledger, beancount and co.
Stars: ✭ 230 (+265.08%)
Mutual labels:  accounting, ledger
Ledger Autosync
Synchronize your ledger-cli files with your bank.
Stars: ✭ 189 (+200%)
Mutual labels:  accounting, ledger
ledg
Batch modifiable ledger-like written in nodejs
Stars: ✭ 32 (-49.21%)
Mutual labels:  accounting, ledger
DIVA Tools
A global host of tools used to mod/parse Project DIVA games.
Stars: ✭ 24 (-61.9%)
Mutual labels:  conversion
open-expenses
A curated list of (private) businesses publicly sharing their expenses.
Stars: ✭ 46 (-26.98%)
Mutual labels:  accounting
odoobooks
Odoo Best Practices - Online Book
Stars: ✭ 46 (-26.98%)
Mutual labels:  accounting
Nault
⚡ The most advanced Nano wallet with focus on security, speed and robustness
Stars: ✭ 228 (+261.9%)
Mutual labels:  ledger

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

  • Accounts
    • Account declarations (account ...)
    • Conversion of invalid account names
    • Mapping of account names
    • Directive apply account
    • Account aliases (the alias directive and the alias sub-directive of account declarations)
  • Balance assignments
  • Balance assertions
  • Comments
    • Comments in and outside of transactions
    • Directives comment and test
  • Commodities
    • Commodity declarations (commodity ...)
    • Commodity symbols like $, £ and
    • Commodities placed in front and after the amount
    • Conversion of invalid commodities
    • Mapping of commodities
  • Directives
    • bucket / A
    • include
    • Year / Y, apply year
  • Flags
    • State flags (posting flags)
    • Transaction state (transaction flags)
  • Inline maths
  • Lots
    • Lot dates
    • Lot notes
    • Per unit and total costs and prices
    • Conversion of ledger price to beancount cost
  • Metadata
  • Payees
    • Obtain payee from metadata
    • Split payee into payee and narration
    • Assign payee based on narration
  • Tags
    • Directive apply tag
    • Mapping #tags to ^links

Partly supported

  • Amounts
    • Amounts without commodities (not supported in beancount)
    • Decimal comma (not supported in beancount)
  • Dates
    • Dates on posting-level (no equivalence in beancount)
    • Auxiliary dates (no equivalence in beancount)
    • Effective dates (no equivalence in beancount)
  • Deferred postings (no equivalence in beancount)
  • Directives
    • D (not supported in beancount)
    • define and def (no functions)
    • eval: skipped (not supported in beancount)
    • import: skipped (not supported in beancount)
    • payee: skipped (not needed in beancount)
    • python: skipped (not supported in beancount)
    • tag: skipped (not needed in beancount)
    • value: skipped (not supported in beancount)
  • Fixated prices (=$10 and the fixed directive)
  • Lot value expressions (no equivalence in beancount)
  • Tags and links on posting-level (not supported by beancount)
  • Transaction codes: stored as metadata (no equivalence in beancount)
  • Virtual postings: can be skipped or converted to real postings
  • Virtual posting costs: recognised but skipped (no equivalence in beancount)

Not supported

  • Automated transactions
  • Directives
    • assert
    • C (commodity equivalences)
    • check
    • expr
    • N
    • Timeclock (I, i, O, o, b, h)
  • Periodic transactions

Supported features from hledger

  • Account aliases can be regular expressions
  • Amounts
    • All digit group marks (space, comma, and period) are supported
    • Number format can be specified via commodity and D directives
  • Narration: support for payee | note format
  • Posting dates: date and date2
  • Tags: tag1:, tag2:, tag2: info
  • Balance assertions
    • Sub-account balance assertions
    • Total balance assertions: recognised but no equivalent in beancount
  • Directives
    • D (set default commodity)
    • end aliases

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
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].