Skip to content

BAI File Parser Library for Python 3+

License

MIT, MIT licenses found

Licenses found

MIT
LICENSE
MIT
LICENSE.txt
Notifications You must be signed in to change notification settings

goshmiller/bai-file-processor

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

bai-file-processor

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

About

BAI File Parser Library for Python 3+

Resources

License

MIT, MIT licenses found

Licenses found

MIT
LICENSE
MIT
LICENSE.txt

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 99.3%
  • Makefile 0.7%