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

See the test_ibflex.py file for an example of 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.

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.4.0.tar.gz (53.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.4.0-py3-none-any.whl (37.0 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for alens_importers-0.4.0.tar.gz
Algorithm Hash digest
SHA256 98a13d565143b62294bac73ca239a9a3c70bce04b0ad079d8c06c8f4d561f045
MD5 ec10039ba67d5c9b82ac6ee1cf9c80b9
BLAKE2b-256 0c80939f6da20367ffedec5d67625eabe40497b4fec34a3d5e64ccf9847d037d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for alens_importers-0.4.0-py3-none-any.whl
Algorithm Hash digest
SHA256 8002e4fe1e86f637d968ba6c92ade282c4059c4a0637d1b15378627c460ea7dd
MD5 665d5026dd3ddc68ed19ff6be4d4c075
BLAKE2b-256 4e72b583b66a79c2942d1414c1d486a3639811e0f2bf9259637f80048ec28114

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