Skip to main content
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!

Metadata

Release files for ccall 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for ccall 0.1.0
File Size Uploaded
ccall-0.1.0.tar.gz 4.8 kB Details

Release files / ccall-0.1.0.tar.gz

Download URL ccall-0.1.0.tar.gz
Size 4.8 kB
Tags Source
SHA-256 checksum
How to use checksums
8578c36ca68441eba28342b23189e2459ab85f2911786795c6eb435e084a69a8
BLAKE2b-256 checksum
How to use checksums
548c1948603872cef57407e98388b0cc2e395c8e2f61562a7b5d698b76c945b4
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release history Release notifications | RSS feed

This release

0.1.0 This release

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page