Skip to main content

beancount-no-sparebank1

A Python library for importing SpareBank 1 (Norway) bank data into Beancount accounting format.

sb12

Features

  • Import transactions from CSV exports of SpareBank 1 deposit accounts
  • Extract balance statements from PDF account statements ("kontoutskrift")
  • Flexible transaction categorization with customizable rules

Quick start

import beangulp
import beancount_no_sparebank1

importers = [
    beancount_no_sparebank1.deposit.DepositAccountImporter(
        'Assets:Checking',
        currency='NOK',
        narration_to_account_mappings=[
            ('GITHUB', 'Expenses:Cloud-Services:Source-Hosting:Github'),
            ('Fedex', 'Expenses:Postage:FedEx'),
            ('FREMTIND', 'Expenses:Insurance'),
        ]
    ),
    beancount_no_sparebank1.balance.PDFStatementImporter(
        'Assets:Checking',
        currency='NOK'
    ),
]

if __name__ == '__main__':
    ingest = beangulp.Ingest(importers)
    ingest()

See also

Release files for beancount-no-sparebank1 0.2.0

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-no-sparebank1 0.2.0
File Size Uploaded
beancount_no_sparebank1-0.2.0.tar.gz 7.9 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for beancount-no-sparebank1 0.2.0
File Interpreter ABI Platform
beancount_no_sparebank1-0.2.0-py3-none-any.whl Python 3 none any Details

Total release size: 10.7 kB

Release files / beancount_no_sparebank1-0.2.0.tar.gz

Download URL beancount_no_sparebank1-0.2.0.tar.gz
Size 7.9 kB
Tags Source
SHA-256 checksum
How to use checksums
67ee2ff1e1aa7c346d24040535454c370c75d9491d01409baca756c5cea37727
BLAKE2b-256 checksum
How to use checksums
43186a62246fed4f88160a9a9906c1f8bcb66cb32d6e601ae3952a9733a8c12f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.12.9

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Mar 26, 2025.

Transparency log

Release files / beancount_no_sparebank1-0.2.0-py3-none-any.whl

Download URL beancount_no_sparebank1-0.2.0-py3-none-any.whl
Size 2.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
58b48366c78e1c50a651431c77a634417bc5207ee389ddce5553f995148e0ba7
BLAKE2b-256 checksum
How to use checksums
70f593baf62db04a64081acab1d183c7c679153136a215560db5a3d7c88a52f4
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.12.9

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Mar 26, 2025.

Transparency log

Release history Release notifications | RSS feed

This release

0.2.0 This release

2 release files

0.1.0

2 release files

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