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/

Configuration

To configure the IBKR Flex Query report, see the instructions.

The test_ibflex.py file contains a working example of importer configuration.

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.

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.10.2.tar.gz (68.5 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.10.2-py3-none-any.whl (43.8 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for alens_importers-0.10.2.tar.gz
Algorithm Hash digest
SHA256 ea1c1ac644ef3c75d231223fa913c9d8d7f9b797c76a47ff7996ea8b8450122b
MD5 b00a1e5f6516059392d7bbec51320027
BLAKE2b-256 c238f2560e73a85e68ba41b6fe4f09a017f32c3d4a23bfa269065fdff778949f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for alens_importers-0.10.2-py3-none-any.whl
Algorithm Hash digest
SHA256 61078452c533be0d61971fd6cae45e10f24ad575eee3a2cc943b3606b2ee6f9c
MD5 20219b4c0df424817c55feacf2edf103
BLAKE2b-256 dc690cf2533d07a15b6520cdb0f1358a2c907aad9b5185be219a8895d8cef74e

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