Skip to main content

Utils for beancount plugin writers - BeancountError, mark, metaset, etc.

Project description

Beancount Plugin Utils

PyPI - Version PyPI - Downloads PyPI - Wheel License Linting

A collection of utils for writing beancount plugins:

  • BeancountError & utils - throw anywhere RuntimeError and have nice error output instead of crashing beancount.
  • marked - introduce an abstraction of mark to liberate user to use any of: tag, tx meta, posting meta.
  • metaset - abstraction over meta dict to have multiple values for the same key.
  • merge_postings - merge postings with equal account names.
  • parse_config_string - parse config string.

Also see test framework and feel free to copy it.

Note: NOT READY FOR PUBLIC YET, STILL MIGRATING MY OWN PLUGINS. ANYTHING CAN CHANGE WITHOUT NOTICE.

Install

  1. Add beancount_plugin_utils to your plugin's requirements.txt file or pyproject.toml file.
  2. Reinstall your dependencies.

Tests

If the examples above do not suffice your needs, check out the tests. They consist of human-readable examples for more specific cases.

Development

Please see Makefile and inline comments.

Feel free to PR your utils to add them to this repro.

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_plugin_utils-0.0.4.tar.gz (10.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

beancount_plugin_utils-0.0.4-py3-none-any.whl (25.0 kB view details)

Uploaded Python 3

File details

Details for the file beancount_plugin_utils-0.0.4.tar.gz.

File metadata

  • Download URL: beancount_plugin_utils-0.0.4.tar.gz
  • Upload date:
  • Size: 10.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/47.3.1 requests-toolbelt/0.9.1 tqdm/4.45.0 CPython/3.8.5

File hashes

Hashes for beancount_plugin_utils-0.0.4.tar.gz
Algorithm Hash digest
SHA256 e9d781defdf3ccf4245dbf2168438fe0a9e4b0a6b1d38499f9804b6a0a5a778a
MD5 56a0a7492b98c943e4d7c98772e48a46
BLAKE2b-256 ab5370b3ddb03709c5b29ddf17156dbb0a4417f630b07a18c14fda8f7e44a5a0

See more details on using hashes here.

File details

Details for the file beancount_plugin_utils-0.0.4-py3-none-any.whl.

File metadata

  • Download URL: beancount_plugin_utils-0.0.4-py3-none-any.whl
  • Upload date:
  • Size: 25.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/47.3.1 requests-toolbelt/0.9.1 tqdm/4.45.0 CPython/3.8.5

File hashes

Hashes for beancount_plugin_utils-0.0.4-py3-none-any.whl
Algorithm Hash digest
SHA256 d87963ad75dff5137cc8baf0eddb86f23bb6dfb5fe347a41bc42ac739713991d
MD5 1cd470c2dfe89b76e091d76c20d67518
BLAKE2b-256 9b671d4d3bb5be036c265f613af728116a1d32ad7489ac2fcbd6a00f4371b153

See more details on using hashes here.

Supported by

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