https://github.com/korc/structx
Structured data analyze / creation library
https://github.com/korc/structx
Last synced: 7 months ago
JSON representation
Structured data analyze / creation library
- Host: GitHub
- URL: https://github.com/korc/structx
- Owner: korc
- Created: 2009-09-11T01:01:30.000Z (almost 17 years ago)
- Default Branch: master
- Last Pushed: 2013-10-17T07:59:14.000Z (almost 13 years ago)
- Last Synced: 2025-09-22T22:32:03.795Z (11 months ago)
- Language: Python
- Homepage:
- Size: 230 KB
- Stars: 3
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.txt
Awesome Lists containing this project
README
Crafting packet structures with gui
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Create a example.py file with contents:
--- example.py ---
from packetlib import BasePacketClass, StringSZ, AttrList
class ExamplePacket(BasePacketClass):
_fields_=AttrList(('data',StringSZ))
--- END ---
Having intersting binary data in some_data_file, run
gui.py example.py:ExamplePacket some_data_file
Start thinking what binary data might mean and add definitions to _fields_
attribute appropriately, then reload the class in gui to see changes.