A library for parsing and formatting IBM mainframe overpunch (signed numeric) fields. Used to convert between human-readable numbers and the compact byte-level representations common in legacy COBOL systems. Current version 1.1, stable and rarely updated.
pip install overpunchVerified import paths — ran on the pinned version, not inferred.
Parse overpunch bytes to int and format int to bytes.
Check the last nibble of the last byte. Use parser.parse() which handles standard encodings.
Prefix zeros manually before formatting, e.g., format as a string with leading zeros, then convert to overpunch.
When upgrading to 1.1, ensure your input byte strings have the correct length for the number of decimal digits plus one sign nibble.
No dependency data recorded yet.