c2py-0.0.1
توضیحات
Create python wrappers that call c functions (without the headaches).
| ویژگی | مقدار |
|---|---|
| سیستم عامل | - |
| نام فایل | c2py-0.0.1 |
| نام | c2py |
| نسخه کتابخانه | 0.0.1 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | - |
| ایمیل نویسنده | - |
| آدرس صفحه اصلی | https://github.com/i2mint/c2py |
| آدرس اینترنتی | https://pypi.org/project/c2py/ |
| مجوز | mit |
# c2py
Create python wrappers that call c functions, without the headaches.
In a nutshell:
```python
from c2py import dispatch
m = dispatch(
src, # specification of the C sources (poiting to specific C functions)
convention, # optional convention of wrapping rules
**configs # specific configuration (for wrapping rules that are not covered by convention, or need to be overwritten)
)
m.python_wrapper_to_c_func(...) # now m is a module containing python wrappers to the desired c functions
```
Other forms:
```python
dispatch_to_file(src, target_filepath, ...) # to get output as a persisted .py file
```
To install: ```pip install c2py```
نحوه نصب
نصب پکیج whl c2py-0.0.1:
pip install c2py-0.0.1.whl
نصب پکیج tar.gz c2py-0.0.1:
pip install c2py-0.0.1.tar.gz