cinterop - helpers for Python-C interop via CFFI¶
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 struct
s). 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¶
From source:
Sample use¶
Placeholder section
Related work¶
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:
- the nuget package dynamic-interop-dll for .NET/native interop.
- Reference counting package refcount
- a C# library for generating interop glue code on top of C API glue code.
Other python packages¶
Placeholder