cfly
Build python extensions on-the-fly.
Run C++ code directly from Python.
Links
Example
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
<class 'mymodule.Foobar'>
1234
Metadata
Release files for cfly 1.0.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| cfly-1.0.3.tar.gz | 9.7 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| cfly-1.0.3-py2.py3-none-any.whl | Python 3, Python 2 | none | any | Details |
Total release size: 17.6 kB
Release files / cfly-1.0.3.tar.gz
| Download URL | cfly-1.0.3.tar.gz |
|---|---|
| Size | 9.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
c84696286ce80326596876600aec36c8ad96673e0752e11b32e927f05d94a815
|
|
BLAKE2b-256 checksum How to use checksums |
106072118609267111d3fcb4d8c83eb1219cd2842f5c6ca10163abec2cbaa869
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Release files / cfly-1.0.3-py2.py3-none-any.whl
| Download URL | cfly-1.0.3-py2.py3-none-any.whl |
|---|---|
| Size | 7.8 kB |
| Tags | Python 2 Python 3 |
|
SHA-256 checksum How to use checksums |
615d3a509ca8453fdb6654aba9ee3f861d7459becd0a9a55250101636f179c6a
|
|
BLAKE2b-256 checksum How to use checksums |
f12d04b804f50a8479f64a7e0aa76907ddd05bb9f50fedf3fd4586adb4b7a64f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |