You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
book = piecash.open_book("test.gnucash", readonly=True)
Appears intended to be executable but no file provided.
Maybe the simplest workflow, with no stock prices, is:
frompiecashimportopen_book# open a GnuCash Bookgnucash_books="../gnucash_books/"book=open_book(gnucash_books+"test_book.gnucash", readonly=True)
Or in python [and Tutorials]
Requires:
from piecash import open_book - only specific mention in Other objects
setting gnucash_books variable - sample gnucash_books folder is contained in the project.
>>> session = book.session
>>>
>>> # get all account with name >= "T"
>>> session.query(Account).filter(Account.name>="T").all()
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
NameError: name 'Account' is not defined
>>> from piecash import session
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ImportError: cannot import name 'session' from 'piecash' (C:\Users\User\AppData\Local\Programs\Python\Python39\lib\site-packages\piecash\__init__.py)
The text was updated successfully, but these errors were encountered:
Quickstart
Maybe the simplest workflow, with no stock prices, is:
Requires:
from piecash import open_book
- only specific mention in Other objectsgnucash_books
variable - samplegnucash_books
folder is contained in the project.The text was updated successfully, but these errors were encountered: