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

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.23
File Size Uploaded Provenance Actions
beancount_chase_bank-0.2.23.tar.gz 11.7 kB Without provenance Details for beancount_chase_bank-0.2.23.tar.gz

Built distribution (wheel)

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

Total release size: 23.9 kB

Release files / beancount_chase_bank-0.2.23.tar.gz

Download URL beancount_chase_bank-0.2.23.tar.gz
Size 11.7 kB
Tags Source
SHA-256 checksum
How to use checksums
1686067d10e54a19951c512d2dcd53dd25829f06117a2789f8ee00bda6f42839
BLAKE2b-256 checksum
How to use checksums
8198bdca36c6787da8e36b73766acf5ae2d38a0e6a0e09525279bcedf371f76d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.0.1 CPython/3.13.18

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

Download URL beancount_chase_bank-0.2.23-py3-none-any.whl
Size 12.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
28fa4d0600fc915f8a9fbf9c37367ba9ee79a136e652f1f05ec6ff90d11a793d
BLAKE2b-256 checksum
How to use checksums
3238e1af30356cc772d8b3bb2d72c5e56e33f221e2b735699448a1eeb9922581
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.0.1 CPython/3.13.18

Security for beancount-chase-bank 0.2.23

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