insolor / better-ctypes

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

better_ctypes

Ideas:

Concept:

@annotated
class POINT(Structure):
    x: c_int
    y: c_int

or

@annotated
class POINT(Structure):
    x: int = field(type=c_int)
    y: int = field(type=c_int)

instead of

class POINT(Structure):
    _fields_ = [("x", c_int),
                ("y", c_int)]

About

License:MIT License


Languages

Language:Python 100.0%