Unfortunately Banktivity doesn't have any good way of exporting data.
- Download your Banktivity data from your iOS device using iTunes File Sharing
- Point this at the SQLite file
- Output will go to stdout. Note that the transactions aren't deduped (eg. transfers between accounts).
Written for Python 3.