Skip to main content
This is a pre-production deployment of Warehouse. Changes made here affect the production instance of PyPI (
Help us improve Python packaging - Donate today!

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


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

.. code-block::c

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)


This software is beta. Use with care!

Release History

This version
History Node


Download Files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Filename, Size & Hash SHA256 Hash Help File Type Python Version Upload Date
(4.8 kB) Copy SHA256 Hash SHA256
Source None Aug 5, 2016

Supported By

Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Kabu Creative Kabu Creative UX & Design Google Google Cloud Servers Fastly Fastly CDN StatusPage StatusPage Statuspage DigiCert DigiCert EV Certificate