Skip to main content

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


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.0.tar.gz (12.3 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.0-py3-none-any.whl (7.6 kB view details)

Uploaded Python 3

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

Hashes for gahto-0.0.0.tar.gz
Algorithm Hash digest
SHA256 5543de29c609df931f370384db2bd2c0647d06d83631da43835544306d0acc46
MD5 76f7477f83987fa22101f5a01d63a65a
BLAKE2b-256 9ec1d3abfd05c376d5734d15bf376502a7fc1b3135e564a1d2e335e946b929d0

See more details on using hashes here.

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

Hashes for gahto-0.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 eafc87ca8de09209c9dbb79f77345d7fef4f3e47770383c9bc73c16aff13f044
MD5 79e95133c81667186881f5e16ff67fbd
BLAKE2b-256 a343caa8188ef881c4222f056b8ac7a2abfd9d364ba784877c9ac5dc14d81a16

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