./finance/ledger2beancount, Script to convert ledger to beancount

[ CVSweb ] [ Homepage ] [ RSS ] [ Required by ] [ Add to tracker ]

Branch: CURRENT, Version: 2.5, Package name: ledger2beancount-2.5, Maintainer: pkgsrc-users

A script to automatically convert ledger-based textual ledgers
(finance/ledger) to beancount-based ones (finance/py-beancount).

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.

Required to run:
[lang/perl5] [time/p5-DateTime-Format-Strptime] [devel/p5-File-BaseDir] [devel/p5-Date-Calc] [devel/p5-Getopt-Long-Descriptive] [lang/python37] [textproc/p5-String-Interpolate] [devel/p5-Config-Onion]

Required to build:

Master sites:

SHA1: 909d1f86e2cf79e2343e51953ed27d49cb6bee55
RMD160: 65bafe12a0f5b5eb1a95a09485fe5f0637ae797d
Filesize: 91.074 KB

Version history: (Expand)

CVS history: (Expand)

   2020-11-18 23:39:15 by Taylor R Campbell | Files touched by this commit (3) | Package updated
Log message:
ledger2beancount: Update to 2.5

2.5 (2020-11-03)

    Don't create negative cost for lot without cost
    Support complex implicit conversions
    Handle typed metadata with value 0 correctly
    Set per-unit instead of total cost when cost is missing from lot
    Support commodity-less amounts
    Convert transactions with no amounts or only 0 amounts to notes
    Fix parsing of transaction notes
    Keep tags in transaction notes on same line as transaction header
    Add beancount config options for non-standard root names automatically
    Fix conversion of fixated prices to costs
    Fix removal of price when price==cost but when they use different number formats
    Fix removal of price when price==cost but per-unit and total notation mixed
    Fix detection of tags and metadata after posting/aux date
    Use D directive to set default commodity for hledger
    Improve support for postings with commodity-less amounts
    Allow empty comments
    Preserve leading whitespace in comments in postings and transaction headers
    Preserve indentation for tags and metadata
    Preserve whitespace between amount and comment
    Refactor code to use more data structures
    Remove dependency on Config::Onion module

2.4 (2020-07-27)

    Fix regressions introduced in version 2.3
        Handle price directives with comments
        Don't assume implicit conversion when price is on second posting
    Improve support for hledger
        Fix parsing of hledger tags
        Support commas as decimal markers
        Support digit group marks through commodity and D directives
        Support end aliases directive
        Support regex aliases
        Recognise total balance assertions
        Recognise sub-account balance assertions
    Add support for define directive
    Convert all uppercase metadata tags to all lowercase
    Improve handling of ledger lots without cost
    Allow transactions without postings
    Fix parsing issue in commodity declarations
    Support commodities that contain quotation marks
    Add --version option to show version
    Document problem of mixing apply and include

2.3 (2020-06-26)

    Improve speed of ledger2beancount significantly
    Improve parsing of postings for accuracy and speed
    Improve support for inline maths
    Handle lots without cost
    Fix parsing of lot notes followed by a virtual price
    Add support for lot value expressions
    Make parsing of numbers more strict
    Fix behaviour of dates without year
    Accept default ledger date formats without configuration
    Fix implicit conversions with negative prices
    Convert implicit conversions in a more idiomatic way
    Avoid introducing trailing whitespace with hledger input
    Fix loading of config file
    Skip ledger directive import
    Convert documentation to mkdocs

2.2 (2020-05-30)

    Show warning for unknown apply directive
    Recognise apply rate directive (an alias of apply fixed)
    Don't convert metadata on ignored virtual postings but keep as comments
    Update location of beancount repository

2.1 (2020-04-06)

    Handle postings with posting dates and comments but no amount
    Show transactions with only one posting (without bucket)
    Adding spacing between automatic declarations
    Preserve preliminary info at the top
   2020-08-31 20:13:29 by Thomas Klausner | Files touched by this commit (3631) | Package updated
Log message:
*: bump PKGREVISION for perl-5.32.
   2020-07-16 20:09:30 by Taylor R Campbell | Files touched by this commit (3) | Package updated
Log message:
finance/ledger2beancount: Update upstream, and cite upstream patch.

No functional change intended, so no revbump.
   2020-05-11 03:18:30 by Taylor R Campbell | Files touched by this commit (1)
Log message:
Work around pkgsrc mk bug by adding gsed to USE_TOOLS, not gsed:test.
   2020-03-23 17:49:07 by Taylor R Campbell | Files touched by this commit (3)
Log message:
Remove C.UTF-8 avoidance patch.

Works better if we just teach the OS about C.UTF-8.
   2020-03-23 03:29:49 by Taylor R Campbell | Files touched by this commit (5)
Log message:
ledger2beancount: Import version 2.0