{"categories":[{"label":"Python Modules","url":"https://skillfed.io/packages/category/software-development-libraries-python-modules/20"}],"enrichment":{"capability":"Parses and writes BAI2 files, a standard format for bank balance reporting and cash management data exchange.","skillfed_tags":["banking","file-format","data-interchange"],"use_cases":["Parse bank-supplied BAI2 files to extract account balances and transaction details for reconciliation or reporting.","Integrate bank balance data into accounting or treasury management systems that consume BAI2 format.","Generate BAI2 files programmatically for cash management data interchange between internal systems and banks.","Validate BAI2 file integrity by checking control totals and object counts against reported values.","Handle bank-specific transaction codes by registering custom type codes for non-standard implementations."],"what_it_does":"bai2 is a Python parser and writer for BAI2 files, the standard format used by banks to report account balances and transactions for cash management. It reads BAI2 data from files, strings, or line-by-line input and returns structured model objects representing the file hierarchy (Bai2File \u2192 Group \u2192 Account \u2192 TransactionDetail). It can also construct and write BAI2 files programmatically.\n\nThe library is actively maintained but explicitly notes it is not yet production-ready due to limited test data. It handles parsing errors, unsupported features, and integrity checks via three exception types. Known to work with files from NatWest, RBS, and JP Morgan, though different banks implement the BAI2 spec with variations. Supports custom transaction type codes for bank-specific extensions.","worth_installing":"Yes, if you need to parse or generate BAI2 files and can tolerate Beta status. The library has low install friction, no dependencies, active maintenance, and covers the core use case. However, the maintainers explicitly warn it is not production-ready due to insufficient real-world test data\u2014verify compatibility with your specific bank's BAI2 variant before deploying to production."},"id":"bai2","links":{"html":"https://skillfed.io/packages/bai2","md":"https://skillfed.io/packages/bai2.md","pypi":"https://pypi.org/project/bai2/"},"maintenance":{"status":"active"},"meta":{"latest_release":"2025-11-04","license_spdx":null,"license_treatment":"permissive","name":"bai2","python_support":"supports_current","summary":"BAI2 Parser"},"popularity":{"monthly_downloads":102820,"position":12845,"tier":"top_15000"},"security":{"n_vulnerabilities":0},"version":"0.15.0"}
