Skip to main content

Importers for Beancount's beangulp

Project description

alens-importers

Tool for importing IB Flex report entries into Beancount journal

Converting the functionality of interactive-brokers-flex-rs, ibflex, repo project to Python. Since Beancount provides an ingestion framework, beangulp, the tool should utilize that.

Former ib-flex-importer.

Setup

Install the ibflex package from the git repository directly:

uv pip install git+https://github.com/csingley/ibflex/

Eventually, also install the latest beangulp:

uv pip install git+https://github.com/beancount/beangulp/

Run

uv run python import.py extract ./downloads > out/tmp.beancount
# with deduplication
uv run python import.py extract ./downloads -e existing.beancount > out/tmp.beancount

Testing

From terminal, the template is:

uv run pytest
uv run pytest <file_path>::<test_function_name>
uv run pytest <file_path>::<TestClassName>::<test_method_name>

Individual tests:

uv run pytest tests\test_ibflex.py::test_tax_reversal
uv run pytest tests\test_ibflex.py::test_cash_balances

Publish

The project cannot be published as it depends on the development version of the beangulp package, which is not published yet.

Docs

Following the examples at beangulp repo.

To configure the Flex report, see the instructions.

Related Projects

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

alens_importers-0.2.0.tar.gz (53.3 kB view details)

Uploaded Source

Built Distribution

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

alens_importers-0.2.0-py3-none-any.whl (36.8 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: alens_importers-0.2.0.tar.gz
  • Upload date:
  • Size: 53.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.7.8

File hashes

Hashes for alens_importers-0.2.0.tar.gz
Algorithm Hash digest
SHA256 aaf5ece6bef6c6bca29dcdf377b2f25fc6ef3aff867dece11dd6010381f14f75
MD5 d71e0b333edcd1e3480a2216a9bb8e18
BLAKE2b-256 56df7482ce5d22210b0d33fc78887da059fa443a8301616d4bb8e1a8595ea026

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for alens_importers-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 f77d66f0b71b30470cba600e829822e28fb2113a72bb531525fb0d4358361104
MD5 e7a10bd3aa5ded34caa5a2bc1e26075e
BLAKE2b-256 4819565c89da5d62d811284c9b9e907d430241b186e6946ece8b608472f7feb2

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