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 Provenance Actions
cfly-1.0.3.tar.gz 9.7 kB Without provenance Details for cfly-1.0.3.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for cfly 1.0.3
File Interpreter ABI Platform Actions
cfly-1.0.3-py2.py3-none-any.whl Python 2, Python 3 none any Details for cfly-1.0.3-py2.py3-none-any.whl

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

Security for cfly 1.0.3

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

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