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 latest beangulp (0.3.0) from the git repository directly:

uv pip install git+https://github.com/beancount/beangulp/

Run

uv run python import.py extract ./downloads > out/tmp.beancount

Debugging

Install the latest beangulp (0.3.0) from a git clone instead.

uv pip install -e <path to beangulp>

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.

To configure the Flex report, see the instructions.

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.1.1.tar.gz (54.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.1.1-py3-none-any.whl (36.6 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for alens_importers-0.1.1.tar.gz
Algorithm Hash digest
SHA256 d79bc76f6cc852797485be5dfb02baa45618cc79c882c25590d58cffd4e2bd23
MD5 aaf25cb8c9e500daa8c635e74472c2d1
BLAKE2b-256 a6898593f0d750aff4307efa7103469fedad6699b7faa594a4ee4cb7e21fd9f0

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for alens_importers-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 febc9ca303a1df265175e861e4c338dd20675dd46232b9fc515c2d30a8e2b939
MD5 c92908c6c3b58f56f739c562e4674033
BLAKE2b-256 9f301f95c6fb88317271bd0f4d21fd834745b839354f26c41f1bc855b1e2d18b

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