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.

Metadata

Release files for beancount-chase-bank 0.2.21

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for beancount-chase-bank 0.2.21
File Size Uploaded Provenance Actions
beancount_chase_bank-0.2.21.tar.gz 9.6 kB Without provenance Details for beancount_chase_bank-0.2.21.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for beancount-chase-bank 0.2.21
File Interpreter ABI Platform Actions
beancount_chase_bank-0.2.21-py3-none-any.whl Python 3 none any Details for beancount_chase_bank-0.2.21-py3-none-any.whl

Total release size: 20.9 kB

Release files / beancount_chase_bank-0.2.21.tar.gz

Download URL beancount_chase_bank-0.2.21.tar.gz
Size 9.6 kB
Tags Source
SHA-256 checksum
How to use checksums
53e2527a507a5c43119f1385efe0f76e389871a23e6f233582d92455992be489
BLAKE2b-256 checksum
How to use checksums
fb052889fe9d31578ddbfa4e522da05617d032949e79ddfd47d4edf33349eebc
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.0.1 CPython/3.13.16

Release files / beancount_chase_bank-0.2.21-py3-none-any.whl

Download URL beancount_chase_bank-0.2.21-py3-none-any.whl
Size 11.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
2aef6e91c9e58e411a8028a0164ecae65985209ece9054d18f9e563596880b7e
BLAKE2b-256 checksum
How to use checksums
5418e3e49ab582275228442f334a2be26b4d527b49612c14e28ab416c79eef2d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.0.1 CPython/3.13.16

Security for beancount-chase-bank 0.2.21

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page