Quick Start
You can install this library from PyPI:
python -m pip install strconstruct
All the StrConstruct classes can be imported directly from strconstruct
:
>>> import strconstruct
>>> dir(strconstruct)
['ConstructBase', 'StrCheck', 'StrCheckError', 'StrConst', 'StrConstructBuildError',
'StrConstructError', 'StrConstructFormatError', 'StrConstructParseError', 'StrDefault',
'StrFloat', 'StrIf', 'StrIfThenElse', 'StrInt', 'StrRebuild', 'StrStopFieldError',
'StrStopIf', 'StrStruct', 'StrSwitch',
...]
>>>