Cython
E96633
Cython is a programming language and compiler that extends Python with static typing and direct C/C++ integration to generate fast, optimized extension modules.
Statements (52)
| Predicate | Object |
|---|---|
| instanceOf |
Python extension language
→
compiler → programming language → transcompiler → |
| basedOn | Python → |
| compilesTo |
C
→
C++ → |
| feature |
automatic reference counting integration with CPython
→
direct C API access → direct C++ API access → generation of C source code from Cython code → optional type annotations → static typing → support for NumPy integration → support for calling C functions directly → support for calling C++ methods directly → support for cdef classes → support for cpdef functions → support for exception handling compatible with Python → support for fused types → support for nogil sections → support for parallelism via OpenMP → support for typed memoryviews → |
| hasDocumentationWebsite | https://cython.readthedocs.io/ → |
| implementationLanguage |
C
→
Python → |
| influencedBy |
Pyrex
→
Python → |
| license | Apache License 2.0 NERFINISHED → |
| primaryUse |
accelerating Python code
→
wrapping C libraries for Python → wrapping C++ libraries for Python → writing Python C extensions → |
| supportsImplementation |
Python reference implementation (CPython)
→
surface form: "CPython"
PyPy (limited) → |
| supportsLanguage |
C
→
C++ → Python → |
| supportsParadigm |
imperative programming
→
object-oriented programming → procedural programming → |
| targetPlatform |
Python reference implementation (CPython)
→
surface form: "CPython"
|
| typicalFileExtension |
.pxd
→
.pxi → .pyx → |
| usedFor |
creating Python extension modules
→
high-performance computing with Python → interfacing with legacy C codebases → numerical computing → optimizing tight loops in Python code → scientific computing → |
| website | https://cython.org/ → |