{"library":"plum-py","title":"plum-py","description":"Pack/Unpack Memory. A Python library for packing and unpacking binary data structures, similar to struct but with higher-level features. Current version 0.8.7, release cadence is low (last release August 2022).","language":"python","status":"active","last_verified":"Fri May 01","install":{"commands":["pip install plum-py"],"cli":null},"imports":["from plum import Struct"],"auth":{"required":false,"env_vars":[]},"quickstart":{"code":"from plum import Struct\n\nclass MyHeader(Struct):\n    magic: 'I'  # unsigned int\n    length: 'I'\n    data: 'I'\n\nhdr = MyHeader(magic=0x1234, length=100, data=0)\nbuffer = hdr.pack()\nprint(buffer.hex())\n","lang":"python","description":"Define a struct with fields and pack into bytes.","tag":null,"tag_description":null,"last_tested":null,"results":[]},"compatibility":null}