C-style structs for Python
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.
- Sources inherited from project devel:languages:python
- Devel package for openSUSE:Factory
-
2
derived packages
- Links to openSUSE:Factory / python-cstruct
- Download package
-
Checkout Package
osc -A https://api.opensuse.org checkout home:Tomcat42/python-cstruct && cd $_
- Create Badge
Refresh
Refresh
Source Files
Filename | Size | Changed |
---|---|---|
_link | 0000000124 124 Bytes | |
python-cstruct-4.0.tar.gz | 0000028370 27.7 KB | |
python-cstruct.changes | 0000001196 1.17 KB | |
python-cstruct.spec | 0000002250 2.2 KB |
Revision 7 (latest revision is 15)
Matej Cepl (mcepl)
accepted
request 1033613
from
Martin Hauke (mnhauke)
(revision 7)
- Update to version 4.0 * Add enum support to cstruct.parse * Add typedef parsing
Comments 0