Skip to main content

A library that converts financial data from SpareBank 1 into structured Beancount accounting format.

Project description

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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

beancount_no_sparebank1-0.2.0.tar.gz (7.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

beancount_no_sparebank1-0.2.0-py3-none-any.whl (2.8 kB view details)

Uploaded Python 3

File details

Details for the file beancount_no_sparebank1-0.2.0.tar.gz.

File metadata

  • Download URL: beancount_no_sparebank1-0.2.0.tar.gz
  • Upload date:
  • Size: 7.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for beancount_no_sparebank1-0.2.0.tar.gz
Algorithm Hash digest
SHA256 67ee2ff1e1aa7c346d24040535454c370c75d9491d01409baca756c5cea37727
MD5 487e7cb417201505af3d4907f626dca5
BLAKE2b-256 43186a62246fed4f88160a9a9906c1f8bcb66cb32d6e601ae3952a9733a8c12f

See more details on using hashes here.

Provenance

The following attestation bundles were made for beancount_no_sparebank1-0.2.0.tar.gz:

Publisher: release.yml on staticaland/beancount-no-sparebank1

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file beancount_no_sparebank1-0.2.0-py3-none-any.whl.

File metadata

File hashes

Hashes for beancount_no_sparebank1-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 58b48366c78e1c50a651431c77a634417bc5207ee389ddce5553f995148e0ba7
MD5 28c60394061e4647d11e774c3a7011bf
BLAKE2b-256 70f593baf62db04a64081acab1d183c7c679153136a215560db5a3d7c88a52f4

See more details on using hashes here.

Provenance

The following attestation bundles were made for beancount_no_sparebank1-0.2.0-py3-none-any.whl:

Publisher: release.yml on staticaland/beancount-no-sparebank1

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page