My favorites | Sign in
Project Home Issues Source
Project Information
Members

Introduction

struc is a syntax wrapper for ctypes.Structure

class User(Struc):
    BYTE.name[32]
    BYTE.password[32]

v.s.

class User(Structure):
    _fields_ = [
        ('name', c_ubyte * 32),
        ('password', c_ubyte * 32),
    ]

Installation

easy_install struc

Download

Visit http://pypi.python.org/pypi/struc/0.2

or

Download struc-0.2.zip directly

or checkout the repo for the latest version

Powered by Google Project Hosting