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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
Built Distribution
File details
Details for the file cfficloak-2.3-py2.py3-none-any.whl
.
File metadata
- Download URL: cfficloak-2.3-py2.py3-none-any.whl
- Upload date:
- Size: 115.4 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 03852c109ecedb154b42bf2401cef1687ca988e44bdfe10f33199b3ef289455a |
|
MD5 | eda50c846df07c57c3e4b913fc9f3fee |
|
BLAKE2b-256 | 8f4fdbc937108e9d0b1e6d425379e183ee8f04c75675104c5d566a41b1e923e3 |