Beangulp importer for SimpleFIN
Project description
Beangulp SimpleFIN Importer
A beangulp importer for SimpleFIN data.
Installation
uv add beangulp-simplefin
Or with pip:
pip install beangulp-simplefin
Usage
1. Download SimpleFIN data
Use the SimpleFIN CLI to download your account data:
uv add simplefin
simplefin fetch --output ~/simplefin-data/
This creates one JSON file per account in the output directory.
2. Configure your importer
Create an import.py configuration:
from beangulp_simplefin import SimpleFINImporter
import beangulp
importers = [
SimpleFINImporter(account_mapping={
"ACT-xxx-xxx": "Assets:Checking:Chase",
"ACT-yyy-yyy": "Assets:Checking:Schwab",
"ACT-zzz-zzz": "Liabilities:CreditCard:Amex",
})
]
if __name__ == "__main__":
beangulp.Ingest(importers)()
3. Extract transactions
python import.py extract ~/simplefin-data/ >> ledger.beancount
4. Archive the files (optional)
python import.py archive ~/simplefin-data/ -o documents/
Importer Options
SimpleFINImporter(
account_mapping, # Dict mapping SimpleFIN account IDs to Beancount accounts
currency='USD', # Default currency
expense_account='Expenses:Uncategorized', # For outflows
income_account='Income:Uncategorized', # For inflows
)
Output Format
Each transaction becomes a Beancount entry:
2024-01-15 * "GROCERY STORE #123"
simplefin_id: "TRN-abc123"
Assets:Checking:Chase -45.67 USD
simplefin_id: "TRN-abc123"
Expenses:Uncategorized
2024-01-16 balance Assets:Checking:Chase 1234.56 USD
Workflow Example
# Daily/weekly sync
simplefin fetch --output ~/simplefin-data/
python import.py extract ~/simplefin-data/ >> ledger.beancount
bean-check ledger.beancount
Related Tools
- simplefin - SimpleFIN Python client
- sfin2beancount - Pipe-based SimpleFIN to Beancount converter
- sfin2ledger - SimpleFIN to Ledger converter
License
MIT
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file beangulp_simplefin-0.1.0.tar.gz.
File metadata
- Download URL: beangulp_simplefin-0.1.0.tar.gz
- Upload date:
- Size: 7.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
517ee13091512d7a7c243d37f31459cea9b885844dd698ffc17dcde8e871408c
|
|
| MD5 |
77a3ba9559705a8916d74b6a948fd805
|
|
| BLAKE2b-256 |
7d165b4ce85d0a56c82a259c7df7f2382ed3fd41170473f310da7af7435ead75
|
Provenance
The following attestation bundles were made for beangulp_simplefin-0.1.0.tar.gz:
Publisher:
publish.yml on robcohen/beangulp-simplefin
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
beangulp_simplefin-0.1.0.tar.gz -
Subject digest:
517ee13091512d7a7c243d37f31459cea9b885844dd698ffc17dcde8e871408c - Sigstore transparency entry: 787637493
- Sigstore integration time:
-
Permalink:
robcohen/beangulp-simplefin@5d804b1bd9bf5e1cd940ff9503937cf1c121b847 -
Branch / Tag:
refs/tags/v0.1.0 - Owner: https://github.com/robcohen
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@5d804b1bd9bf5e1cd940ff9503937cf1c121b847 -
Trigger Event:
release
-
Statement type:
File details
Details for the file beangulp_simplefin-0.1.0-py3-none-any.whl.
File metadata
- Download URL: beangulp_simplefin-0.1.0-py3-none-any.whl
- Upload date:
- Size: 5.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
183e77c70fd27b66d0465f69fb2a58f1b0de9de02254c1b9407ac88d3462155d
|
|
| MD5 |
69ce30291998960aa14db08d188560e3
|
|
| BLAKE2b-256 |
b52d9392b9657ebcfa3f3feda23894c07bb699175c61d0e24edad4e863d18340
|
Provenance
The following attestation bundles were made for beangulp_simplefin-0.1.0-py3-none-any.whl:
Publisher:
publish.yml on robcohen/beangulp-simplefin
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
beangulp_simplefin-0.1.0-py3-none-any.whl -
Subject digest:
183e77c70fd27b66d0465f69fb2a58f1b0de9de02254c1b9407ac88d3462155d - Sigstore transparency entry: 787637507
- Sigstore integration time:
-
Permalink:
robcohen/beangulp-simplefin@5d804b1bd9bf5e1cd940ff9503937cf1c121b847 -
Branch / Tag:
refs/tags/v0.1.0 - Owner: https://github.com/robcohen
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@5d804b1bd9bf5e1cd940ff9503937cf1c121b847 -
Trigger Event:
release
-
Statement type: