Skip to main content

Interact with cython, python, ctypes, and use other c/c++ tools

Project description

flowa

ctype - Interact with cython, python, ctypes, and use other c/c++ tools

License Python Versions

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

Project details


Download files

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

Source Distribution

ctype-7.4.2.tar.gz (8.7 kB view hashes)

Uploaded Source

Built Distribution

ctype-7.4.2-py3-none-any.whl (15.4 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page