NACHA File Generation
Project description
nacha
NACHA is a fixed sized record format used to represent financial transactions composed like this:
FileHeader
CompanyBatchHeader
EntryDetail
EntryDetailAddendum
...
...
CompanyBatchControl
...
FileControl
which we express using bryl. Writing is done like this:
with open('sample.nacha', 'w') as fo:
writer = nacha.Writer(fo)
with writer.begin_file(
...
):
with writer.begin_company_batch(
...
):
writer.entry(...):
...
...
Reading is done by iterating records like this:
with open('sample.nacha', 'r') as fo:
reader = Reader(fo, include_terminal=True)
for record, terminal in reader:
...
Or structured like this:
with open('sample.nacha', 'r') as fo:
reader = Reader(fo)
reader.file_header()
for company_batch_header in reader.company_batches():
for entry_detail, entry_addenda in reader.entries():
...
reader.company_batch_control()
reader.file_control()
use
$ pip install nacha3
dev
$ git clone https://github.com/rockxraj68/nacha3.git
$ cd nacha
$ mkvirtualenv nacha
(nacha)$ pip install -e .[tests]
(nacha)$ py.test tests.py --cov=nacha --cov-report term-missing
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
nacha3-0.0.2.tar.gz
(14.5 kB
view details)
Built Distribution
nacha3-0.0.2-py3-none-any.whl
(25.1 kB
view details)
File details
Details for the file nacha3-0.0.2.tar.gz
.
File metadata
- Download URL: nacha3-0.0.2.tar.gz
- Upload date:
- Size: 14.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.32.2 CPython/3.6.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 |
71892ddf54149152dd3d5471322c8b4e0b9419a1666ee45363193009ef38a991
|
|
MD5 |
af19cf1c5de94f5d0edf6f1ce1e5983e
|
|
BLAKE2b-256 |
385eec77ea43686c51452fa079a075e4829790e0c5ee4316a63fdaae44748052
|
File details
Details for the file nacha3-0.0.2-py3-none-any.whl
.
File metadata
- Download URL: nacha3-0.0.2-py3-none-any.whl
- Upload date:
- Size: 25.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.32.2 CPython/3.6.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 |
1219434b0ac124cfb6755d8ed03034e3e43ad16f0761901e037a3a159155b930
|
|
MD5 |
8bf3ea49c479c5fb8de69e2cb08a3bd7
|
|
BLAKE2b-256 |
c8c18fb016620d29325cf77111e5431bd3c80d62140d9e8f48ce7f3c190489ad
|