Skip to main content

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

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

gahto-0.0.1.tar.gz (12.6 kB view details)

Uploaded Source

Built Distribution

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

gahto-0.0.1-py3-none-any.whl (7.7 kB view details)

Uploaded Python 3

File details

Details for the file gahto-0.0.1.tar.gz.

File metadata

  • Download URL: gahto-0.0.1.tar.gz
  • Upload date:
  • Size: 12.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.2

File hashes

Hashes for gahto-0.0.1.tar.gz
Algorithm Hash digest
SHA256 0f8417ba84be08708c81b55c6fd1c4db1f283697529b12c182c12d4d01f2b240
MD5 26a9f60aa1c8c049507ebd1ca2b69e11
BLAKE2b-256 7b219adeab861b05d9568add7fe98791bcca25da5da807c522555b4fbf48ed00

See more details on using hashes here.

File details

Details for the file gahto-0.0.1-py3-none-any.whl.

File metadata

  • Download URL: gahto-0.0.1-py3-none-any.whl
  • Upload date:
  • Size: 7.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.2

File hashes

Hashes for gahto-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 1530ecd3b9daedec27f40c9440cce02e16559d5554033d82af21538c8a603b88
MD5 82089a7230f5fe752fb28a2597cc3e52
BLAKE2b-256 b1dc53c4dd157c776e06fe33db2623f6c29a09b28a1691dda9dc4d6e2dfc8730

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

0.0.1 This release

2 files

0.0.0

2 files

Supported by

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