Skip to main content

Python module for parsing and writing Bai files.

Built on top of BAI2 Python package with additional Export features added

Requirements

Python 3.3+ are supported.

Installation

pip install bai-file-processor

Usage

To use bai file processor in a project

from bai_file_processor import bai_parser

# parse from a file & export as CSV (summary & Transactions)
bai_parser.extract_bai_components('XXXXX.bai', export_csv=True, filepath='output')

# parse from a file & extract data as dictionary
header_dict, grp_header_dict, list_transactions, summary_accounts = bai_parser.extract_bai_components('XXXX.bai')

# WIth debug
bai_parser.extract_bai_components('XXXX.bai',debug=True)

Models

Models structure:

Bai2File
    Bai2FileHeader
    Group
        GroupHeader
        Account
            AccountIdentifier
            TransactionDetail
            AccountTrailer
        GroupTrailer
    Bai2FileTrailer

Release files for bai-file-processor 1.0.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for bai-file-processor 1.0.0
File Size Uploaded
bai_file_processor-1.0.0.tar.gz 22.5 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for bai-file-processor 1.0.0
File Interpreter ABI Platform
bai_file_processor-1.0.0-py2.py3-none-any.whl Python 3, Python 2 none any Details

Total release size: 42.1 kB

Release files / bai_file_processor-1.0.0.tar.gz

Download URL bai_file_processor-1.0.0.tar.gz
Size 22.5 kB
Tags Source
SHA-256 checksum
How to use checksums
6993e5cf3862180efeb9c02895026ed3e388708b019580e3b0b390864d528116
BLAKE2b-256 checksum
How to use checksums
b0de85eb34698b25594758a60610575fadc956078b20630f0fc915f1338b2f5a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.4.2 importlib_metadata/4.6.3 pkginfo/1.7.1 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.62.0 CPython/3.8.2

Release files / bai_file_processor-1.0.0-py2.py3-none-any.whl

Download URL bai_file_processor-1.0.0-py2.py3-none-any.whl
Size 19.6 kB
Tags Python 2 Python 3
SHA-256 checksum
How to use checksums
013cd494fc42ff54ce95cbd60bb55e7fdfed4ab17fee8a3d81fce95749033a90
BLAKE2b-256 checksum
How to use checksums
82b41fb5cfb99665949893d5181ad76bdd8e6ad4ef4fbfcb836c353bc2458b97
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.4.2 importlib_metadata/4.6.3 pkginfo/1.7.1 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.62.0 CPython/3.8.2

Release history Release notifications | RSS feed

This release

1.0.0 This release

2 release files

0.8.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page