Skip to main content

Importers and plugins for Beancount plain-text accounting

Project description

beancount-lalitm

Importers and plugins for Beancount plain-text accounting.

Disclaimer: I am not a tax professional or financial advisor. This code is provided as-is for personal use. The uk_cgt_lots plugin in particular implements my understanding of UK Capital Gains Tax rules, which may be incomplete or incorrect. Use at your own risk.

Installation

pip install beancount-lalitm

# With optional dependencies for specific importers
pip install beancount-lalitm[ib]      # Interactive Brokers (XML)
pip install beancount-lalitm[pdf]     # PDF-based importers
pip install beancount-lalitm[excel]   # Excel-based importers
pip install beancount-lalitm[all]     # All optional dependencies

Importers

Investment Platforms

Importer Description Input Format
IbImporter Interactive Brokers Flex Query XML
SchwabEacImporter Schwab Equity Award Center Text (PDF converted)
VanguardImporter Vanguard UK Excel
IgImporter IG Trading Text (PDF converted)
AjTransactionsImporter AJ Bell transactions PDF
AjCashImporter AJ Bell cash history CSV
AvivaPensionImporter Aviva pension Text (PDF converted)

Banks

Importer Description Input Format
HsbcImporter HSBC UK current account Text (PDF converted)
HsbcUkCcImporter HSBC UK credit card JSON
HsbcUsCcImporter HSBC US credit card JSON
HsbcUsCheckingImporter HSBC US checking Text (PDF converted)

Payroll

Importer Description Input Format
GooglePayslipImporter Google UK payslips Text (PDF converted)

Plugins

ancillary_accounts

Auto-creates companion accounts for investment securities (commissions, dividends, capital gains, withholding tax).

plugin "beancount_tools.plugins.ancillary_accounts"

2024-01-01 open Assets:Broker:AAPL  AAPL
  ancillary_commission_currency: USD
  ancillary_distribution_currency: USD
  ancillary_capital_gains_currency: USD

stock_split

Adjusts historical transactions for stock splits.

plugin "beancount_tools.plugins.stock_split" "
  splits:
    - symbol: GOOG
      date: 2022-07-15
      ratio: 20
"

uk_cgt_lots

UK Capital Gains Tax lot matching using Section 104 pooling.

plugin "beancount_tools.plugins.uk_cgt_lots" "
  accounts:
    - name: Person:UK:Broker:GIA
      taxable: true
    - name: Person:UK:Broker:ISA
      taxable: false
"

License

Apache 2.0 - see LICENSE for details.

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_lalitm-0.1.0.tar.gz (62.8 kB view details)

Uploaded Source

Built Distribution

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

beancount_lalitm-0.1.0-py3-none-any.whl (37.4 kB view details)

Uploaded Python 3

File details

Details for the file beancount_lalitm-0.1.0.tar.gz.

File metadata

  • Download URL: beancount_lalitm-0.1.0.tar.gz
  • Upload date:
  • Size: 62.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.0

File hashes

Hashes for beancount_lalitm-0.1.0.tar.gz
Algorithm Hash digest
SHA256 873f7a9eef6d232d4099d300112406f683a52629d514213b7cb2a3ad1e92f036
MD5 b2e8c4a745401c4718e62f8edab01d55
BLAKE2b-256 58b8167ea386bf10d1192d7dcec1e57b4013f1940f71a9fbe11181bcc8a87a8d

See more details on using hashes here.

File details

Details for the file beancount_lalitm-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for beancount_lalitm-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 c753422b2a8ea93097603f6a28ef8857a7d3ef12f67506268165ac91fa1b6796
MD5 893ab6e77fc43ab30664bf65be878646
BLAKE2b-256 d509dbda925f32931b12d44edf4e32c618c9dbfc00048787ecb5532bfc7206a2

See more details on using hashes here.

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