Don't crash on empty PDFs
Add empty-PDF test
Rearrange fixtures
Beancount importer for PDFs obtained from Clipper, the fare card used by most transit operators in the San Francisco Bay Area.
Add something like this to your importer configuration:
from beancount_clipper import ClipperImporter
CONFIG = [
ClipperImporter("1234567890", "Assets:Cash:Clipper", "Expenses:Transport:Public")
]
The class signature:
card_number
(str
): The number of your Clipper card.card_account
(str
): The Beancount account for the card.exp_account
(str | None
, default None
): The expense account with which to balance transactions.Log into your Clipper account. For each card:
More Options
then View Activity
.Download PDF
.