GithubHelp home page GithubHelp logo

jcrben / ledger2beancount Goto Github PK

View Code? Open in Web Editor NEW

This project forked from beancount/ledger2beancount

1.0 3.0 0.0 392 KB

Ledger to Beancount text-based converter

License: GNU General Public License v3.0

Makefile 0.48% Perl 91.67% Shell 6.27% Batchfile 1.58%

ledger2beancount's Introduction

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 are not meaningful for accounting reasons but still valuable (e.g., comments, formatting, etc.) can be preserved.

Please read the manual on how to install, configure and use ledger2beancount. The supported features are documented in the manual, too.

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 manual for dependencies and installation instructions.

Features

The majority of ledger features are supported by ledger2beancount. Here is an overview of fully supported, partly supported and unsupported features. Please refer to the manual for more details.

Fully supported

  • Accounts
    • Account declarations (account ...)
    • Conversion of invalid account names
    • Mapping of account names
    • Directive apply account
    • Account aliases (alias)
  • 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
  • Flags
    • State flags (posting flags)
    • Transaction state (transaction flags)
  • Inline math
    • Very simple inline math only
  • 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
    • 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)
  • Directives
    • payee: skipped (not needed in beancount)
    • tag: skipped (not needed in beancount)
  • Fixated prices (=$10 and the fixed directive)
  • 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
    • D
    • define
    • expr
    • N
    • Timeclock (I, i, O, o, b, h)
  • Periodic transactions

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/>.

ledger2beancount's People

Contributors

tbm avatar zacchiro avatar simonmichael avatar wzyboy avatar

Stargazers

Roman avatar

Watchers

James Cloos avatar Ben Creasy avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.