cfly-1.0.3
توضیحات
Build python extensions on-the-fly. Run C++ code directly from Python
| ویژگی | مقدار |
|---|---|
| سیستم عامل | - |
| نام فایل | cfly-1.0.3 |
| نام | cfly |
| نسخه کتابخانه | 1.0.3 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | pymet |
| ایمیل نویسنده | office@pymet.com |
| آدرس صفحه اصلی | https://github.com/pymet/cfly |
| آدرس اینترنتی | https://pypi.org/project/cfly/ |
| مجوز | MIT |
cfly
====
* Build python extensions on-the-fly.
* Run C++ code directly from Python.
Links
-----
* `Documentation <https://cfly.readthedocs.io>`_
* `cfly on Github <https://github.com/pymet/cfly>`_
* `cfly on PyPI <https://pypi.org/project/cfly>`_
Example
-------
.. code-block:: py
from cfly import build_module
mymodule = build_module('mymodule', '''
#define PY_SSIZE_T_CLEAN
#include <Python.h>
struct Foobar {
PyObject_HEAD
};
PyObject * meth_hello_world(PyObject * self) {
return PyLong_FromLong(1234);
}
''')
print(mymodule.Foobar)
print(mymodule.hello_world())
**output**
.. code-block:: py
<class 'mymodule.Foobar'>
1234
نیازمندی
| مقدار | نام |
|---|---|
| - | jinja2 |
نحوه نصب
نصب پکیج whl cfly-1.0.3:
pip install cfly-1.0.3.whl
نصب پکیج tar.gz cfly-1.0.3:
pip install cfly-1.0.3.tar.gz