3.0.10[2] (30 March 2024; 38 days ago (30 March 2024)) [±]
Preview release
3.0.0 beta 2 (27 March 2023; 13 months ago (2023-03-27)[3]) [±]
Implementation language
Python
OS
Windows, macOS, Linux
License
Apache License 2.0
Filename extensions
.pyx, .pxd, .pxi [4]
Website
cython.org
Influenced by
C, Python
Cython (/ˈsaɪθɒn/) is a superset of the programming language Python, which allows developers to write Python code (with optional, C-inspired syntax extensions) that yields performance comparable to that of C.[5][6]
Cython is a compiled language that is typically used to generate CPython extension modules. Annotated Python-like code is compiled to C (also usable from e.g. C++) and then automatically wrapped in interface code, producing extension modules that can be loaded and used by regular Python code using the import statement, but with significantly less computational overhead at run time. Cython also facilitates wrapping independent C or C++ code into python-importable modules.
Cython is written in Python and C and works on Windows, macOS, and Linux, producing C source files compatible with CPython 2.6, 2.7, and 3.3 and later versions. The Cython source code that Cython compiles (to C) can use both Python 2 and Python 3 syntax, defaulting to Python 2 syntax in Cython 0.x (and Python 3 syntax in Cython 3.x). The default can be overridden (e.g. in source code comment) to Python 3 (or 2) syntax. Since Python 3 syntax has changed in recent versions, Cython may not be up to date with latest addition. Cython has "native support for most of the C++ language" and "compiles almost all existing Python code".[7]
Cython 3.0.0 was released on 17 July 2023.[8]
^Behnel, Stefan (2008). "The Cython Compiler for C-Extensions in Python". EuroPython (28 July 2007: official Cython launch). Vilnius/Lietuva.
^"Release 3.0.10". 30 March 2024. Retrieved 22 April 2024.
^Cython Changelog, cython, 15 May 2023, retrieved 19 May 2023
Cython (/ˈsaɪθɒn/) is a superset of the programming language Python, which allows developers to write Python code (with optional, C-inspired syntax extensions)...
than reinventing the wheel, Sage (which is written mostly in Python and Cython) integrates many specialized CAS software packages into a common interface...
natural language processing, written in the programming languages Python and Cython. The library is published under the MIT license and its main developers...
Crystal Csound Cuneiform Curl Curry Cybil Cyclone Cypher Query Language Cython CEEMAC D (also known as dlang) Dart Darwin DataFlex Datalog DATATRIEVE dBase...
alternative approaches for fast numeric computing with Python exist, such as Cython, Pythran, and PyPy. "Release 0.59.1". 19 March 2024. Retrieved 22 March...
modern statistical machine learning. Gensim is implemented in Python and Cython for performance. Gensim is designed to handle large text collections using...
source solutions that interoperate with NumPy include numexpr and Numba. Cython and Pythran are static-compiling alternatives to these. Many modern large-scale...
(HPC) data structures and data analysis tools for Python in Python and Cython (statsmodels, scikit-learn) Perl Data Language – Scientific computing with...
technologies for justification of ORFs. orfipy is a tool written in Python / Cython to extract ORFs in an extremely and fast and flexible manner. orfipy can...
ago (2023-09-18) Repository github.com/pygame/pygame/ Written in Python, C, Cython, and Assembly Operating system Cross-platform Type API License GNU Lesser...
dialects of Lisp (Lush, Gambit), Squeak's Smalltalk-subset Slang, Nim, Cython, Seed7, SystemTap, Vala, V, and others make use of C as an intermediate...
writing C/C++ code as Python multiline strings (now deprecated in favor of Cython) The basic data structure used by SciPy is a multidimensional array provided...
– Reference distribution that includes only selected standard libraries Cython – programming language to simplify writing C and C++ extension modules for...
implementation C implementation (from the R project) Lowess implementation in Cython by Carl Vogel Python implementation (in Statsmodels) LOESS Smoothing in...
generated extension module. For examples of this, see the Shed Skin examples. Cython PyPy first Shed Skin release Learning Python Book section on Shed Skin Shed...
IronScheme Jython – an implementation of Python for the Java Virtual Machine Cython PyPy – a self-hosting interpreter for the Python programming language Tao...
types respectively. Certain languages, for example Clojure, Common Lisp, or Cython are dynamically type checked by default, but allow programs to opt into...