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.9.1.tar.gz (63.1 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.9.1-py3-none-any.whl (43.1 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for alens_importers-0.9.1.tar.gz
Algorithm Hash digest
SHA256 e928939347356273046b3db8d59811d40d109905ab1500534a166a0a87f466b4
MD5 8743bac5007e2a1a8d576989793330f8
BLAKE2b-256 285caf15e63e1e0570f950d154c982729bdc6f4791e5bd1b209a7e4cf517ed37

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for alens_importers-0.9.1-py3-none-any.whl
Algorithm Hash digest
SHA256 d2db828e9490671fd51d3f55f9d49ea34ced6741c7c3dd40821a2f3dcc24f44e
MD5 5e3d2bd85f0f0e5a720af387dce5e68f
BLAKE2b-256 413ffa65e177588e763338448e00745c47ca1271c84e5ba5323d2075974294ba

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