Skip to main content

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

uv build
uv publish

Docs

Following the examples at beangulp repo.

Metadata

Release files for alens-importers 0.11.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for alens-importers 0.11.0
File Size Uploaded Provenance
alens_importers-0.11.0.tar.gz 71.5 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for alens-importers 0.11.0
File Interpreter ABI Platform
alens_importers-0.11.0-py3-none-any.whl Python 3 none any Details

Total release size: 116.5 kB

Release files / alens_importers-0.11.0.tar.gz

Download URL alens_importers-0.11.0.tar.gz
Size 71.5 kB
Tags Source
SHA-256 checksum
How to use checksums
ade452a64f4ccb1a39d4e429a454e138c7bf43c9e4b9e89ce97e1b47b512f799
BLAKE2b-256 checksum
How to use checksums
60a1309e30968fac43ba4a8c1ea61c5641db07c80119a45e834afc56c344c414
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.11.6 {"installer":{"name":"uv","version":"0.11.6","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":null,"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

Release files / alens_importers-0.11.0-py3-none-any.whl

Download URL alens_importers-0.11.0-py3-none-any.whl
Size 45.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
4d7865d034e4324575112abb9ea6702763634814aba63551587ed4d46830534a
BLAKE2b-256 checksum
How to use checksums
ced1481724cefb94a4422e764b50e906b7f83bdf81166baaee05d61bf0037b6f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.11.6 {"installer":{"name":"uv","version":"0.11.6","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":null,"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

Security for alens-importers 0.11.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page