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
	Assets:Cash

Install

pip3 install beancount_oneliner --user

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

Syntax highlight

Sublime

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))
  beginCaptures:
    '1': {name: constant.numeric.date.year.beancount}
    '2': {name: punctuation.separator.beancount}
    '3': {name: constant.numeric.date.month.beancount}
    '4': {name: punctuation.separator.beancount}
    '5': {name: constant.numeric.date.day.beancount}
    '6': {name: support.function.directive.beancount}
  end: (?=(^\s*$|^\S))
  patterns:
  - include: '#meta'
  - include: '#account'
  - name: punctuation.separator.beancount
    match: (?<=\s)\"
  - include: '#cost'
  - include: '#amount'
  - begin: (\*|\!)
    beginCaptures:
      '0': {name: support.function.directive.beancount}
    end: (\*\")
    endCaptures:
      '0': {name: punctuation.separator.beancount}
    patterns:
    - 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.5.tar.gz (3.0 kB view details)

Uploaded Source

Built Distribution

beancount_oneliner-1.0.5-py3-none-any.whl (15.6 kB view details)

Uploaded Python 3

File details

Details for the file beancount_oneliner-1.0.5.tar.gz.

File metadata

  • Download URL: beancount_oneliner-1.0.5.tar.gz
  • Upload date:
  • Size: 3.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.21.0 setuptools/45.2.0 requests-toolbelt/0.9.1 tqdm/4.43.0 CPython/3.7.5

File hashes

Hashes for beancount_oneliner-1.0.5.tar.gz
Algorithm Hash digest
SHA256 e03e9e20fa15295e51782a4c45c96e42c901556df70d2cd33186ed998200d185
MD5 6b305034151c1e4013dd7b8a284db669
BLAKE2b-256 d808297ca50f07934b5f7d960f702a7a74dd1d2c9f7fe41321bf6ce53cd20048

See more details on using hashes here.

File details

Details for the file beancount_oneliner-1.0.5-py3-none-any.whl.

File metadata

  • Download URL: beancount_oneliner-1.0.5-py3-none-any.whl
  • Upload date:
  • Size: 15.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.21.0 setuptools/45.2.0 requests-toolbelt/0.9.1 tqdm/4.43.0 CPython/3.7.5

File hashes

Hashes for beancount_oneliner-1.0.5-py3-none-any.whl
Algorithm Hash digest
SHA256 78f7f676119216f4ee8ad4b72a2e1ce20592b36515d5fd5e2a9742c91361e801
MD5 3809f348b377499a8163e92b7d29ece4
BLAKE2b-256 e9afe3519ecca1c230b97302f9462d9378b3543429390b5830fccc92da464ffd

See more details on using hashes here.

Supported by

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