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

pip install beancount-chase-bank

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.7.tar.gz (7.0 kB view details)

Uploaded Source

Built Distribution

beancount_chase_bank-0.2.7-py3-none-any.whl (9.2 kB view details)

Uploaded Python 3

File details

Details for the file beancount-chase-bank-0.2.7.tar.gz.

File metadata

  • Download URL: beancount-chase-bank-0.2.7.tar.gz
  • Upload date:
  • Size: 7.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/8.2.0 pkginfo/1.11.1 requests/2.32.3 requests-toolbelt/1.0.0 tqdm/4.66.4 CPython/3.9.13

File hashes

Hashes for beancount-chase-bank-0.2.7.tar.gz
Algorithm Hash digest
SHA256 4921797146e39e321dd7a8871336f405085d7f117bc9de90842dcd252b2eaf70
MD5 cb35fb921549730e289fb893364c056d
BLAKE2b-256 0c68d3b6ba484e33485d993583862372fc75f3f9383d988fd318736ef9f2ad3b

See more details on using hashes here.

File details

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

File metadata

  • Download URL: beancount_chase_bank-0.2.7-py3-none-any.whl
  • Upload date:
  • Size: 9.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/8.2.0 pkginfo/1.11.1 requests/2.32.3 requests-toolbelt/1.0.0 tqdm/4.66.4 CPython/3.9.13

File hashes

Hashes for beancount_chase_bank-0.2.7-py3-none-any.whl
Algorithm Hash digest
SHA256 11f1c519e82cf1fd04cfcc5a97c4908449b6ce498e9323875918e09d0d8a033b
MD5 0909cd41b33d13aff354771fad03fe91
BLAKE2b-256 b9a857338a3f6b6eac8d7d90e87818e26d7f4108c61bbafce5493fe5bbcfe849

See more details on using hashes here.

Supported by

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