beancount-plugin-utils-0.0.4
توضیحات
Utils for beancount plugin writers - BeancountError, mark, metaset, etc.
| ویژگی | مقدار |
|---|---|
| سیستم عامل | - |
| نام فایل | beancount-plugin-utils-0.0.4 |
| نام | beancount-plugin-utils |
| نسخه کتابخانه | 0.0.4 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | Akuukis |
| ایمیل نویسنده | akuukis@kalvis.lv |
| آدرس صفحه اصلی | https://github.com/Akuukis/beancount_plugin_utils |
| آدرس اینترنتی | https://pypi.org/project/beancount-plugin-utils/ |
| مجوز | GNU AGPLv3 |
Beancount Plugin Utils
===============================================================================
[](https://pypi.org/project/beancount_plugin_utils/)
[](https://pypi.org/project/beancount_plugin_utils/)
[](https://pypi.org/project/beancount_plugin_utils/)
[](https://choosealicense.com/licenses/agpl-3.0/)
[](https://github.com/psf/black)
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.
نحوه نصب
نصب پکیج whl beancount-plugin-utils-0.0.4:
pip install beancount-plugin-utils-0.0.4.whl
نصب پکیج tar.gz beancount-plugin-utils-0.0.4:
pip install beancount-plugin-utils-0.0.4.tar.gz