Skip to content

Latest commit

 

History

History
33 lines (23 loc) · 945 Bytes

README.md

File metadata and controls

33 lines (23 loc) · 945 Bytes

piecash2

codecov CI

A python library to work with GnuCash books, a successor of the piecash library, built on top of SQLAlchemy 2.

Install it from PyPI

pip install piecash2

Usage

from piecash2 import open_book

# open the gnucash book (sqlite3 file)
Session = open_book("mybook.gnucash")
# retrieve the module
piecash = Session.module

with Session() as session:
    # query all accounts in the
    for account in session.query(piecash.Account).all():
        print(account.name)

Development

Read the CONTRIBUTING.md file.