BAI File Parser
Project description
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 bai2
Usage
To use bai2 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
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
bai_file_processor-0.8.0.tar.gz
(22.5 kB
view hashes)
Built Distribution
Close
Hashes for bai_file_processor-0.8.0-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3f802987fff6e650f6b204f0182a3e7764e80ce0d90110158f8ded079375aa22 |
|
MD5 | 376d9078eba3d4297b3aca98855384dc |
|
BLAKE2b-256 | d06070a29ef63d4ff0383b44912e30ea973d4189b03f11b2ee158936c2e73ba6 |