Skip to main content
This is a pre-production deployment of Warehouse. Changes made here affect the production instance of PyPI (
Help us improve Python packaging - Donate today!

A library for parsing files in the BAI lockbox format.

Project Description

A simple parser for files in the BAI lockbox format in order to extract checks from them.


To install bai-lockbox:

$ pip install bai-lockbox


Please be aware that this code was written to the spec that our bank uses, and has been tested with data that has come from them. This means that there may be subtle (and maybe some not-so-subtle) differences between the the data we expect and the data you get. If our parser doesn’t read your files, open an issue or submit a PR. We’d really appreciate it!


from lockbox.parser import LockboxFile
with open('/path/to/file', 'r') as inf:
    lockbox_file = LockboxFile.from_file(inf)

for check in lockbox_file.checks:
    print('Received ${} from {} on {}'.format(
        check.amount, check.sender,

More information can be found in the docs which can be build from source:

$ cd path/to/bai-lockbox/docs
$ make html

or by going to the documentation page.

Release History

History Node


History Node


This version
History Node


History Node


History Node


History Node


History Node


Download Files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Filename, Size & Hash SHA256 Hash Help File Type Python Version Upload Date
(9.1 kB) Copy SHA256 Hash SHA256
Wheel py2.py3 Feb 8, 2017
(7.6 kB) Copy SHA256 Hash SHA256
Source None Feb 8, 2017

Supported By

Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Google Google Cloud Servers