ccall-0.1.0
توضیحات
A short description for your project.
| ویژگی | مقدار |
|---|---|
| سیستم عامل | POSIX |
| نام فایل | ccall-0.1.0 |
| نام | ccall |
| نسخه کتابخانه | 0.1.0 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | Fábio Macêdo Mendes |
| ایمیل نویسنده | fabiomacedomendes@gmail.com |
| آدرس صفحه اصلی | UNKNOWN |
| آدرس اینترنتی | https://pypi.org/project/ccall/ |
| مجوز | UNKNOWN |
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!
نحوه نصب
نصب پکیج whl ccall-0.1.0:
pip install ccall-0.1.0.whl
نصب پکیج tar.gz ccall-0.1.0:
pip install ccall-0.1.0.tar.gz