C-style structs for Python

Edit Package python-cstruct
http://github.com/andreax79/python-cstruct

Convert C struct definitions into Python classes with methods for
serializing/deserializing. The usage is very simple: create a class
subclassing cstruct.CStruct and add a C struct definition as a
string in the struct field. The C struct definition is parsed at
runtime and the struct format string is generated. The class offers
the method "unpack" for deserializing a string of bytes into a
Python object and the method "pack" for serializing the values into
a string.

Refresh
Refresh
Source Files
Filename Size Changed
python-cstruct-5.3.tar.gz 0000038987 38.1 KB
python-cstruct.changes 0000002125 2.08 KB
python-cstruct.spec 0000002163 2.11 KB
Latest Revision
Ana Guerrero's avatar Ana Guerrero (anag+factory) accepted request 1137640 from Dirk Mueller's avatar Dirk Mueller (dirkmueller) (revision 7)
- update to 5.3:
  * fix struct in struct array parsing
  * Python 3.12 support

- Update to version 5.1
Comments 0
openSUSE Build Service is sponsored by