Skip to main content

Plugin for Beancount to write oneliner transaction entries.

Project description

How to use

Two leg simple amount transactions are supported, because they are the bulk of entries. Support for price and cost may come, feel free to contribute.

1999-12-31 note Assets:Cash "Income:Test -16.18 EUR ! Description goes here #myTag *"

will be translated into

1999-12-31 ! "Description goes here" #myTag
	Income:Test		-16.18 EUR


pip3 install beancount-oneliner --user

Or copy to path used for python. For example, $HOME/.local/lib/python3.4/site-packages/beancount-oneliner/ would do on Debian. If in doubt, look where beancount folder is and copy next to it.

Syntax highlight


YAML-tmLanguage entry of beancount syntax definition for Sublime Text

- comment: note oneliner directive
  name: meta.directive.notetotext.beancount
  begin: ([0-9]{4})([\-|/])([0-9]{2})([\-|/])([0-9]{2})\s+(note)(?=(.*\*\"\s))
    '1': {name:}
    '2': {name: punctuation.separator.beancount}
    '3': {name:}
    '4': {name: punctuation.separator.beancount}
    '5': {name:}
    '6': {name: support.function.directive.beancount}
  end: (?=(^\s*$|^\S))
  - include: '#meta'
  - include: '#account'
  - name: punctuation.separator.beancount
    match: (?<=\s)\"
  - include: '#cost'
  - include: '#amount'
  - begin: (\*|\!)
      '0': {name: support.function.directive.beancount}
    end: (\*\")
      '0': {name: punctuation.separator.beancount}
    - name: constant.character.escape.beancount
      match: \\.
    - include: '#tag'
    - name: string.quoted.double.beancount
      match: ([^\"])
  - include: '#illegal'

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

beancount_oneliner-1.0.3.tar.gz (3.0 kB view hashes)

Uploaded Source

Built Distribution

beancount_oneliner-1.0.3-py3-none-any.whl (15.6 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page