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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file alens_importers-0.9.0.tar.gz.
File metadata
- Download URL: alens_importers-0.9.0.tar.gz
- Upload date:
- Size: 63.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.7.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
45ee67b406ca4fe29b0cf71ac0758b421e0fc7c90b9fe29e95115b1bf22fe5e8
|
|
| MD5 |
0af6aad830b2f86ec8c60a79df5144dd
|
|
| BLAKE2b-256 |
936ec015596d92c5cd10b89e24da7d372b1fb85ce52103ee1dac9751b1a2adc8
|
File details
Details for the file alens_importers-0.9.0-py3-none-any.whl.
File metadata
- Download URL: alens_importers-0.9.0-py3-none-any.whl
- Upload date:
- Size: 43.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.7.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b924175e5ab890fb73555789051276247d91402e57fbdd2fc2d7add328ea5b10
|
|
| MD5 |
206eb500908506628c634dc7d0f6a1d3
|
|
| BLAKE2b-256 |
76e2cac3ed73ec729ae4729890fa0fd3add74307e901c77982d70b39316d8a9e
|