Skip to main content

A simple but flexible module for creating object-oriented, pythonic CFFI wrappers.

Project description

cfficloak - A simple but flexible module for creating object-oriented, pythonic CFFI wrappers. This is an extension of cffiwrap from

The intention is to more fully wrap/hide binary extensions build with cffi to improve auto-completion, inspection of objects and reading/writing/copying/assigning to c objects, especially structs and unions. Wrapped functions provide a number of auto-conversion to/from types with error handling and output pointer argument creation. Function skeletons can provide python definitions of c functions to improve auto-compiletion in python code and declaration of out args, error checking and default arguments. Structs can take numpy arrays assigned to array elements and handle two-way linking for you without any copies. There are a number of other utilities and wrappers provided to simpliy usage of cffi modules in day-to-day coding.

Install with # pip install cfficloak

Automatic documentation is here:

Copyright (c) 2017, Andrew Leech <>

Original cffiwrap copyright (c) 2013, Isaac Freeman <> All rights reserved.

Licensed under Apache License, Version 2.0. See LICENSE.txt for licensing details.

Project details

Download files

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

Files for cfficloak, version 2.4
Filename, size File type Python version Upload date Hashes
Filename, size cfficloak-2.4-py2.py3-none-any.whl (115.4 kB) File type Wheel Python version py2.py3 Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring DigiCert DigiCert EV certificate Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page