Skip to main content
Join the official 2020 Python Developers SurveyStart the survey!

A short description for your project.

Project description

Uses cffi to build a simple interface for calling functions in a C file. This
package is designed for convenience and should work only in the very simple
cases. It is used in an educational setting in a mixed Python/C programming
course.

Usage
=====

It is very simple. Say you have a "libfuncs.c" in the working directory

.. code-block::c
#include<stdio.h>

int double(int x) {
return x + x;
}

We can call the `double` function by relying in the implicit import in the
:mod:`ccall` module.

>>> import ccall as c
>>> c.libfuncs.double(21)
42


Limitations
===========

This software is beta. Use with care!

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 ccall, version 0.1.0
Filename, size File type Python version Upload date Hashes
Filename, size ccall-0.1.0.tar.gz (4.8 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page