0 purchases
ctype 7.4.2
ctype - Interact with cython, python, ctypes, and use other c/c++ tools
ctype: (V7.4.2)
Interact with cython, python, ctypes, and use other c/c++ tools
Installing
# Linux/macOS
python3 pip install -U ctype
# Windows
py -3 -m pip install -U ctype
import ctype
# Base Classes
ctype.CType # Decorator Class
ctype.Structure
ctype.uint
ctype.uint4
ctype.uint8
ctype.uint16
ctype.uint32
ctype.uint64
ctype.ints
ctype.int4
ctype.int8
ctype.int16
ctype.int32
ctype.int64
ctype.floats
ctype.float4
ctype.float8
ctype.float16
ctype.float32
ctype.float64
ctype.double
ctype.double4
ctype.double8
ctype.double16
ctype.double32
ctype.double64
ctype.long
ctype.longlong
ctype.short
ctype.ulong
ctype.ulonglong
ctype.ushort
ctype.char
ctype.wchar
ctype.chararray
ctype.wchararray
ctype.struct
ctype.union
ctype.enum
ctype.typedef
ctype.volatile
ctype.boolean
ctype.void
ctype.ptr
ctype.cout, ctype.stdout, ctype.printf
ctype.cin, ctype.stdin
ctype.cerr, ctype.stderr
ctype.clog, ctype.log
ctype.cexit, ctype.exit
ctype.cabort, ctype.abort
ctype.endl
# ctype.Exceptions
ctype.ctype_err <cerr_type> <cobject> <cmessage>
ctype.CTypeException
ctype.CTypeRuntime
ctype.CTypeIndex
ctype.CTypeName
ctype.CTypeImport
ctype.CTypeAttr
ctype.CTypeKey
ctype.CTypeValue
ctype.CTypeIndent
ctype.CTypeError
ctype.CTypeKeyboard
ctype.CTypeUnfinished
Use ctypes in ctype
# Comes inside of the ctype lib
from ctype import cdll, c_int, c_char_p, c_void_p, c_double, c_bool, ...
# View all defined CType's
ctype.types
# CType
ctype.ctype
ctype.CType
# Structure
ctype.Structure
ctype.Struct
ctype.structure
ctype.require('a_module', 'numpy', 'some_other_module')
Links
Github
Project
For personal and professional use. You cannot resell or redistribute these repositories in their original state.
There are no reviews.