Skip to main content

beancount-india

Beancount importers for Indian financial institutions.

Installation

uv add beancount-india

HDFC Bank

Account statements

On the HDFC NetBanking Account Statement page, download the statement in Delimited format. Supported filenames have this form:

Acct_Statement_XXXXXXXX1234_01012025.txt

Transactions use their value dates. When possible, the importer derives an opening balance from the first transaction in the statement.

Credit card statements

On the HDFC Bank Get Statement page, download a past statement in CSV format. Supported filenames have this form:

Jan2025_Billedstatements_1234_06-01-25_20-46.csv

Purchases produce negative liability postings; payments and refunds produce positive postings. Nonzero reward points are included as reward_points metadata.

Configuration

Configure the importers with full account or card numbers mapped to their Beancount accounts. Numbers must be strings; filenames are matched using their final four digits.

import beangulp

from beancount_india.hdfc import HDFCAccountImporter, HDFCCardImporter

ingest = beangulp.Ingest(
    [
        HDFCAccountImporter({"12345678901234": "Assets:HDFC:Account"}),
        HDFCCardImporter({"1234567890123456": "Liabilities:HDFC:Card"}),
    ]
)

if __name__ == "__main__":
    ingest()

State Bank of India

Install the SBI statement dependencies:

uv add "beancount-india[sbi]"

On the SBI Statements page, download the statement in Excel format. Supported filenames have this form:

AccountStatement_01012025_120000.xlsx

Configure full SBI account numbers with their Beancount accounts and statement passwords. A password may be a string or a zero-argument callable:

import os

from beancount_india.sbi import SBIAccountConfig, SBIAccountImporter

sbi = SBIAccountImporter(
    {
        "12345678901": SBIAccountConfig(
            account="Assets:Bank:SBI",
            password=lambda: os.environ["SBI_STATEMENT_PASSWORD"],
        )
    }
)

Transactions use their statement dates. When possible, the importer derives an opening balance from the first transaction.

Metadata

Release files for beancount-india 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-india 0.2.0
File Size Uploaded Provenance Actions
beancount_india-0.2.0.tar.gz 16.6 kB With provenance Details for beancount_india-0.2.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for beancount-india 0.2.0
File Interpreter ABI Platform Actions
beancount_india-0.2.0-py3-none-any.whl Python 3 none any Details for beancount_india-0.2.0-py3-none-any.whl

Total release size: 37.3 kB

Release files / beancount_india-0.2.0.tar.gz

Download URL beancount_india-0.2.0.tar.gz
Size 16.6 kB
Tags Source
SHA-256 checksum
How to use checksums
a84ad08ee168be47db64773d1fab7a116793dcb2b6d2d7e3d2f11854dd194a05
BLAKE2b-256 checksum
How to use checksums
cec04ec6db31ed5105d01a7954c185dcecb5ef43ee6da10c21c301fa56bdf900
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.13.9 {"installer":{"name":"uv","version":"0.13.9","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"26.04","id":"resolute","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

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 Nov 21, 2026.

Transparency log

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

Download URL beancount_india-0.2.0-py3-none-any.whl
Size 20.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
b57a688ad0147d33ec4fc9d54801133463bbcb3a8972d811e0b5d4e2b36053b0
BLAKE2b-256 checksum
How to use checksums
9aa21067b313830e109ca36f8db0ed1b735ca17a908cecab42497ffe09d9753e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.13.9 {"installer":{"name":"uv","version":"0.13.9","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"26.04","id":"resolute","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

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 Nov 21, 2026.

Transparency log

Security for beancount-india 0.2.0

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.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for beancount_india-0.2.0.tar.gz

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 Nov 21, 2026.

Transparency log

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.

Release history Release notifications | RSS feed

This release

0.2.0 This release

2 release files Full provenance

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