Skip to main content

Import Chase banking transactions into beancount format

Project description

beancount-chase-bank

PyPI CircleCI License

beancount-chase-bank provides an Importer for converting CSV exports Chase bank transactions into Beancount v2 format.

Installation

uv venv && \
  . .venv/bin/activate && \
  uv pip install --requirement requirements.txt && \
  uv pip install --requirement dev_requirements.txt

Usage

Checking Accounts

Add the Chase Checking importer to your account as follows:

import beancount_chase

CONFIG = [
    beancount_chase.CheckingImporter(
        'Assets:Checking:Chase',
        currency='USD',
        lastfour='1234', # Replace with last four digits of your account
        account_patterns=[
          # These are example patterns. You can add your own.
          ('GITHUB', 'Expenses:Cloud-Services:Source-Hosting:Github'),
          ('Fedex',  'Expenses:Postage:FedEx'),
        ]
    ),
]

Once this configuration is in place, you can use bean-extract to convert a Chase CSV export of transactions to beancount format:

bean-extract config.py Chase1234_Activity_20220219.CSV

Credit Cards

Add the Chase Credit card importer to your account as follows:

import beancount_chase

CONFIG = [
    beancount_chase.CreditImporter(
        'Liabilities:Credit-Cards:Chase',
        currency='USD',
        lastfour='1234', # Replace with last four digits of your account
        account_patterns=[
          # These are example patterns. You can add your own.
          ('GITHUB', 'Expenses:Cloud-Services:Source-Hosting:Github'),
          ('Fedex',  'Expenses:Postage:FedEx'),
        ]
    ),
]

Once this configuration is in place, you can use bean-extract to convert a Chase CSV export of transactions to beancount format:

bean-extract config.py Chase1234_Activity20210808_20210907_20210929.CSV

API

account_patterns

The account_patterns parameter is a list of (regex, account) pairs. For each line in your CSV, the Chase importer will attempt to create a matching posting on the transaction by matching the payee, narration, or the concatenated pair to the regexes.

The regexes are in priority order, with earlier patterns taking priority over later patterns.

Resources

See awesome-beancount for other publicly available Beancount importers.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

beancount_chase_bank-0.2.17.tar.gz (9.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

beancount_chase_bank-0.2.17-py3-none-any.whl (10.6 kB view details)

Uploaded Python 3

File details

Details for the file beancount_chase_bank-0.2.17.tar.gz.

File metadata

  • Download URL: beancount_chase_bank-0.2.17.tar.gz
  • Upload date:
  • Size: 9.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.13.11

File hashes

Hashes for beancount_chase_bank-0.2.17.tar.gz
Algorithm Hash digest
SHA256 20ee908d61819e5a839806dc0b6154eef47ece5b55b8521e517901e13618bdbc
MD5 c056e35066ac8b85333a047806f609de
BLAKE2b-256 ba240a9645388bbf04d0950b3be12482c5379f94917ac4e4411c98c6e2535cf6

See more details on using hashes here.

File details

Details for the file beancount_chase_bank-0.2.17-py3-none-any.whl.

File metadata

File hashes

Hashes for beancount_chase_bank-0.2.17-py3-none-any.whl
Algorithm Hash digest
SHA256 afeed1fe157c05c049f9bde51fb151a8d70b06b50fce49d1b56896d011769673
MD5 bdfe95e25e3f6c61cd00ebfedbbdec0f
BLAKE2b-256 b6a7f4a3c36826f25e78ed9900a01f0be7a47c2826ab02d5ed1f9176458b56a1

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page