A pythonic interface to GnuCash SQL documents.
Piecash provides a simple and pythonic interface to GnuCash files stored in SQL (sqlite3, Postgres and MySQL).
|Google group:||https://groups.google.com/d/forum/piecash (firstname.lastname@example.org)|
It is a pure python package, tested on python 2.7 and 3.3/3.4/3.5, that can be used as an alternative to:
piecash test suite runs successfully on Windows and Linux on the three supported SQL backends (sqlite3, Postgres and MySQL). piecash has also been successfully run on Android (sqlite3 backend) thanks to Kivy buildozer and python-for-android.
It allows you to:
Scripts are also available to:
A simple example of a piecash script:
with open_book("example.gnucash") as book: # get default currency of book print( book.default_currency ) # ==> Commodity<CURRENCY:EUR> # iterating over all splits in all books and print the transaction description: for acc in book.accounts: for sp in acc.splits: print(sp.transaction.description)
The project has reached beta stage.