Skip to main content
This is a pre-production deployment of Warehouse. Changes made here affect the production instance of PyPI (pypi.python.org).
Help us improve Python packaging - Donate today!

C-style structs for Python

Project Description

Convert C struct definitions into Python classes with methods for serializing/deserializing.

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.

https://github.com/andreax79/python-cstruct

Release History

Release History

History Node

1.6

History Node

1.5

History Node

1.4

History Node

1.3

History Node

1.2

History Node

1.1

This version
History Node

1.0

Download Files

Download Files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

File Name & Checksum SHA256 Checksum Help Version File Type Upload Date
cstruct-1.0-py2.4.egg (19.0 kB) Copy SHA256 Checksum SHA256 2.4 Egg Aug 19, 2013
cstruct-1.0-py2.5.egg (18.9 kB) Copy SHA256 Checksum SHA256 2.5 Egg Aug 19, 2013
cstruct-1.0-py2.6.egg (18.9 kB) Copy SHA256 Checksum SHA256 2.6 Egg Aug 19, 2013
cstruct-1.0-py2.7.egg (18.8 kB) Copy SHA256 Checksum SHA256 2.7 Egg Aug 19, 2013
cstruct-1.0-py3.1.egg (19.1 kB) Copy SHA256 Checksum SHA256 3.1 Egg Aug 19, 2013
cstruct-1.0-py3.2.egg (19.3 kB) Copy SHA256 Checksum SHA256 3.2 Egg Aug 19, 2013
cstruct-1.0-py3.3.egg (19.5 kB) Copy SHA256 Checksum SHA256 3.3 Egg Aug 19, 2013
cstruct-1.0.tar.gz (7.3 kB) Copy SHA256 Checksum SHA256 Source Aug 19, 2013

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Rackspace Rackspace Cloud Servers DreamHost DreamHost Log Hosting