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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file beancount_oneliner-1.0.3.tar.gz.
File metadata
- Download URL: beancount_oneliner-1.0.3.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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0e03b225bedef8f41b1acab88cbebf44a35d755160d3179de3b4450186e92632
|
|
| MD5 |
9d5ba991d8fcbb9d46c2b380199f6e68
|
|
| BLAKE2b-256 |
495efe83d2d85325150a58a2e8a6d9323c53c03c95362f42ca099b0d3b740d51
|
File details
Details for the file beancount_oneliner-1.0.3-py3-none-any.whl.
File metadata
- Download URL: beancount_oneliner-1.0.3-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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
254bad167dde9862938a6a80684dda182a5188890db9152ccde8f46077d3c8b7
|
|
| MD5 |
c0dc57ca7db391828036a15d313ab403
|
|
| BLAKE2b-256 |
a582c852ed1003097241a6385c816ada8797059b0346a85c408bdf3e8ebb871c
|