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.22

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.22
File Size Uploaded Provenance Actions
beancount_chase_bank-0.2.22.tar.gz 9.8 kB Without provenance Details for beancount_chase_bank-0.2.22.tar.gz

Built distribution (wheel)

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

Total release size: 21.3 kB

Release files / beancount_chase_bank-0.2.22.tar.gz

Download URL beancount_chase_bank-0.2.22.tar.gz
Size 9.8 kB
Tags Source
SHA-256 checksum
How to use checksums
cb55c6b39025c0deeb29960a7272d46b2d435463c856f32c3cb4f8a4a9c7dbac
BLAKE2b-256 checksum
How to use checksums
3280dbae6118483fd34cc0f8781fa4336824d0f1b957e5d00b9f5e9616f5573c
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.22-py3-none-any.whl

Download URL beancount_chase_bank-0.2.22-py3-none-any.whl
Size 11.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
732c71d6efe0e7102296eebef8ac53acc057a15c231d7c3308f1e679797e87d1
BLAKE2b-256 checksum
How to use checksums
8637a4e4740bd5b0e0ddeaa321fb6521faaaaa1d961c3f1581a6326a422e276a
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.22

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