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

uv build
uv publish

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.6.tar.gz (68.9 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.6-py3-none-any.whl (43.9 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: alens_importers-0.10.6.tar.gz
  • Upload date:
  • Size: 68.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.11.15 {"installer":{"name":"uv","version":"0.11.15","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Debian GNU/Linux","version":"13","id":"trixie","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for alens_importers-0.10.6.tar.gz
Algorithm Hash digest
SHA256 b617cc765b53f2166a56333b8f9d90dbe37d84b56b5d0e52dd08f7f5347bcfe8
MD5 88c6908bcc443003121767b7e782e53f
BLAKE2b-256 06926c3c8a625730ac43c7df053d952f61b0d567abd4c0c80df400389b050269

See more details on using hashes here.

File details

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

File metadata

  • Download URL: alens_importers-0.10.6-py3-none-any.whl
  • Upload date:
  • Size: 43.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.11.15 {"installer":{"name":"uv","version":"0.11.15","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Debian GNU/Linux","version":"13","id":"trixie","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for alens_importers-0.10.6-py3-none-any.whl
Algorithm Hash digest
SHA256 4f944c108345935a3ba579b420851eae1a93e740204a97435e71dd7f3220fe29
MD5 2c319745f0a7eccdcae6f1fca17fabc7
BLAKE2b-256 6b43bbd439f395cf80144a79c3b57e43296ea5c0c365d0393b6cf3a949daee46

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