
Cython: C-Extensions for Python
Cython is an optimising static compiler for both the Python programming language and the extended Cython programming language (based on Pyrex). It makes writing C extensions for …
Welcome to Cython’s Documentation — Cython 3.3.0a0 …
Getting Started Cython - an overview Installing Cython Building Cython code Faster code via static typing Tutorials Basic Tutorial Calling C functions Using C libraries Extension types (aka. …
Installing Cython — Cython 3.3.0a0 documentation
Many scientific Python distributions, such as Anaconda [Anaconda], Enthought Canopy [Canopy], and Sage [Sage], bundle Cython and no setup is needed. Note however that if your …
Building Cython code — Cython 3.3.0a0 documentation
Run the cython command-line utility manually to produce the .c file from the .pyx file, then manually compiling the .c file into a shared object library or DLL suitable for import from Python.
Faster code via static typing — Cython 3.3.0a0 documentation
Cython is a Python compiler. This means that it can compile normal Python code without changes (with a few obvious exceptions of some as-yet unsupported language features, see Cython …
Using C libraries — Cython 3.3.0a0 documentation
The following gives a complete example for using (and wrapping) an external C library in Cython code, including appropriate error handling and considerations about designing a suitable API …
Cython - an overview — Cython 3.3.0a0 documentation
[Cython] is a programming language that makes writing C extensions for the Python language as easy as Python itself. It aims to become a superset of the [Python] language which gives it …
Users Guide — Cython 3.3.0a0 documentation
Cython for NumPy users Cython at a glance Your Cython environment Installation Compilation The first Cython program Adding types Efficient indexing with memoryviews Tuning indexing …
Working with NumPy — Cython 3.3.0a0 documentation
You can use NumPy from Cython exactly the same as in regular Python, but by doing so you are losing potentially high speedups because Cython has support for fast access to NumPy arrays.
Pure Python Mode — Cython 3.3.0a0 documentation
Cython provides a fake version of this module as Cython.Shadow, which is available as cython.py when Cython is installed, but can be copied to be used by other modules when Cython is not …