{"id":44413673,"url":"https://github.com/mekanics/beancount-tools-collection","last_synced_at":"2026-02-12T07:51:52.516Z","repository":{"id":301743275,"uuid":"1010123336","full_name":"mekanics/beancount-tools-collection","owner":"mekanics","description":"🧮 My personal collection of beancount tools including importers, price fetchers, plugins, and utilities for various financial institutions.","archived":false,"fork":false,"pushed_at":"2025-10-01T21:21:47.000Z","size":56,"stargazers_count":0,"open_issues_count":1,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-10-01T23:26:12.246Z","etag":null,"topics":["beancount","fava"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mekanics.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null},"funding":{"github":null,"patreon":null,"open_collective":null,"ko_fi":"mekanics","tidelift":null,"community_bridge":null,"liberapay":null,"issuehunt":null,"lfx_crowdfunding":null,"polar":null,"buy_me_a_coffee":null,"thanks_dev":null,"custom":null}},"created_at":"2025-06-28T11:51:53.000Z","updated_at":"2025-10-01T21:21:18.000Z","dependencies_parsed_at":"2025-06-28T15:33:32.276Z","dependency_job_id":"587a4697-8733-440c-99ea-c4ed2785a8bf","html_url":"https://github.com/mekanics/beancount-tools-collection","commit_stats":null,"previous_names":["mekanics/beancount-tools-collection"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/mekanics/beancount-tools-collection","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mekanics%2Fbeancount-tools-collection","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mekanics%2Fbeancount-tools-collection/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mekanics%2Fbeancount-tools-collection/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mekanics%2Fbeancount-tools-collection/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mekanics","download_url":"https://codeload.github.com/mekanics/beancount-tools-collection/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mekanics%2Fbeancount-tools-collection/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29361810,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-12T01:03:07.613Z","status":"online","status_checked_at":"2026-02-12T02:00:06.911Z","response_time":55,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["beancount","fava"],"created_at":"2026-02-12T07:51:52.137Z","updated_at":"2026-02-12T07:51:52.509Z","avatar_url":"https://github.com/mekanics.png","language":"Python","funding_links":["https://ko-fi.com/mekanics"],"categories":[],"sub_categories":[],"readme":"# Beancount Tools Collection\n\n🧮 My personal collection of beancount tools including importers, price fetchers, plugins, and utilities for various financial institutions.\n\n[![Python 3.8+](https://img.shields.io/badge/python-3.8+-blue.svg)](https://www.python.org/downloads/)\n[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)\n[![GitHub issues](https://img.shields.io/github/issues/mekanics/beancount-tools-collection)](https://github.com/mekanics/beancount-tools-collection/issues)\n\n## Features\n\n### 📥 Data Importers\n\n**Swiss Institutions:**\n\n- **Yuh** - CSV exports\n- **Viseca** - JSON transaction exports (including Migros Cumulus Credit Card)\n- **VIAC** - JSON transaction exports (pillar 2 \u0026 3a)\n- **Finpension** - CSV transaction reports (pillar 3a)\n\n**International Institutions:**\n\n- **Interactive Brokers** - FlexQuery XML reports (global)\n- **Revolut** - CSV exports (multi-country)\n\n**Other Formats:**\n\n- **Firefly III** - CSV exports\n\n### 💰 Price Fetchers\n\n- **Interactive Brokers** - Real-time prices from FlexQuery\n\n### 🔌 Beancount Plugins\n\n- _Crickets chirping_ 🦗 - This section is as empty as my wallet after buying crypto at the peak\n\n### 🛠️ Utility Scripts\n\n- **Transaction Processor** - Example transaction processing with ImporterProtocolAdapter and TransactionInspector for automatic categorization and payee standardization\n\n## Installation\n\n### From PyPI (when published)\n\n```bash\npip install beancount-tools-collection\n```\n\n### From Source\n\n```bash\ngit clone https://github.com/mekanics/beancount-tools-collection.git\ncd beancount-tools-collection\npip install -e .\n```\n\n## Quick Start\n\n### Basic Importer Configuration\n\n```python\nfrom beancount_tools_collection.importers import (\n    finpension, ibkr, revolut,\n    viac, viseca, yuh\n)\n\n# Example configuration\nCONFIG = [\n    # Swiss institutions\n    finpension.FinpensionImporter(\n        root_account=\"Assets:Pension:S3:Finpension:Portfolio1\",\n        deposit_account=\"Assets:Checking\",\n        isin_lookup={\n            \"CH0132501898\": \"CH0132501898\",  # Example ISIN mapping\n            # ... more ISINs\n        }\n    ),\n\n    viac.ViacImporter(\n        root_account=\"Assets:Pension:S3a:Viac:Portfolio1\",\n        deposit_account=\"Assets:Checking\",\n        share_lookup={\n            \"UBS SMI\": {\"isin\": \"CH0033782431\", \"symbol\": \"CH0033782431\"},\n            # ... more share mappings\n        }\n    ),\n\n    yuh.YuhImporter(\n        account=\"Assets:Cash:Yuh:CHF\",\n        goals_base_account=\"Assets:Savings:Yuh\"\n    ),\n\n    # International institutions\n    ibkr.IBKRImporter(\n        Mainaccount=\"Assets:Invest:InteractiveBrokers\",\n        DivAccount=\"Income:Dividends:InteractiveBrokers\",\n        WHTAccount=\"Expenses:Taxes:WithholdingTax\",\n        PnLAccount=\"Income:Invest:Gains\",\n        FeesAccount=\"Expenses:Invest:Fees\",\n        configFile=\"ibkr.yaml\"  # Your IBKR FlexQuery config\n    ),\n\n    revolut.RevolutImporter(\n        \"revolut_chf\",\n        \"Assets:Cash:Revolut:CHF\",\n        \"CHF\"\n    ),\n]\n```\n\n### Price Fetcher Configuration\n\n```python\n# In your beancount price configuration\nfrom beancount_tools_collection.prices import ibkr\n\n# The IBKR price source will be available for bean-price\n```\n\n## Documentation\n\n### Importer-Specific Setup\n\nEach importer has specific requirements and configuration options:\n\n- **[Finpension](docs/importers/finpension.md)** - CSV transaction reports\n- **[Interactive Brokers](docs/importers/ibkr.md)** - FlexQuery configuration\n- **[VIAC](docs/importers/viac.md)** - JSON export setup\n- **[Yuh](docs/importers/yuh.md)** - CSV export configuration\n\n### Account Structure Examples\n\nThe importers work best with structured account hierarchies:\n\n```\nAssets:\n  Cash:\n    Yuh:\n      CHF\n      USD\n    Revolut:\n      CHF\n      EUR\n  Invest:\n    InteractiveBrokers:\n      Long-Term:\n        VTI\n        VXUS\n        USD\n  Pension:\n    S3a:\n      Finpension:\n        Portfolio1:\n          CHF\n      Viac:\n        Portfolio1:\n          CH0132501898\n\nIncome:\n  Dividends:\n    InteractiveBrokers:\n      Long-Term:\n        USD\n  Pension:\n    S3a:\n      Finpension:\n        Portfolio1:\n          Interest:\n            CHF\n\nExpenses:\n  Invest:\n    Fees:\n      CHF\n      USD\n  Taxes:\n    WithholdingTax\n```\n\n## Contributing\n\nWe welcome contributions! Here's how you can help:\n\n1. **Add new importers** for financial institutions\n2. **Improve existing importers** with bug fixes and features\n3. **Add price fetchers** for different data sources\n4. **Create plugins** for common beancount workflows\n5. **Improve documentation** and examples\n\n### Development Setup\n\n```bash\ngit clone https://github.com/mekanics/beancount-tools-collection.git\ncd beancount-tools-collection\npip install -e \".[dev]\"\n```\n\n### Running Tests\n\n```bash\npytest\n```\n\n### Code Formatting\n\n```bash\nblack src/\nisort src/\n```\n\n## License\n\nThis project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details.\n\n## Acknowledgments\n\n- The [beancount](https://github.com/beancount/beancount) project for the excellent accounting framework\n- Various open-source beancount importers that served as inspiration\n\n## Support\n\n- 📖 [Documentation](https://github.com/mekanics/beancount-tools-collection#readme)\n- 🐛 [Bug Reports](https://github.com/mekanics/beancount-tools-collection/issues)\n- 💬 [Discussions](https://github.com/mekanics/beancount-tools-collection/discussions)\n\n---\n\n**Made with ❤️ for personal finance tracking**\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmekanics%2Fbeancount-tools-collection","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmekanics%2Fbeancount-tools-collection","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmekanics%2Fbeancount-tools-collection/lists"}