diff --git a/examples/README.md b/examples/README.md index af73909..d8af75d 100644 --- a/examples/README.md +++ b/examples/README.md @@ -104,14 +104,18 @@ fava`) because this still has beancount v2.3.6 pinned (if you need fava, install in a different venv). Also, if you want to run the example folder fully, including pdf2text extraction, -install the following dependencies for pdftotext: +install the following dependencies: ```bash +# Contains pdf2text apt-get install poppler-utils + +# Caching lib used in the example +pip install cachier ``` Now run beancount with the beangulp importer: ```bash python import.py extract ./Downloads > tmp.beancount -``` \ No newline at end of file +``` diff --git a/examples/importers/acme.py b/examples/importers/acme.py index 701637d..56f0e2a 100644 --- a/examples/importers/acme.py +++ b/examples/importers/acme.py @@ -13,15 +13,15 @@ import re import subprocess +from cachier import cachier from dateutil.parser import parse as parse_datetime import beangulp from beangulp import mimetypes -from beangulp.cache import cache from beangulp.testing import main -@cache +@cachier() def pdf_to_text(filename): """Convert a PDF document to a text equivalent.""" r = subprocess.run(["pdftotext", filename, "-"], stdout=subprocess.PIPE, check=True)