Skip to main content

beancount-chase-bank

PyPI CircleCI License

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

Development

To create a development environment, run:

uv python pin 3.13.6 && \
  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.

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.19.tar.gz (9.1 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.19-py3-none-any.whl (10.8 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for beancount_chase_bank-0.2.19.tar.gz
Algorithm Hash digest
SHA256 31843a025ccf659b0d3f390cf76bbff8bece3a9818fd5159559dfdaefeb9f87c
MD5 dd30c14d1f50ff046ad0c9103f7614c3
BLAKE2b-256 e8c4cc6e088be186399ced6ac6969e14e0473cb095ddfbb437f7ae0188d826e5

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for beancount_chase_bank-0.2.19-py3-none-any.whl
Algorithm Hash digest
SHA256 e72fddb8ace857f050555d850d58d079112c7b0717b3ae8f7c24ba9a6ed43001
MD5 946516cd3fbc9406adecc8562587be2a
BLAKE2b-256 5950460f0feb4992ba454cfef5303c9b95da53d599f26a1943502cd1026ab20e

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

0.2.19 This release

2 files

0.2.17

2 files

0.2.15

2 files

0.2.14

2 files

0.2.13

2 files

0.2.12

2 files

0.2.11

2 files

0.2.10

2 files

0.2.9

2 files

0.2.8

2 files

0.2.7

2 files

0.2.6

2 files

0.2.5

2 files

0.2.4

2 files

0.2.3

2 files

0.2.2

2 files

0.2.1

2 files

0.2.0

2 files

0.1.1

2 files

0.1.0

2 files

Supported by

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