Skip to main content

Extract entries from GnuCash data file to pandas.DataFrame.

Project description

gncxml

PyPI

gncxml - extract entries from GnuCash data file to pandas.DataFrame

Installation

pip install gncxml

Usage (Command Line)

usage: gncxml [-h] [-l] [--csv] TYPE [FILE]

gncxml - print entries in GnuCash data file as data frame

positional arguments:
  TYPE        type of entries to print (account | commodity | price | split |
              transaction)
  FILE        GnuCash data file (XML format)

optional arguments:
  -h, --help  show this help message and exit
  -l, --long  list in long format
  --csv       print in csv format

Usage (Python Module)

import sys
import gncxml

try:
    book = gncxml.Book("mybook.gnucash")
except OSError as err:
    sys.exit(err)

# Extract splits as pandas.DataFrame
df = book.list_splits()
print(df[df["trn_date"] >= "2023-07-01"].to_csv())

See also: examples/module_usage.ipynb

License

Copyright 2017-2022 LiosK

Licensed under the Apache License, Version 2.0.

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

gncxml-0.7.17.tar.gz (11.3 kB view details)

Uploaded Source

Built Distribution

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

gncxml-0.7.17-py3-none-any.whl (12.8 kB view details)

Uploaded Python 3

File details

Details for the file gncxml-0.7.17.tar.gz.

File metadata

  • Download URL: gncxml-0.7.17.tar.gz
  • Upload date:
  • Size: 11.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.2.1 CPython/3.13.11 Darwin/25.2.0

File hashes

Hashes for gncxml-0.7.17.tar.gz
Algorithm Hash digest
SHA256 5c1ab54b6d339f774995ee36e111b23f62da05c4d646924edb65de7e1148dcc6
MD5 0eff21bb9eb44a45e46be68e812ae581
BLAKE2b-256 d0f8f076301f92b4ec4dc38ad937412b0f75e7a1cbf0bdd44866399d035341c7

See more details on using hashes here.

File details

Details for the file gncxml-0.7.17-py3-none-any.whl.

File metadata

  • Download URL: gncxml-0.7.17-py3-none-any.whl
  • Upload date:
  • Size: 12.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.2.1 CPython/3.13.11 Darwin/25.2.0

File hashes

Hashes for gncxml-0.7.17-py3-none-any.whl
Algorithm Hash digest
SHA256 8824e2fcbf28b4dc46e8f34eff1b177a527ba4eb9d771c52a87490fb697205f8
MD5 44365b066f9f3de00060473951282c04
BLAKE2b-256 2d5a9e65f698c38cca11e312da681e7689578baf174cc3ca8d0ba0486a4ba5d8

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