/fixed-length-parser

Miniscule parser for fixed-length text, in Python

Primary LanguagePythonBSD 3-Clause "New" or "Revised" LicenseBSD-3-Clause

FixedLengthParser

About

The FixedLengthParser class is a tiny, read-only helper to parse fixed-length text records (like this and these) into something more usable (an OrderedDict, in this case).

Requirements

Python 3.3

todo

  • add a sample
  • be more flexible with the incoming field definitions
  • don't require Python 3.3, that's dumb
  • support fixed-length record writing