A Python library for parsing COBOL copybooks (data definition records). Current version 1.0.16. Development appears infrequent with no recent releases.
pip install copybookNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Parse a COBOL copybook string and get field positions.
Use open('copybook.cbl').read() to get the content, then pass it to parse.When using layout offsets, remember that the first byte is 1. Adjust if your downstream expects 0-based.