Skip to main content

cfly

  • Build python extensions on-the-fly.

  • Run C++ code directly from Python.

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)

Source distribution for cfly 1.0.3
File Size Uploaded
cfly-1.0.3.tar.gz 9.7 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for cfly 1.0.3
File Interpreter ABI Platform
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

Release history Release notifications | RSS feed

This release

1.0.3 This release

2 release files

1.0.2

2 release files

1.0.1

2 release files

1.0.0

2 release files

0.9.13

2 release files

0.9.12

2 release files

0.9.11

2 release files

0.9.10

2 release files

0.9.9

2 release files

0.9.8

2 release files

0.9.7

2 release files

0.9.6

2 release files

0.9.5

2 release files

0.9.4

2 release files

0.9.3

2 release files

0.9.2

1 release file

0.9.1

1 release file

0.9.0

1 release file

0.1.0

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page