GAHTO is a small Python module for creating GNUCash Account Hierarchy Template Objects natively in python, and eventually exporting them in XML as .gnucash-xea files.
Project description
GNUCash Account Hierarchy Template Object
GAHTO is a small Python module for creating GNUCash Account Hierarchy Template
Objects natively in python, and eventually exporting them in XML as
.gnucash-xea files.
Usage
from gahto.gahto import GAHTO
from gahto.gahto import GATO
from gahto.gahto import AccountType
EL = GAHTO("Title")
EL.set_description("Short description", "Longer description")
expenses_acct = GATO("Expenses", AccountType.Expense)
expenses_acct.set_description("Expenses")
expenses_acct.set_placeholder(True)
EL.add_account(expenses_acct)
childcare_acct = GATO("Childcare", AccountType.Expense)
childcare_acct.set_description("Childcare")
expenses_acct.add_subaccount(childcare_acct)
EL.export("example-account-hierarchy.gnucash-xea")
Run tests
With python-coverage and
pytest installed, run:
$ python3-coverage run -m pytest
$ python3-coverage html
$ xdg-open htmlcov/index.html
Alternatively, you can replace the last two commands with:
$ python3-coverage report
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 gahto-0.0.0.tar.gz.
File metadata
- Download URL: gahto-0.0.0.tar.gz
- Upload date:
- Size: 12.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5543de29c609df931f370384db2bd2c0647d06d83631da43835544306d0acc46
|
|
| MD5 |
76f7477f83987fa22101f5a01d63a65a
|
|
| BLAKE2b-256 |
9ec1d3abfd05c376d5734d15bf376502a7fc1b3135e564a1d2e335e946b929d0
|
File details
Details for the file gahto-0.0.0-py3-none-any.whl.
File metadata
- Download URL: gahto-0.0.0-py3-none-any.whl
- Upload date:
- Size: 7.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
eafc87ca8de09209c9dbb79f77345d7fef4f3e47770383c9bc73c16aff13f044
|
|
| MD5 |
79e95133c81667186881f5e16ff67fbd
|
|
| BLAKE2b-256 |
a343caa8188ef881c4222f056b8ac7a2abfd9d364ba784877c9ac5dc14d81a16
|