Skip to main content

ACH NACHA CCD+ file generator module for python.

Project description

NACHA CCD+ ACH file generator module for python. This has been tested with “CCD” batches with addenda records. Forked from carta-ach by Carta, Inc. and modified to include special charater support for Company, Bank and Supplier's Name.

Example:

from pyNacha.builder import AchFile import pandas

settings = { 'immediate_dest': '123456789', # Your bank's routing number 'immediate_org': '1098765432', # Bank assigned routing number 'immediate_dest_name': "BANKNAME", 'immediate_org_name': 'COMPANYNAMR', 'company_id': '1098765432', 'company_name': 'COMPANYNAME', 'trace_num': '00000000' }

ach_file = AchFile('A', settings) #file Id mod

entries = [ { 'type' : '22', # type of 'routing_number' : '12345678', 'account_number' : '11232132', 'amount' : '10.00', 'id_number': '901398852', 'name' : 'Alice&Wanderdust', 'addenda' : [ { 'payment_related_info': 'Here is some additional information', } ], }, { 'type' : '22', 'routing_number' : '12345678', 'account_number' : '234234234', 'amount' : '150.00', 'id_number': '901398853', 'name' : 'Billy Holiday', 'addenda' : [ { 'payment_related_info': 'Here is some additional information2', }, ], }, { 'type' : '22', 'routing_number' : '12323231', 'account_number' : '123123123', 'amount' : '12.13', 'id_number': '901398853', 'name' : 'Rachel Welch', }, ]

ach_file.add_batch('CCD', entries, credits=True, debits=True)

print(ach_file.render_to_string())

===============================================================================================

This returns the following NACHA file:

101 123456780 1234567801409020123A094101YOUR BANK YOUR COMPANY 5200YOUR COMPANY 1234567890PPDPAYROLL 140903 1123456780000001 62212345678011232132 0000001000 ALICE WANDERDUST 1123456780000001 705HERE IS SOME ADDITIONAL INFORMATION 00000000001 627123456780234234234 0000015000 BILLY HOLIDAY 0123456780000002 622123232318123123123 0000001213 RACHEL WELCH 0123456780000003 820000000400370145870000000150000000000022131234567890 123456780000001 9000001000001000000040037014587000000015000000000002213 9999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999 9999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999

Project details


Download files

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

Source Distribution

pyNacha-0.0.1.tar.gz (13.7 kB view details)

Uploaded Source

Built Distribution

pyNacha-0.0.1-py3-none-any.whl (13.5 kB view details)

Uploaded Python 3

File details

Details for the file pyNacha-0.0.1.tar.gz.

File metadata

  • Download URL: pyNacha-0.0.1.tar.gz
  • Upload date:
  • Size: 13.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.8.5

File hashes

Hashes for pyNacha-0.0.1.tar.gz
Algorithm Hash digest
SHA256 a5445bc7bf1f44393fb41bd3fb02d76b1396d622e3ae70d09189f42e040366d7
MD5 5d758ae57cd41dbf76d4e4301a790fc6
BLAKE2b-256 d60023b8aa7a0eede825c5019f923061617d86b47a28f225c0326c0ca3809121

See more details on using hashes here.

File details

Details for the file pyNacha-0.0.1-py3-none-any.whl.

File metadata

  • Download URL: pyNacha-0.0.1-py3-none-any.whl
  • Upload date:
  • Size: 13.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.8.5

File hashes

Hashes for pyNacha-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 95a9746ee3ccab2ac584fef9551853a6ffb18daf0ecddec0925e04093113efa7
MD5 f0b680a0eb4d27d01d7bb5ebf9cd308e
BLAKE2b-256 0d3933567976a2114acdd6b1747572f5943fe32b58fdedaab60ff507c3224128

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page