C-style structs for Python
http://github.com/andreax79/python-cstructConvert 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.
- Devel package for openSUSE:Factory
-
1
derived packages
- Download package
-
Checkout Package
osc -A https://api.opensuse.org checkout devel:languages:python/python-cstruct && cd $_
Refresh
Refresh
Source Files
Filename | Size | Changed |
---|---|---|
_link | 0000000124 124 Bytes | over 1 year |
python-cstruct-1.8.tar.gz | 0000009911 9.68 KB | almost 2 years |
python-cstruct.changes | 0000000160 160 Bytes | almost 2 years |
python-cstruct.spec | 0000002232 2.18 KB | almost 2 years |
Comments 0