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 https://bitbucket.org/memotype/cffiwrap

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: http://cfficloak.readthedocs.org/

Copyright (c) 2017, Andrew Leech <andrew@alelec.net>

Original cffiwrap copyright (c) 2013, Isaac Freeman <memotype@gmail.com> 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.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

cfficloak-1.4-py3-none-any.whl (15.9 kB view details)

Uploaded Python 3

File details

Details for the file cfficloak-1.4-py3-none-any.whl.

File metadata

File hashes

Hashes for cfficloak-1.4-py3-none-any.whl
Algorithm Hash digest
SHA256 c2f71a40cf1c2a4e605016a3a994ba58487201d6036cf9c57f55247a4324ec38
MD5 656fbc2641cec7635bf0b598153b6f07
BLAKE2b-256 6af5cf8aac826242018bfcbccbdfa395cd4a34f25f3f9d1a2698599fdc3f1620

See more details on using hashes here.

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