$npx skillfedfor your agent

bai2

BAI2 Parser

With conditionsPyPI Python ModulesReleased Nov 2025102.8K downloads / moMITPure Python

Decision gist · record as of 2026-08-14

pure-Python wheel — bai2-0.15.0-py3-none-any.whl
v0.15.0 · released 2025-11-04 · Python >=3.6

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—verify compatibility with your specific bank's BAI2 variant before deploying to production.AI-flagged interpretation of the facts on this page — verify before relying

Before you install

  • Only tested on Python 3.10+, though documented as likely working on 3.7+; requires Python 3.6 or later.
  • Low install friction with no runtime dependencies.
  • Actively maintained; last commit 2026-03-01 with recent version 0.15.0 (2025-11-04) testing on Python 3.10 through 3.14.

License · maintenance · safety

MIT (permissive) — MIT license (permissive) allows use in commercial and private projects with minimal restrictions.

last release 2025-11-04 (283 days) · last repo commit 2026-03-01 · 30 stars

0 known vulnerabilities (OSV.dev, 2026-08-14) · 102,820 downloads/mo, #12,845 on PyPI

Verify before relying

pip install bai2

from bai2 import bai2

with open('file.bai2') as f:
    bai2_file = bai2.parse_from_file(f)

# or parse from string
bai2_file = bai2.parse_from_string(bai2_data)
  • Extent of real-world BAI2 file compatibility beyond NatWest, RBS, and JP Morgan implementations mentioned.
  • Current production-readiness status given the library's own note about insufficient test data.
  • Whether custom transaction type code overrides (TypeCodes) cover all common bank-specific variations.
Same gist for agents: .md · .json

What it is and 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 → Group → Account → TransactionDetail). It can also construct and write BAI2 files programmatically.

The 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.

Use it for

  • 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.

Worth the install?

AI-flagged interpretation of the facts on this page. Verify before relying on it.

With conditions

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—verify compatibility with your specific bank's BAI2 variant before deploying to production.

Install

bai2 on PyPI

Before you install

Low install friction with no runtime dependencies. Actively maintained; last commit 2026-03-01 with recent version 0.15.0 (2025-11-04) testing on Python 3.10 through 3.14. Development status is Beta.

Only tested on Python 3.10+, though documented as likely working on 3.7+; requires Python 3.6 or later.

License in practice

MIT license (permissive) allows use in commercial and private projects with minimal restrictions.

Quickstart

pip install bai2

from bai2 import bai2

with open('file.bai2') as f:
    bai2_file = bai2.parse_from_file(f)

# or parse from string
bai2_file = bai2.parse_from_string(bai2_data)

Verify before relying

  • Extent of real-world BAI2 file compatibility beyond NatWest, RBS, and JP Morgan implementations mentioned.
  • Current production-readiness status given the library's own note about insufficient test data.
  • Whether custom transaction type code overrides (TypeCodes) cover all common bank-specific variations.

Package facts

LicenseMIT permissive
Python supportSupports the current Python release >=3.6
Install frictionLow. Pure-Python wheel
Runtime dependenciesNone
MaintenanceActively maintained 283 days since the last release
Last repo commit
First released
Downloads102,820 / month, #12,845 on PyPI 30-day window, as of 2026-08-14
Known vulnerabilitiesNone known OSV.dev, checked 2026-08-14
Classifiers
Development Status :: 4 - BetaIntended Audience :: DevelopersLicense :: OSI Approved :: MIT LicenseNatural Language :: EnglishOperating System :: OS IndependentProgramming Language :: Python :: 3Programming Language :: Python :: 3 :: OnlyProgramming Language :: Python :: 3.10Programming Language :: Python :: 3.11Programming Language :: Python :: 3.12Programming Language :: Python :: 3.13Programming Language :: Python :: 3.14Topic :: Software Development :: Libraries :: Python Modules

Evidence: bai2-0.15.0-py3-none-any.whl

Tags

Capabilities
bai2 parserbank balance reportingcash management file formatbai2 file readerbalance and transaction parsingbanking data interchangebai2 writer
Topics
bankingfile-formatdata-interchange
PyPI keywords
bai2bookkeepingcash managementbalance reporting

Let your AI agent find packages like this

Example. Real query, live index.

You found this page by searching. An agent finds it by wishing: SkillFed indexes 14,416 PyPI packages by what they can do, searchable in plain language.

wish › “bai2 parser”

  • bai2Parses and writes BAI2 files, a standard format for bank balance…
  • ArpeggioArpeggio is a recursive descent parser with memoization that…
  • parsyParsy is a parser combinator library that lets you build complex text…

Give your agent the search over MCP, or paste the wish link into any chat.

More Python Modules packages

idna Worth it
PyPI · Python Modules · released Jun 2026

Converts domain names between Unicode and ASCII-compatible encoding (Punycode) according to IDNA 2008 and Unicode Technical Standard 46, with security validation and broader script coverage than the standard library.

Install it if you work with internationalized domain names, need to validate domains, or use HTTP clients that depend on it transitively.

BSD-3-Clausepure Python · 3.9+
1.8Bdownloads / mo
setuptools Worth it
PyPI · Python Modules · released Aug 2026

Setuptools is a Python build backend and package management tool that handles building, distributing, and installing Python packages, including support for C/C++ extension modules.

MITpure Python · 3.10+
1.6Bdownloads / mo
PyYAML Worth it
PyPI · Python Modules · released Sep 2025

PyYAML parses and emits YAML 1.1 data format, enabling serialization and deserialization of configuration files and Python objects to and from human-readable YAML text.

MITcompiled wheel · 3.8+
1.2Bdownloads / mo
pydantic Worth it
PyPI · Python Modules · released May 2026

Pydantic validates Python data structures against type hints, coercing and checking input at runtime to ensure it matches a declared schema.

MITpure Python · 3.9+
1.1Bdownloads / mo
annotated-types Worth it
PyPI · Python Modules · released Jul 2026

Provides reusable metadata objects for use with PEP-593 `typing.Annotated` to express common constraints like bounds, collection sizes, and predicates on types.

Install it if you use or build libraries that need to express type constraints in a standardized, inspectable way—or if you want to annotate your own types with…

MITpure Python · 3.10+
871.3Mdownloads / mo
typing-inspection Worth it
PyPI · Python Modules · released Aug 2026

Provides runtime tools to inspect and introspect Python type annotations, enabling programmatic examination of type hints at execution time.

MITpure Python · 3.10+
783.0Mdownloads / mo

See also mt-940 · beancount · fints · ofxparse · Adyen · ofxtools · sepaxml · beanstream · banks