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
Metadata
Release files for gahto 0.0.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| gahto-0.0.1.tar.gz | 12.6 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| gahto-0.0.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 20.3 kB
Release files / gahto-0.0.1.tar.gz
| Download URL | gahto-0.0.1.tar.gz |
|---|---|
| Size | 12.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
0f8417ba84be08708c81b55c6fd1c4db1f283697529b12c182c12d4d01f2b240
|
|
BLAKE2b-256 checksum How to use checksums |
7b219adeab861b05d9568add7fe98791bcca25da5da807c522555b4fbf48ed00
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.11.2
|
Release files / gahto-0.0.1-py3-none-any.whl
| Download URL | gahto-0.0.1-py3-none-any.whl |
|---|---|
| Size | 7.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
1530ecd3b9daedec27f40c9440cce02e16559d5554033d82af21538c8a603b88
|
|
BLAKE2b-256 checksum How to use checksums |
b1dc53c4dd157c776e06fe33db2623f6c29a09b28a1691dda9dc4d6e2dfc8730
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.11.2
|