Skip to content

cinterop - helpers for Python-C interop via CFFI

license status Documentation Status codecov master: Python package testing: Python package

CFFI interop convenience wrapper

This package is primarily for managing and marshalling resources in native libraries, written for instance in C++, from Python. The package includes some generic helper facilities on top of CFFI for basic C types, and additional facilities for passing various types of data structures (C structs). These are informed mostly by the domain of environmental modelling and simulation, but most are generic.

  • date/time
  • numeric or character vectors
  • numeric or character dictionaries
  • univariate or multivariate time series
  • statistical definitions

License

MIT (see License.txt)

Documentation

Hosted at cinterop via readthedocs.io

Source code

Marshalling data between C, C++ and other programming languages onGitHub

Installation

pip install cinterop

From source:

pip install -r requirements.txt
python setup.py install

Sample use

Placeholder section

Placeholder section

Ancestry, acknowledgements

This python package cinterop relates loosely to prior work for interoperability between C++, R and .NET (R.NET)

cinterop features using cffi were also significantly informed by Kevin Plastow's work while he was at the Australian Bureau of Meteorology; this contribution is gratefully acknowledged.

In you have native interop needs you may also want to look at:

Other python packages

Placeholder