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.
- Developed at devel:languages:python
- Sources inherited from project openSUSE:Factory
-
2
derived packages
- Download package
-
Checkout Package
osc -A https://api.opensuse.org checkout openSUSE:Backports:SLE-15-SP5:FactoryCandidates/python-cstruct && cd $_
- Create Badge
Refresh
Refresh
Source Files
Filename | Size | Changed |
---|---|---|
python-cstruct-5.0.tar.gz | 0000036194 35.3 KB | |
python-cstruct.changes | 0000001456 1.42 KB | |
python-cstruct.spec | 0000002163 2.11 KB |
Revision 5 (latest revision is 7)
Dominique Leuenberger (dimstar_suse)
accepted
request 1035578
from
Matej Cepl (mcepl)
(revision 5)
- Update to version 5.0 * Add support for enums * Add support for multiple definition to cstruct.parse * Add inspect method
Comments 0