On the binary side Construct is quite nice:
<a href="https:&#x2F;&#x2F;construct.readthedocs.org" rel="nofollow">https:&#x2F;&#x2F;construct.readthedocs.org</a><p>I&#x27;ve used it for parsing various network protocols to good effect.