crelm-0.0.32a0
توضیحات
Utility that automates turning simple C classes into Python objects
| ویژگی | مقدار |
|---|---|
| سیستم عامل | OS Independent |
| نام فایل | crelm-0.0.32a0 |
| نام | crelm |
| نسخه کتابخانه | 0.0.32a0 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | WideOpenTech |
| ایمیل نویسنده | foss@wideopentech.co.uk |
| آدرس صفحه اصلی | https://github.com/wideopensource/crelm |
| آدرس اینترنتی | https://pypi.org/project/crelm/ |
| مجوز | - |
# Crelm
The Crelm package provides a relatively simple API around the CFFI system. Give it C code or source files, it gives you a package with bindings to functions and `struct`s. Easiest way to get started is hack up the examples in [the repo](https://github.com/wideopensource/crelm/tree/main/examples).
### Installation
pip3 install crelm
### Simple Demo
```
from crelm import Factory
paste = Factory(debug=False, verbose=True).create_Tube('add2') \
.add_source_text('int add2(int a, int b) { return a + b; }') \
.squeeze()
print(f'2 + 3 = {paste.add2(2, 3)}')
```
نیازمندی
| مقدار | نام |
|---|---|
| >=1.15.1,<2.0.0 | cffi |
| >=4.8.0,<5.0.0 | pexpect |
| >=0.1.1a2,<0.2.0 | john |
زبان مورد نیاز
| مقدار | نام |
|---|---|
| >=3.8,<4.0 | Python |
نحوه نصب
نصب پکیج whl crelm-0.0.32a0:
pip install crelm-0.0.32a0.whl
نصب پکیج tar.gz crelm-0.0.32a0:
pip install crelm-0.0.32a0.tar.gz